kette Posted December 18, 2009 Share Posted December 18, 2009 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 Quote Link to comment Share on other sites More sharing options...
dynamoeffects Posted December 20, 2009 Share Posted December 20, 2009 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']; m2a221 1 Quote 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 More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.