Fix load json states in cart with multilang website and Sef404 enabled

Started by inode64, September 01, 2015, 17:16:01 PM

Previous topic - Next topic

inode64

When have a multilang with sef404 actived, the cart no download the states form web, with this style url:

/es/index.php?option=com_virtuemart&view=state&format=json&virtuemart_country_id=195&lang=es

And show bad karma 404 error, the sef404


I see documentation of joomla
https://docs.joomla.org/Using_Joomla_Ajax_Interface

and all json start with "?"

Check with enable sef404, only Joomla Sef and not sef and run fine!

this problem is same what
http://forum.virtuemart.net/index.php?topic=124140.msg424189#msg424189
http://forum.virtuemart.net/index.php?topic=130343.msg451954#msg451954
http://forum.virtuemart.net/index.php?topic=111480.msg451228#msg451228

this fix is for file /components/com_virtuemart/assets/js/vmsite.js

For VM3.0.9.x on J3.4.3