webpt Posted April 14, 2009 Posted April 14, 2009 Hi all, So this will hopefully be a really simple question to answer; I am trying to get the order id for the current order from within the code of a payment module that I am creating, i need to know the order_id because one module that im develop, but i can realize where to get that, cause the array $order only have the status of the order , products and the costumer data. Any help will be gratefully accepted. Regards, MV
Guest Posted April 15, 2009 Posted April 15, 2009 get the order_id before checkout sucess ?!?!?, trying get order_id for the current order on ckeckout confirmation I may be wrong here but as far as I know that is not possible. The order_id is created when the order is written to the database. So untill they click continue on checkout_confirmation there is no order_id.
webpt Posted April 15, 2009 Author Posted April 15, 2009 hi bktrain i believe that is possible if we use the after_process() function, just dont know how can i write / increment the variable of the order_id in DB . If you can help me that i sure that i can solve the problem. regards, MV
Guest Posted April 15, 2009 Posted April 15, 2009 Unless I'm missing something you can't get the order_id untill checkout_process.php has been executed.
webpt Posted April 15, 2009 Author Posted April 15, 2009 hi again someone just do it , after a forum search but dont explain how... just ask and waiting for the answer, u could see here http://www.oscommerce.com/forums/index.php?sho...p;#entry1390735 regards, MV
Recommended Posts
Archived
This topic is now archived and is closed to further replies.