News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[solved]VmConfig::get ('vmlang_js', 1) // Return False

Started by Florentp, August 23, 2013, 18:37:10 PM

Previous topic - Next topic

Florentp

Hi !

On my products pages, the vmlang js variable is empty, and it's seems to come from /administrator/components/com_virtuemart/helpers/config.php
At this line :

if (VmConfig::get ('vmlang_js', 1))  {

When is it supposed to return true or false ?

My website is multilanguage, and cause of this, when i'm adding a product to cart from english product page, the confirmation popup is in french.
Web programmer. Passionate.
PHP, SQL, Javascript, JQuery, css.
Skype : florent.indienboutique

Florentp

Please, any idea ?
Nobody know that part of the code ? I just need to know in wich situation it take 0 or 1, to fix it.
Web programmer. Passionate.
PHP, SQL, Javascript, JQuery, css.
Skype : florent.indienboutique

Milbo

I think this was a language fix not longer needed. I think we had it for j1.7 or so. Disable it
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Florentp

Hi Milbo,
Thanks.

So any idea why the popup message is in french when i'm on english ?

This is the Ajax request :
GET http://www.mywebsite.fr/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&customPlugin%255B21137%255D%255Bstockable%255D%255Bselectoptions1%255D%3DStandard%26customPlugin%255B21137%255D%255Bstockable%255D%255Bchild_id%255D%3D159021%26customPrice%255B1%255D%255B16%255D%3D21137%26quantity%255B%255D%3D1%26option%3Dcom_virtuemart%26view%3Dcart%26virtuemart_product_id%255B%255D%3D159020&_=1379499073378

Returned data :
{"stat":"1","msg":"<a class=\"continue\" href=\"\/\" >Poursuivre vos achats<\/a><a class=\"showcart floatright\" href=\"\/fr\/panier\">Voir le panier<\/a><h4>1 \u00e0 Porte-monnaie skulls rock ont \u00e9t\u00e9 ajout\u00e9s \u00e0 votre panier<\/h4><br style=\"clear:both\">\r\n"}

Have a try there : indienboutique.fr/en/porte-monnaie-skulls-rock2297-detail

I don't understand :/ Can it be a template problem?
Web programmer. Passionate.
PHP, SQL, Javascript, JQuery, css.
Skype : florent.indienboutique

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Florentp

#5
languagefilter plugin was not activate. Now it's activated, seems to work.
Thanks !
Web programmer. Passionate.
PHP, SQL, Javascript, JQuery, css.
Skype : florent.indienboutique