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;
Answer:
$wsParams = array(
‘products’ => $params->getProducts()
);
$total = $wsParams[‘products’][0][‘total’];