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

Cart functions redirect URLs end up being converted to &amp ;

Started by bohemier, March 26, 2012, 20:24:43 PM

Previous topic - Next topic

bohemier

Hello,

in VM2.0.3G, when using cart functions like Update and Delete, we get redirected to our same page, but extra parameters like &Itemid=20 get converted to &Itemid=20 in the URL, so we end up loosing them. To fix this, we need to tell JRoute class to not convert the url into XHTML compliant code i.e. add a second parameter (false) to JRoute::_ . For example line 352 of components/com_virtuemart/controllers/cart.php

change this
$mainframe->redirect(JRoute::_('index.php?option=com_virtuemart&view=cart'));


to this
$mainframe->redirect(JRoute::_('index.php?option=com_virtuemart&view=cart', false));

This, of course breaks XHTML compliance... any one has a better idea?

using Joomla 1.5.25, php 5.2.17

Imron

Thank you!!!!  I had been looking for a solution to this for 2 days.