Get Order Total in UPS Shipping Module for Prestashop

Question: What’s the best way to access the cart (order) total in the UPS shipping module? I tried a new cart but that was giving me issues. Is there a way to retrieve it through the parameters?

Something like

public function getOrderShippingCost($params, $shipping_cost, $products = null)

$total = $params->totalCart;
$wsParams = array(
‘products’ => $params->getProducts()
$total = $wsParams[‘products’][0][‘total’];


Leave a Reply

Your email address will not be published. Required fields are marked *