VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: Ventsi Genchev on July 07, 2017, 17:21:35 PM

Title: [SOLVED] Cart problem after Joomla 3.7.3 update - multilingual site
Post by: Ventsi Genchev on July 07, 2017, 17:21:35 PM
Joomla 3.7.3 / Virtuemart 3.2.3.9587
I build a site with a basic language - Bulgarian and an additional language - English.

After updating the multilingual site to Joomla 3.7.3 I notice strange problems:
1. When the site is in the main language (Bulgarian), after adding a product to the cart, the name of the product is always in English.
2. When reviewing the shopping cart, the name of the first product is always in English.
3. When deleting a product from the cart, the first message is in Bulgarian, and below it in English "Product quantity successfully updated"

With a Protostar template test, there is no change.

Does anyone have any idea what's going on?
Thank you.
Title: Re: Cart problem after Joomla 3.7.3 update - multilingual site
Post by: jjk on July 07, 2017, 18:06:32 PM
Might be this problem: http://forum.virtuemart.net/index.php?topic=137564.msg482125#msg482125
Check if downloading and installing the latest Bulgarian langauge files from here solves the problem: http://virtuemart.net/community/translations
Title: Re: Cart problem after Joomla 3.7.3 update - multilingual site
Post by: Ventsi Genchev on July 07, 2017, 18:53:28 PM
jjk, thank you for the answer.
Unfortunately, this does not solve the problem. Has anyone else noticed a similar problem?
Title: Re: Cart problem after Joomla 3.7.3 update - multilingual site
Post by: Milbo on July 07, 2017, 19:35:29 PM
Did you select a shop language? and is the shop language also selected in the "available languages"?
Title: Re: Cart problem after Joomla 3.7.3 update - multilingual site
Post by: Ventsi Genchev on July 07, 2017, 20:53:48 PM
Yes, Milbo. Everything is set right and everything worked before the jomla update.

I noticed another problem too:
Prior to updating if you are in the default language and you go to the Virtuemart sign-up page, everything with the language is right.
If you switch to the other language, the field names are not translated until you refresh the page.

After Joomla's update, field names are not translated at all.
If I change the default language, the problem is with the other language.
This problem does not exist on Joomla's sign-up page.
Title: Re: Cart problem after Joomla 3.7.3 update - multilingual site
Post by: Ventsi Genchev on July 08, 2017, 15:44:54 PM
The problem is solved thanks to Milbo.

Many, many thanks!
Title: Re: [SOLVED] Cart problem after Joomla 3.7.3 update - multilingual site
Post by: Milbo on July 12, 2017, 11:45:45 AM
ah you missed to tell the audience the reason. it was a 3rd party plugin.
Title: Re: [SOLVED] Cart problem after Joomla 3.7.3 update - multilingual site
Post by: Ventsi Genchev on July 12, 2017, 11:53:39 AM
Yes, I apologize.  :-[

It was a 3rd party plugin. And the problem was, of course, something that Milbo has described at least once:
A plugin that uses onAfterInitialise instead of onAfterRoute.

I wish a great day to everyone!  :)
Title: Re: [SOLVED] Cart problem after Joomla 3.7.3 update - multilingual site
Post by: Milbo on July 12, 2017, 11:55:30 AM
Quote from: Milbo on March 06, 2017, 20:05:56 PM
But it has also a disadvantage that some plugins using the "onAfterInitialise" trigger make problems, in case a multilanguage page is used. When the plugin uses the VmConfig::loadConfig(), then it should use the new extra parameter to prevent that the wrong language is initialised.

yeh, nice you read it. And you gave another hint how to to solve it. Thank you
Title: Re: [SOLVED] Cart problem after Joomla 3.7.3 update - multilingual site
Post by: Ventsi Genchev on July 12, 2017, 12:20:31 PM
Just to add what problems this plugin was creating in lower versions of Joomla 3.7.3 when switching language:

* It does not always change the paths of the categories. - Error 404 (after refreshing everything is fine);
* It does not always change the paths of the menus. - Error 404 (after refreshing everything is fine);
* Some places on the page, such as user registration, remain in the other language (after refreshing everything is fine);
And other issues that I can not remember right now.
After updating to Joomla 3.7.3, refreshing the page does not help.

So an incorrectly typed or old plugin can create such problems that you can wonder for a long time.