Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Shipping Insurance to US different from International

Shipping Insurance to US different from International

Views: 633

Results 1 to 7 of 7
2 Jul 2012, 5:59 PM
#1
smithdp1 avatar

smithdp1

New Zenner

Join Date:
Feb 2011
Posts:
33
Plugin Contributions:
0

Shipping Insurance to US different from International

Hi, I am trying to charge shipping insurance using the following charges:

For domestic US buyers - 0.25 for every $100 order total
For international buyers - 0.50 for every $100 order total

I am using Optional Shipping Insurance Module

I thought about trying to clone it and set up by charging specific amount but there is no way to make the mod use a "specific zone only".

The only other option I can see is use table rates but then I have to create so many tables that it would take me forever. Some of the products are priced over $10k.

Please help!

Thank you.

2 Jul 2012, 6:12 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Shipping Insurance to US different from International

Did you try building Zone Definitions one for US and one for International ... then uninstall and reinstall the Insurance Module ... now you should be able to configure two separate rates ...

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!

2 Jul 2012, 7:16 PM
#3
smithdp1 avatar

smithdp1

New Zenner

Join Date:
Feb 2011
Posts:
33
Plugin Contributions:
0

Re: Shipping Insurance to US different from International

Yes I just tried that. The only way this mod gives you to build different rates is by table. Is there some type of multiplier i could use in the table rates? Right now the tables rates would be like this:

For domestic us - 100:0.25,200:0.50,300:0.75 (I would have to do this all the way up to 10,000).
For International - 100:0.50,200:1.00,300:1.50 (I would have to do this all the way up to 10,000).

2 Jul 2012, 8:51 PM
#4
smithdp1 avatar

smithdp1

New Zenner

Join Date:
Feb 2011
Posts:
33
Plugin Contributions:
0

Re: Shipping Insurance to US different from International

Any help PLEASE!!!!

3 Jul 2012, 3:04 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Shipping Insurance to US different from International

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!

3 Jul 2012, 1:26 PM
#6
smithdp1 avatar

smithdp1

New Zenner

Join Date:
Feb 2011
Posts:
33
Plugin Contributions:
0

Re: Shipping Insurance to US different from International

Ajeh - THANK YOU SOOO MUCH!

Worked like a charm!

3 Jul 2012, 1:34 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Shipping Insurance to US different from International

Thanks for the update that this is now working for you ... :smile:

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!