Jump to content

[Solved] Where is "Order Statuses" in the PS_ database table?


Recommended Posts

I am trying to find where I can find in the Prestashop database tables the "Order Statuses" flag.

I am trying to create a SQL script that exports order details that include the current "Order Status" for each order.

Any ideas where I can find this info?

Link to comment
Share on other sites

If i am not wrong, it's under ps_order_history table. The field is id_order_state.

You have to link up with ps_order table to get the big picture. For more information regarding id_order_state field, do refer to the table ps_order_state_lang.

Link to comment
Share on other sites

What I have found is...

Table: ps_order_state_lang

id_order_state id_lang name template
2 1 4 - Payment accepted payment
3 1 1 - New Order
4 1 2 - Picking Slip Invoice
12 1 3 - Completed order awaiting payment

Table: ps_order_history

id_order_history id_employee id_order id_order_state date_add
77 0 46 3 40662.4015
77 0 46 12 40662.41067

So it works!

This history reflects all the changes made in the id_order_state for any order.

Thank you very much ;-)

Link to comment
Share on other sites

×
×
  • Create New...