Jump to content
Sign in to follow this  
kette

$order_id on checkout_confirmation.php - How to do that?

Recommended Posts

Hi,

How do I get the order_id on the checkout_confirmation.php page, i need it when i post data to thew payment gateway?.

I thought maybe it was possible to create the id earlier in the proces?

 

Someone who can help me?

 

A good weekend and a merry christmas to everybody

 

Kind Regards

kristian

Share this post


Link to post
Share on other sites

In checkout_process.php before this line:

tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));

 

add this:

tep_session_register('order_id');
$_SESSION['order_id'] = $insert_id;

 

 

Then in your checkout_success.php file, you can access that value like this:

echo "Your Order ID is: " . $_SESSION['order_id'];


Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×