Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Getting Current Order ID During Checkout


Recommended Posts

Hello, I have searched through the forums and knowledge base and can't seem to find out which code to use to get the current order ID. I've been looking at the order class and I see where it checks to see if the ID is set, and if it's not it runs the cart method of the order class, but I don't see in the cart method where the ID is set or not. I know I could do a query to get the last order ID but don't want to do this because if two customers are checking out at the same time this could mess things up. To reiterate, I need to know if it is possible to get the current order ID during checkout by simply calling the class (i.e. something like ~ $order->info['order_id'] ) and if so what's the correct code, or if it is not possible because of scope issues or the like.


Thanks in advance.



Link to comment
Share on other sites


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

  • Create New...