files___ Posted May 10, 2017 Share Posted May 10, 2017 Hello folks, I need help. How can I get the 'id' of the order the client is doing?! I mean...Can I get the id of the order even if the client doesn't do the checkout yet?! Thanks! Link to comment Share on other sites More sharing options...
musicmaster Posted May 10, 2017 Share Posted May 10, 2017 Before the checkout an order is not an order but a cart. And carts have their own id's. Link to comment Share on other sites More sharing options...
files___ Posted May 10, 2017 Author Share Posted May 10, 2017 @musicmaster, thanks for the reply.The cart's id and the order's id will be equal?! I mean...I need to assign to a table in my database the value of the order's id to a field data! The problem is that I don't know when i can do that! Is it possible add in some part of the code a query where I Update a data field in a table with the value of the order's id?! Thanks! Link to comment Share on other sites More sharing options...
musicmaster Posted May 10, 2017 Share Posted May 10, 2017 No, those numbers are not equal. They are created with auto-increase when a new cart resp order is created. They are related however by the id_cart field in the ps_orders table. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now