Quote Originally Posted by oldschoolrocker View Post
I'm currently using Zones for International shipping, and 3 different (cloned) Table modules for the U.S. So far, I can't get the "Use Table Rates?" setting to work...

Now, the main problem is, if I list an "Insurance Rate" of $1.65 (standard for $0.01-$50.00), and have that increase by either $50 or $100 increments, the cost of insurance becomes inaccurate and excessive. Same with using a percentage...

Ideally, I'd like to use the hard-coded method of the older "shipping_insurance" module. Can the below code (from the older module) be integrated into 3.10?

#
#
# if (! $_SESSION['insurance']) {
$charge_it = 'false';
}
#
#
#
#
#
// use hard-coded usps rates
if ($ratetable == 'US') {
if ($order->info['subtotal'] < 50.01) {
$insurance = 1.65;
} else if ($order->info['subtotal'] < 100.01) {
$insurance = 2.05;
} else if ($order->info['subtotal'] < 200.01) {
$insurance = 2.45;
} else if ($order->info['subtotal'] < 300.01) {
$insurance = 4.60;
} else if ($order->info['subtotal'] < 400.01) {
$insurance = 5.50;
} else if ($order->info['subtotal'] < 500.01) {
$insurance = 6.40;
} else if ($order->info['subtotal'] < 600.01) {
$insurance = 7.30;
} else {
$insurance = 7.30 + ((($order->info['subtotal'] - 600) / 100) * 1.05);
}
The rates for UPS are given as the default rates when you first install the module. If you want to keep it this way, do not change anything and put use table rates.