[TEP-COMMIT] [CVS catalog] redirect to the checkout payment address page if no default address is assigned

anonymous-OfajU3CKLf1/[email protected] 22 Jul 2004 21:45:38 -0000
Newsgroups gmane.comp.web.oscommerce.cvs
Message-ID <[email protected]>
Commit in catalog/catalog on MAIN

checkout_payment.php +5 1.118 -> 1.119

redirect to the checkout payment address page if no default address is assigned

----------

catalog /catalog

checkout_payment.php 1.118 -> 1.119

diff -u -r1.118 -r1.119
--- checkout_payment.php 2004/07/22 17:23:53 1.118
+++ checkout_payment.php 2004/07/22 21:45:38 1.119
@@ -47,6 +47,11 @@

}
}

+// redirect to the billing address page when no default address exists
+ if ($osC_Customer->hasDefaultAddress() === false) {
+ tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'));
+ }
+

// if no billing destination address was selected, use the customers own address as default
if ($osC_Session->exists('billto') == false) {
$osC_Session->set('billto', $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