Jump to content

Custom Module for 3rd Party Licensing and Accessing Params Data


Recommended Posts

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

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

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