Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


kette

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

Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...