Custom Joomla website design and development.

Home Knowledge Base VirtueMart Delete / Update buttons in cart take users to step 1

Delete / Update buttons in cart take users to step 1

Rate this item
(0 votes)

This is an annoying usse I've noticed for a while. When clicking update or delete in the cart, you are not brought back to the page you have submitted from. Instead, much to my annoyance, it brings us back to step 1 of the checkout as specially if youwere already on the last page of the checkout when you decided to do this.

Fortunately it is extremely easy to update your VirtueMart installation to make it do this.

FILE: administrator/com_virtuemart/html/basket.php
LINE: 147

REPLACE
$product_rows[$i]['update_form'] = '<form action="'. $action_url .'" method="post" style="display: inline;">
WITH
$current_stage = $ps_checkout->get_current_stage();
$product_rows[$i]['update_form'] = '<form action="'. $action_url .'" method="post" style="display: inline;">
<input type="hidden" name="checkout_stage" value="'.$current_stage.'" />
<input type="hidden" name="ship_to_info_id" value="'.$_REQUEST["ship_to_info_id"].'" />
<input type="hidden" name="shipping_rate_id" value="'.$_REQUEST["shipping_rate_id"].'" />
Trevor Bice

Trevor Bice

Owner, Joomla Expert

...I'm a one man army

E-mail: This e-mail address is being protected from spambots. You need JavaScript enabled to view it
More in this category: « Prev