VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: nikohal on March 09, 2015, 19:34:36 PM

Title: Shop problem
Post by: nikohal on March 09, 2015, 19:34:36 PM
When I go to shop everything is ok. But When I click category in my case "kauppa" changhed to "shop". Where it get that shop???
And after that Finnish language menu disappears.
See pictures and video:
http://blogi.hallikainen.cc/virtuemart/finenglish.png (http://blogi.hallikainen.cc/virtuemart/finenglish.png)
http://blogi.hallikainen.cc/virtuemart/infinnish.png (http://blogi.hallikainen.cc/virtuemart/infinnish.png)
http://blogi.hallikainen.cc/virtuemart/shop.mp4 (http://blogi.hallikainen.cc/virtuemart/shop.mp4)

How I can fix this?
Title: Re: Shop problem
Post by: jjk on March 19, 2015, 19:57:39 PM
You should create all menu items in both languages and make sure that the correct language tag is assigned to each menu item. If you have differerent menus, the Joomla language switcher will produce errors.

The Joomla language switcher depends on menu items an their IDs. Switching languages in VirtueMart frontend views is identical to doing so in Joomla. When you are looking at 'Product X' in 'Category A' in Finnish and switch to English, it looks for a menu item 'Category A' in English. If it doesn't find that, the Joomla language switcher will fall back to the next higher level for which it finds a menu item in English, which might be your homepage.