Hi everyone,
Just wonder how to make the shipping insurance work? We tried to unlock the below module for insurance but no matter how much we declare, it only generates one value and it's the shipping cost itself (insurance = 0)
function _setInsuranceValue($order_amount){
if ($order_amount > (float)MODULE_SHIPPING_FEDEX_WEB_SERVICES_INSURE) {
$this->insurance = sprintf("%01.2f", $order_amount);
} else {
$this->insurance = 0;
}
}
//$totals = $order->info['subtotal'] = $_SESSION['cart']->show_total();
$this->_setInsuranceValue($totals);
request['RequestedShipment']['TotalInsuredValue']=array('Ammount'=> $this->insurance, 'Currency' => $_SESSION['currency']);
Any help would be much appreciated.