VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: 2cool on May 22, 2015, 14:41:06 PM

Title: Language Switcher bug?
Post by: 2cool on May 22, 2015, 14:41:06 PM
Hi,
got my store set but noticed something strange;

If in Language Switcher the active language is set to 'YES' both languages are visible.
But virtuemart category page doesn't switch 'at once' but after 2 clicks???

If in Language Switcher active language is set to 'NO' it works fine?

Could anyone explain what happens an how to fix!

Thanks and regards,

Pascal

ps. joomla pages switch ok with both settings.

setting: Joomla! 3.4.1 / VirtueMart 3.0.8 / Dutch + German languages active
Title: Re: Language Switcher bug?
Post by: grupposis on May 26, 2015, 12:05:43 PM
Same problem for me! Any solution?
Title: Re: Language Switcher bug?
Post by: grupposis on May 26, 2015, 12:30:31 PM
I solved with this:

I replaced the joomla 3.4.1 /plugins/system/languagefilter with the joomla 3.3.6 version and this particular issue was resolved.
Title: Re: Language Switcher bug?
Post by: 2cool on May 26, 2015, 13:22:20 PM
Wow, thanks works great!
Any idea what's causing this and if this will be fixed at next update?

Title: Re: Language Switcher bug?
Post by: jjk on May 28, 2015, 21:33:08 PM
Quote from: 2cool on May 26, 2015, 13:22:20 PM
Any idea what's causing this and if this will be fixed at next update?
The problem with the new Joomla router is that if there is no itemId given, it uses the homepage Itemid as fallback.
The popup uses the last used itemId, which works well in j2.5, but not in j3.4.1

There will be a fix for it in VM 3.0.10. With that the popup keeps the currently used language when 'Language Javascript Fix' is enabled in VM Configuration > Checkout tab (just tested successfully).

But don't forget to revert your 'hack' (using the Joomla 3.3.6 version of languagefilter.php)!!!