[TEP-COMMIT] [CVS catalog] redirect to the checkout shipping address page if no default address is assigned
anonymous-OfajU3CKLf1/[email protected] 22 Jul 2004 21:43:16 -0000
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit in catalog/catalog on MAIN
checkout_shipping.php +5 1.22 -> 1.23
redirect to the checkout shipping address page if no default address is assigned
----------
catalog /catalog
checkout_shipping.php 1.22 -> 1.23
diff -u -r1.22 -r1.23
--- checkout_shipping.php 2004/07/22 17:23:53 1.22
+++ checkout_shipping.php 2004/07/22 21:43:16 1.23
@@ -25,6 +25,11 @@
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
}
+// redirect to the shipping address page when no default address exists
+ if ($osC_Customer->hasDefaultAddress() === false) {
+ tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL'));
+ }
+
// if no shipping destination address was selected, use the customers own address as default
if ($osC_Session->exists('sendto') == false) {
$osC_Session->set('sendto', $osC_Customer->default_address_id);
CVSspam 0.2.8
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click