prestashop_newuser Posted October 21, 2016 Share Posted October 21, 2016 I am creating a custom module in Prestashop. In that module I want to get the order details when a new order has been made on the store. So I want to know which hook should I use and how to get new order details along with customer details when a new order has been made. Any help and suggestions will be really appreciable. Link to comment Share on other sites More sharing options...
rocky Posted October 21, 2016 Share Posted October 21, 2016 Try: public function hookValidateOrder($params) { $order_detail = $params['order']->getOrderDetailList(); } The following parameters are available for that function: cart, order, customer, currency, order_status. 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