fconaway Posted November 22, 2006 Posted November 22, 2006 Software installed and I entered myself in as a customer and purchased an item no problem. Next attempt to purchase an item, trying to log in it takes me to my web host site instead of the check-out/payment section. What file handles this and where should it be pointing?
jdvb Posted November 22, 2006 Posted November 22, 2006 in login.php it is set: 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_DEFAULT)); } so you should be redirected to wherever you came from. If this is not working you could try: #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_DEFAULT)); # } instead. You will then be redirected to the shop index.php if you would rather have your customers checkout instead change FILENAME_DEFAULT to FILENAME_CHECKOUT_SHIPPING good luck
fconaway Posted November 23, 2006 Author Posted November 23, 2006 in login.php it is set: 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_DEFAULT)); } so you should be redirected to wherever you came from. If this is not working you could try: #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_DEFAULT)); # } instead. You will then be redirected to the shop index.php if you would rather have your customers checkout instead change FILENAME_DEFAULT to FILENAME_CHECKOUT_SHIPPING good luck
fconaway Posted November 23, 2006 Author Posted November 23, 2006 I looked at the two sets of code and I can't find the difference. I made the changes w/ copy and paste but it did not improve the problem. I made the change from FILENAME_DEFAULT to what you advised and it kept giving me the error of wrong username/password. What next??????
Recommended Posts
Archived
This topic is now archived and is closed to further replies.