i am going to do something on the login page.
when you create an account from shopping cart, the create account page will redirect your page to shopping cart, how? where is those codes...
i am going to do something on the login page.
when you create an account from shopping cart, the create account page will redirect your page to shopping cart, how? where is those codes...
Where the customer is redirected to after creating an account depends on whether they have something in the cart or not. The relevant code is in in includes/modules/pages/create_account_success/header_php.php:
Code:// redirect customer to where they came from if their cart is not empty and they didn't click on create-account specifically if ($_SESSION['cart']->count_contents() > 0) { if ($origin_href != zen_href_link(FILENAME_DEFAULT)) { zen_redirect($origin_href); } }
Neville
An assumption is what you arrive at when you get tired of thinking...
Hello,
Which bit of code dictates the redirect address?
At present my create account function is redirecting customers to a page that appears to not exhist but when I type the create_account_success address directly into the browser it displays. The best I can gather is that it is redirecting to the wrong location.
So.. maybe i know what the problem is but i do not know how to fix it.
Any ideas?
(ps; I do nor read php, im sure that does't help)
Any help greatly appriciated. Beep
Bookmarks