Jump to content

Obtain Order details from id_order


dazmania

Recommended Posts

Hi,

 

Apologies if this is covering old ground, I did search for a solution but couldn't find exactly what I was looking for.

I'm new to PrestaShop and I already see the genius in the way that it is constructed but it's taking me some time to find my feet so please be gentle :)

 

I am creating a module that hooks: ActionOrderStatusPostUpdate

 

I would like to obtain the full contents of the customers order when this hook is triggered.

I know that I can obtain the 'order_id' like so:

 

$idOrder = $params['id_order'];

 

& I also found that I can obtain certain aspects of the order such as it's value & taxes etc by calling:

 

$order = new Order((int)$params['id_order']);

 

But how can I easily obtain information about what was ordered such as the product id ( reference ) ?

 

Many thanks,
D

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...