Skip to content
Browse files

Reset shipping/payment when address change form is submitted without …

…any selection (and address is reset to a default one).
  • Loading branch information...
1 parent e72f21a commit ea8be9faeb5df3e024c6a18ae9adeb99b69b30a7 @wrwrwr committed
Showing with 2 additions and 1 deletion.
  1. +1 −1 catalog/checkout_payment_address.php
  2. +1 −0 catalog/checkout_shipping_address.php
View
2 catalog/checkout_payment_address.php
@@ -175,10 +175,10 @@
} else {
tep_session_unregister('billto');
}
-// no addresses to select from - customer decided to keep the current assigned address
} else {
if (!tep_session_is_registered('billto')) tep_session_register('billto');
$billto = $customer_default_address_id;
+ if (tep_session_is_registered('payment')) tep_session_unregister('payment');
tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
}
View
1 catalog/checkout_shipping_address.php
@@ -191,6 +191,7 @@
} else {
if (!tep_session_is_registered('sendto')) tep_session_register('sendto');
$sendto = $customer_default_address_id;
+ if (tep_session_is_registered('shipping')) tep_session_unregister('shipping');
tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
}

0 comments on commit ea8be9f

Please sign in to comment.
Something went wrong with that request. Please try again.