Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Passing Variables in final pages...


elogicmedia

Recommended Posts

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

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

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>

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...