Customize the ot_insurance.php code:
Code:
$size = sizeof($table_cost);
for ($i=0, $n=$size; $i<$n; $i+=2) {
if (round($order_total_insurance,9) <= $table_cost[$i]) {
if (strstr($table_cost[$i+1], '%')) {
$insurance = ($table_cost[$i+1]/100) * ($_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices());
} else {
$insurance = $table_cost[$i+1];
}
break;
}
}
// if the measured amount is greater than the table, use maximal cost
Then use the settings:
Shipping Insurance
Enable Insurance Module
true
Sort Order
500
Use Table Rates?
true
Alternate Insurance Type
percent
Insurance Percentage
0.00
Insurance Rate
$0.500
Increment Amount
$100.000
Amount Exempt From Fee
$0.000
Tax Class
--none--
No Insurance Fee on Virtual Products
true
No Insurance Fee on Gift Vouchers
true
No Insurance Fee on Free Shipping
true
Required Insurance Amount
$0.000
Insurance Zone 1
US Insurance Only
Zone 1 Insurance Table
10000:.25%
Insurance Zone 2
Rest of the World Insurance Only
Zone 2 Insurance Table
10000:.50%
Where the Zone Definition for US Insurance Only is the US Insurance Only zone(s) you want to for National rates and the Zone Definition for Rest of the World Insurance Only zone(s) you want for International ...
Bookmarks