News:

Support the VirtueMart project and become a member

Main Menu

[SOLVED] Cart problem after Joomla 3.7.3 update - multilingual site

Started by Ventsi Genchev, July 07, 2017, 17:21:35 PM

Previous topic - Next topic

Ventsi Genchev

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.
Audio Store:
https://vsystem.bg - Bulgarian language
https://vsystem.bg/en - English

jjk

Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Ventsi Genchev

jjk, thank you for the answer.
Unfortunately, this does not solve the problem. Has anyone else noticed a similar problem?
Audio Store:
https://vsystem.bg - Bulgarian language
https://vsystem.bg/en - English

Milbo

Did you select a shop language? and is the shop language also selected in the "available languages"?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Ventsi Genchev

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.
Audio Store:
https://vsystem.bg - Bulgarian language
https://vsystem.bg/en - English

Ventsi Genchev

The problem is solved thanks to Milbo.

Many, many thanks!
Audio Store:
https://vsystem.bg - Bulgarian language
https://vsystem.bg/en - English

Milbo

ah you missed to tell the audience the reason. it was a 3rd party plugin.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Ventsi Genchev

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!  :)
Audio Store:
https://vsystem.bg - Bulgarian language
https://vsystem.bg/en - English

Milbo

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
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Ventsi Genchev

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.
Audio Store:
https://vsystem.bg - Bulgarian language
https://vsystem.bg/en - English