VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: octaviobh on October 31, 2020, 16:30:19 PM

Title: Is this a bug?. Virtuemart product detail link in any language is ok BUT the lan
Post by: octaviobh on October 31, 2020, 16:30:19 PM
Hello.

I have a local joomla virtuemart multilingual site. All works fine except the noted here.

In order to clarify the following links examples first I set the SEF global config OFF.

In english product detail page the language switch icon has links:

https://havanatrends.cmm:2381/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=3&virtuemart_category_id=2&lang=en
https://havanatrends.cmm:2381/index.php?option=com_content&view=categories&id=16&Itemid=135&lang=es

And in spanish product detail page the language switch icon has links:

https://havanatrends.cmm:2381/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=3&virtuemart_category_id=2&lang=es
https://havanatrends.cmm:2381/index.php?option=com_content&view=categories&id=15&Itemid=134&lang=en

As you can see the link in the same language is ok, but in the other language the link points to the home page I had.

Then setting the SEF global config ON.

In english product detail page the language switch icon has links:

https://havanatrends.cmm:2381/index.php/shop-products/services/www-hosting-detail
https://havanatrends.cmm:2381/index.php/es/shop-products

And in spanish product detail page the language switch icon has links:

https://havanatrends.cmm:2381/index.php/es/shop-products/servicios/hospedaje-web-detail
https://havanatrends.cmm:2381/index.php/en/shop-products

shop-products is a Menu Virtuemart Category layout Top level category with language All, and works fine if I set Show featured products YES. The products are viewed in the proper language.

Note: All off the products are featured products.

Is this a bug?

I need to configure something else?. Change something?

I am using Joomla 3.9.22 com_virtuemart.3.8.4.10335 PHP 7.4.11 Apache 2.4.46

Thanks in advance,

Octavio.
Title: Re: Is this a bug?. Virtuemart product detail link in any language is ok BUT the lan
Post by: octaviobh on October 31, 2020, 18:08:49 PM
I manage to solve this with a menu Virtuemart Products Details layout for every product !.

In my particular case till now I only have five products therefore I only need five menues, but this is not a general solution.

I make the suggestion that the Virtuemart development team should develop a new type of menu item that could handle any Product Detail, not only one and single Product Detail.

Thanks in advance,

Octavio.

Title: Re: Is this a bug?. Virtuemart product detail link in any language is ok BUT the lan
Post by: jjk on November 02, 2020, 19:19:51 PM
Did you configure English and Spanish category menus with the language set to en and es and associated the menu items to the other language? And did you publish the Joomla language filter plugin? Also you should have one language switcher module for each language.
Title: Re: Is this a bug?. Virtuemart product detail link in any language is ok BUT the lan
Post by: octaviobh on November 10, 2020, 17:47:09 PM
Yes, I had done that, but still the product detail link does not change ok with language change. I am not the only one to report this. Please read http://forum.virtuemart.net/index.php?topic=141481.0
Title: Re: Is this a bug?. Virtuemart product detail link in any language is ok BUT the lan
Post by: pinochico on November 10, 2020, 18:18:08 PM
Quoteshop-products is a Menu Virtuemart Category layout Top level category with language All

Pls check if you fix this admin setup error and created separatelly menu for every language
Title: Re: Is this a bug?. Virtuemart product detail link in any language is ok BUT the lan
Post by: octaviobh on November 22, 2020, 04:08:16 AM
I have separated menues for every language. Still the problem. There is not a full guide to this in Virtuemart docs?
Title: Re: Is this a bug?. Virtuemart product detail link in any language is ok BUT the lan
Post by: pinochico on November 22, 2020, 05:10:21 AM
QuoteI have separated menues for every language.

Ok, send preview