Jump to content

Get the first customer order state


Guillaume_MPS

Recommended Posts

Thank you Bellini13,

 

For my case (I need to know if the first order state is "payment accepted"), I choose to call the Order function hasBeenPaid().

 

But I thank you for your SQL query. For my knowledge, could you give me an example of object-oriented code with Prestashop classes ?

Link to comment
Share on other sites

For my case (I need to know if the first order state is "payment accepted"), I choose to call the Order function hasBeenPaid().

 

 

That is fine, but that is not what you asked for originally, which was...

 

I need to get the first order state in a module payment to validate the order.

 

 

The Prestashop codebase is littered with examples of OOO, for example look at the function getAddressIdBySupplierId in the Address class

  • Like 1
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...