masad1 Posted September 14, 2017 Share Posted September 14, 2017 Hi, I have made a custom module for 3rd party licensing and on the license conformation I have used a hook displayOrderConfirmation to call APIs for contacting licensing server. There is a variable params containing all the data regarding purchase order but I don't know the full scope of params, like what kind of data it holds and how can I access it. Kindly help me regarding params. Thank you. Link to comment Share on other sites More sharing options...
ELEGANTAL Posted September 14, 2017 Share Posted September 14, 2017 Hi, You may check this file: /controllers/front/OrderConfirmationController.php There is displayOrderConfirmation function which shows what params are passed. On Prestashop 1.6 params has: $params['total_to_pay'] = $order->getOrdersTotalPaid(); $params['currency'] = $currency->sign; $params['objOrder'] = $order; $params['currencyObj'] = $currency; Link to comment Share on other sites More sharing options...
masad1 Posted September 15, 2017 Author Share Posted September 15, 2017 Thanks, but the file: /controllers/front/OrderConfirmationController.php only has limited order information. What about the customer information? Is there any way I can access the customer information? Thank you. Link to comment Share on other sites More sharing options...
ELEGANTAL Posted September 15, 2017 Share Posted September 15, 2017 You can access customer like this: $customer = new Customer($params['objOrder']->id_customer); 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