Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

get the order_id before checkout sucess ?!?!?


webpt

Recommended Posts

Posted

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

Posted
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.

Posted

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

Posted

Unless I'm missing something you can't get the order_id untill checkout_process.php has been executed.

Archived

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

×
×
  • Create New...