ChrisJChrisJ Posted April 25, 2005 Posted April 25, 2005 Upon testing my OS Store, I'm finding that when I log-in as a returning customer and select SIGN-IN, the next page I land at is checkout_payment.php. Shoulsn't I be routed to MY Account? How (and where) can I fix this? Thanks.
ChrisJChrisJ Posted May 5, 2005 Author Posted May 5, 2005 Upon testing my OS Store, I'm finding that when I log-in as a returning customer and select SIGN-IN, the next page I land at is checkout_payment.php. Shoulsn't I be routed to MY Account? How (and where) can I fix this? Thanks. <{POST_SNAPBACK}> Can anyone help me with this?
Mighty Mike Posted May 5, 2005 Posted May 5, 2005 i think you would need to check your login.php file and find the part that is doing the redirect
ChrisJChrisJ Posted May 6, 2005 Author Posted May 6, 2005 i think you would need to check your login.php file and find the part that is doing the redirect <{POST_SNAPBACK}> Thanks for your reply. I've looked there and it looks like this: if (sizeof($navigation->snapshot) > 0) { $origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']); $navigation->clear_snapshot(); tep_redirect($origin_href); } else { tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); Can you review this and tell me what I need to change to remedy my issue? Thanks.
burt Posted May 6, 2005 Posted May 6, 2005 Remove the following: if (sizeof($navigation->snapshot) > 0) { $origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']); $navigation->clear_snapshot(); tep_redirect($origin_href); } else { and the extra curly bracket: } that's probably underneath: tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); ROCK AND ROLL!
ChrisJChrisJ Posted May 6, 2005 Author Posted May 6, 2005 Remove the following: if (sizeof($navigation->snapshot) > 0) { $origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']); $navigation->clear_snapshot(); tep_redirect($origin_href); } else { ? ? ? ? and the extra curly bracket: } that's probably underneath: tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); ROCK AND ROLL! <{POST_SNAPBACK}> Thanks for your assistance, however I now have an error: Parse error: parse error, unexpected $ in /home/catalog/login.php on line 226 I tried to make sure there was no extra white space at the end of the file, saved again but still get this error. the redirect code area now looks like this: // restore cart contents $cart->restore_contents(); tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); } } if ($error == true) { $messageStack->add('login', TEXT_LOGIN_ERROR); } Can somone help me with this new error? Thanks.
Guest Posted May 6, 2005 Posted May 6, 2005 or just change the reference: tep_redirect($origin_href); to tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); and no matter what they get redirected to the my account page. But if a returning customer has already picked out some products and was at the checkout when they were forced to login, they may not be to kind about having to find their way back to the checkout. Especially if they are in a hurry. Just a thought. Mike
Guest Posted May 6, 2005 Posted May 6, 2005 Remove the second } from tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));} } so it's tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));} Mike
ChrisJChrisJ Posted May 6, 2005 Author Posted May 6, 2005 Remove the second } from so it's Mike <{POST_SNAPBACK}> Mike, Thanks for your help. I removed the second bracket, but still get: Parse error: parse error, unexpected $ in /home/public_html/catalog/login.php on line 226 Any other thoughts on this? The code now looks like this: // restore cart contents $cart->restore_contents(); tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); } if ($error == true) { $messageStack->add('login', TEXT_LOGIN_ERROR); }
Guest Posted May 6, 2005 Posted May 6, 2005 I did a double check and it looks like you actually removed too many brackets. try: // restore cart contents $cart->restore_contents(); } } } if ($error == true) { $messageStack->add('login', TEXT_LOGIN_ERROR); } HTH Mike
ChrisJChrisJ Posted May 6, 2005 Author Posted May 6, 2005 I did a double check and it looks like you actually removed too many brackets. try: // restore cart contents ? ? ? ?$cart->restore_contents(); ? ? ?} ? ?} ?} ?if ($error == true) { ? ?$messageStack->add('login', TEXT_LOGIN_ERROR); ?} HTH Mike <{POST_SNAPBACK}> thanks alot.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.