jobywankanobi Posted September 10, 2008 Posted September 10, 2008 Someone uses my store- adds to their cart- they go to purchase and it says "You must log in" or "You must create an account" so the person does and when they press the log in button- it goes back to their cart. I want them to go straight to Checkout (payment_options.php) so they can keep moving forward in the direction they were already going. I am having trouble locating which folder the link is in. Does this make sense? FOR bonus points: How do I add a third option for people who want to buy something but dont want to fill out an account, or log in- "Don't have an account" "don't want to log in" but "I want to purchase an item as a guest" option. That one wins a one week cruise to Russia. :-)
satish Posted September 10, 2008 Posted September 10, 2008 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)); } change tep_redirect($origin_href); to the page You want to redirect. // tep_redirect(chekoutpayment.php); Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
jobywankanobi Posted September 11, 2008 Author Posted September 11, 2008 You freakin rule man! Thanks! 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)); } change tep_redirect($origin_href); to the page You want to redirect. // tep_redirect(chekoutpayment.php); Satish
jobywankanobi Posted September 19, 2008 Author Posted September 19, 2008 Hey Satish- I tried this and It still doesn't work-- am I including the two backslashes in the code as well? am I replacing tep_redirect($origin_href); with // tep_redirect(checkout_shipping.php) ?? 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)); } change tep_redirect($origin_href); to the page You want to redirect. // tep_redirect(chekoutpayment.php); Satish
satish Posted September 20, 2008 Posted September 20, 2008 // tep_redirect(checkout_shipping.php) putting two backslashes will comment the code and it will not get executed. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
satish Posted September 20, 2008 Posted September 20, 2008 tep_redirect($origin_href); to the page You want to redirect This is what needs to be done. change $origin_href to the value you want to redirect. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
jobywankanobi Posted October 30, 2008 Author Posted October 30, 2008 tep_redirect($origin_href); to the page You want to redirect This is what needs to be done. change $origin_href to the value you want to redirect. Satish I tried this listing both in the login.php page: tep_redirect(checkout_shipping.php); and tep_redirect(shop/checkout_shipping.php) and nothing happens. It still goes to shopping cart or i get an error. Any thoughts?
jordan Posted November 17, 2008 Posted November 17, 2008 I tried this listing both in the login.php page: tep_redirect(checkout_shipping.php); and tep_redirect(shop/checkout_shipping.php) and nothing happens. It still goes to shopping cart or i get an error. Any thoughts? Try Using File Names such as tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING)); I had to change the redirect in 2 places on my login page. It's a Zoo in Here, Literaly...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.