For those using the VM theme that comes with Mesolite,
There is a problem when using Artio SEF with mesolite and its VM theme that produces a redirect to the catalog page when ever someone tries to add something to the cart.
Fixing for joomla popup cart redirect problem when using Artio SEF
The base URL is set incorrectly in the script and has to be corrected
So once you published Artio URL, open the joomla themes JavaScript files and set the base URL.
For example:
If we opened one product detail page like
http://www.domainname.com/virtuemart/1.html
Here, if we click add to cart link, the popup will opened and then if we click Cart button it redirects to
http://www.domainname.com/virtuemart/index.php?page=shop.cart&option=com_virtuemart…..
Instead of
http://www.domainname.com/index.php?page=shop.cart&option=com_virtuemart…..
Solution:
Open the themes.js and theme.prototype.js files and change the redirect url with base URL, like full path or put “/” in front of the index.php.
/public_html/components/com_virtuemart/themes/default/themes.js
/public_html/components/com_virtuemart/themes/default/theme.prototype.js
And also it will not affect any artio URLs and artio will continue to function correctly and by adding the / in front of the path, the redirect is fixed and customers can add items to their cart.