Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Zone Rate plus a percent?

Zone Rate plus a percent?

Locked

Views: 1,520

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
7 Jun 2008, 7:19 AM
#1
anguz avatar

anguz

New Zenner

Join Date:
Dec 2003
Posts:
56
Plugin Contributions:
1

Zone Rate plus a percent?

I am setting up the shipping using the Zone Rates module. Besides the weight ranges to determine prices, I need to add an extra 0.6% of the $ total of the sale to pay the shipping insurance. How can I do this? Thanks in advance!

8 Jun 2008, 4:40 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Zone Rate plus a percent?

You can customize the shipping module you are using for this ...

I recommend cloning the shipping module first, then customizing that one so you do not have your code overwritten on future upgrades ...

15 Jun 2008, 1:45 AM
#3
anguz avatar

anguz

New Zenner

Join Date:
Dec 2003
Posts:
56
Plugin Contributions:
1

Re: Zone Rate plus a percent?

Linda, thanks for your reply. I didn't notice it until now, had not realized I had notifications off for the subscriptions...

Tell me, how do I find out what the order total is from that file, the shipping module I'll be editing, and how can I display and add this percentage as part of the shipping?

15 Jun 2008, 4:03 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Zone Rate plus a percent?

Look in the shipping module for where the rate is determined and you will see:

    $order_total_amount = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() ;
17 Jun 2008, 7:07 PM
#5
anguz avatar

anguz

New Zenner

Join Date:
Dec 2003
Posts:
56
Plugin Contributions:
1

Re: Zone Rate plus a percent?

I look and look and still can't figure out well how to implement the extra 0.6% for the insurance in the shipping module. I was wondering if it'd be better to implement it with an Order Total module.

17 Jun 2008, 8:17 PM
#6
anguz avatar

anguz

New Zenner

Join Date:
Dec 2003
Posts:
56
Plugin Contributions:
1

Re: Zone Rate plus a percent?

I ended up adding it in the file you mentioned, at the end of the weight method case.

// Here we'll add the shipping insurance 0.6%. ~Anguz
$shipping += $_SESSION['cart']->show_total() * 0.006;
19 Jun 2008, 4:45 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Zone Rate plus a percent?

Thanks for the update on what worked for you for this ...

19 Jun 2008, 9:08 PM
#8
anguz avatar

anguz

New Zenner

Join Date:
Dec 2003
Posts:
56
Plugin Contributions:
1

Re: Zone Rate plus a percent?

Sure. Thank you for your help.