Jump to content

[solved] How to get the id_order in a module prestashop 1.4


Recommended Posts

I have a modul that sends this:


<description><![CDATA[ordernummer ' . $order->id_cart . ']]></description>


to my accounting software.


The problem is, id_cart is not a ordernumber but a cart number.


If i change id_cart to id_order it gives the description the value 0


Anyone knows how I can achieve to get the proper order id ?

Link to comment
Share on other sites

Not sure where exactly you use this, but can it be that the order at this point in the program isn't saved to the database yet, and thus not yet got an order id?


If not, please elaborate where/how/when exactly you use this module.


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...