dazmania Posted January 22, 2015 Share Posted January 22, 2015 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 More sharing options...
tuk66 Posted January 24, 2015 Share Posted January 24, 2015 Use OrderDetail::getList((int)$params['id_order']) to get order details. 1 Link to comment Share on other sites More sharing options...
dazmania Posted January 26, 2015 Author Share Posted January 26, 2015 Hey tuk66, thanks - that is what I needed 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