elogicmedia Posted July 25, 2005 Share Posted July 25, 2005 Hi, I am trying to pass an extra variable from the checkout confirmation page to the checkout success page however it seems to become lost when I do so. I noticed when you click on the form/Confirm Order button there is a form and I have managed to get the variable to be hidden within this however when the page gets to checkout_success it has disapeared. I also noticed that there is something to do with a checkout_process page then a re-direct. I tried the following: tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'new_web_subscriber='. $new_web_subscriber,'order_id='. $insert_id, 'SSL')); where the $new_web_subscriber is the variable I need to pass but this did not work. Any ideas? Thankyou Link to comment Share on other sites More sharing options...
elogicmedia Posted July 25, 2005 Author Share Posted July 25, 2005 The form that goes from checkout_confirmation to checkout_process when I view source is: <form name="checkout_confirmation" action="http://localhost/clients/www.fwamedia.com.au/onlinestore/checkout_process.php?new_web_subscriber=1&osCsid=690cff290afbe75441bf447a618460cc" method="post"><input type="hidden" name="osCsid" value="690cff290afbe75441bf447a618460cc" /><input type="image" src="templates/Original/images/buttons/english/button_confirm_order.gif?osCsid=690cff290afbe75441bf447a618460cc" border="0" alt="Confirm Order" title=" Confirm Order "></form> Link to comment Share on other sites More sharing options...
♥yesudo Posted July 25, 2005 Share Posted July 25, 2005 The form that goes from checkout_confirmation to checkout_process when I view source is: <form name="checkout_confirmation" action="http://localhost/clients/www.fwamedia.com.au/onlinestore/checkout_process.php?new_web_subscriber=1&osCsid=690cff290afbe75441bf447a618460cc" method="post"><input type="hidden" name="osCsid" value="690cff290afbe75441bf447a618460cc" /><input type="image" src="templates/Original/images/buttons/english/button_confirm_order.gif?osCsid=690cff290afbe75441bf447a618460cc" border="0" alt="Confirm Order" title=" Confirm Order "></form> <{POST_SNAPBACK}> You don't want to add a variable into that form as that form changes depending on payment method used. tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'new_web_subscriber='. $new_web_subscriber,'&order_id='. $insert_id, 'SSL')); Another way to do it is register the variable in the session then check for it on the success page and use it if it exists. Your online success is Paramount. Link to comment Share on other sites More sharing options...
elogicmedia Posted July 25, 2005 Author Share Posted July 25, 2005 Thanks yesudo, Will try that! Cheers! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.