Address override during checkout #17

Open
wants to merge 1 commit into
from
@@ -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'));
}
@@ -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'));
}