News:

Looking for documentation? Take a look on our wiki

Main Menu

Need fix for & issue on edit_address.php

Started by torres86, June 03, 2013, 03:29:55 AM

Previous topic - Next topic

torres86

OK, so I've figured out how to solve the problem on cart.php in getting the redirect URLs to stop converting the "&" to "&" by doing the following:

redirect(JRoute::_('index.php?option=com_virtuemart&view=cart', false)

However, now to fix this bug on other pages that lead to completing a purchase such as edit_address.php. For instance, when a user goes to enter and save their address information, click on the save button results in the "& problem." I'm sure this is a quick fix, but I'm not overly proficient in PHP, and have been hacking at this for a while now. I'm guessin the problem lies somewhere either here:

line 31

$url = JRoute::_ ('index.php?option=com_virtuemart&view=cart&task=checkout', $this->useXHTML, $this->useSSL);

or

line 119

onclick="window.location.href='<?php echo JRoute::('index.php?option=com_virtuemart&view=' $rview); ?>'"><?php echo JText::('COM_VIRTUEMART_CANCEL'); ?></button>

or line 130

onclick="window.location.href='<?php echo JRoute::('index.php?option=com_virtuemart&view=' $rview); ?>'"><?php echo JText::('COM_VIRTUEMART_CANCEL'); ?></button>

Any suggestions? Thanks!
John

Milbo

http://forum.virtuemart.net/index.php?topic=115877.0

version b
fixed images of related products, if image is set on parent
using the value default on agree is autosetting add to cart
removed &amp: from links
and more

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/