RE: Customer Login Routines
JulieCSM <[email protected]> 5 Sep 2003 19:56:40 -0000
| Newsgroups | gmane.comp.web.oscommerce.tips |
|---|---|
| Message-ID | <eb44de88b50fe9620f663231a72b845b@osCommerce-Forums> |
This message was sent from: Tips and Tricks
http://forums.oscommerce.com/viewtopic.php?p=224886#224886
----------------------------------------------------------------
OK - all fixed and tested. If anyone wants to use this, at the end of create_account_process, change:
[code]tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL')); [/code]
to:
[code]if ($cart->count_contents() > 0) {
tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
} else {
tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL'));
}[/code]
This will automatically redirect the customer back the the checkout shipping page if they have items in their basket, and go to create account success if their basket is empty.