Customize the ot_insurance.php code:
$size = sizeof($table_cost);
for ($i=0, $n=$size; $i<$n; $i+=2) {
if (round($order_total_insurance,9) <= $table_cost[$i]) {
[B] if (strstr($table_cost[$i+1], '%')) {
$insurance = ($table_cost[$i+1]/100) * ($_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices());
} else {
[/B] $insurance = $table_cost[$i+1];
[B] }
[/B] 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 ...
Linda McGrath
If you have to think ... you haven't been zenned ...
**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!