Forums / General Questions / How do I add a percentage to shipping rates?

How do I add a percentage to shipping rates?

Views: 1,007

Results 1 to 9 of 9
19 Apr 2012, 4:39 AM
#1
pityocamptes avatar

pityocamptes

New Zenner

Join Date:
Aug 2007
Posts:
77
Plugin Contributions:
0

How do I add a percentage to shipping rates?

I would like to add basically my state tax to all shipping rates since when I ship the items I will be paying the local/state tax. How would I include a flat percentage to all shipping charges based on the shipping amount for each order? Thanks!

20 Apr 2012, 1:19 AM
#2
pityocamptes avatar

pityocamptes

New Zenner

Join Date:
Aug 2007
Posts:
77
Plugin Contributions:
0

Re: How do I add a percentage to shipping rates?

Bump!!!!!!!!

20 Apr 2012, 11:59 AM
#3
davowave avatar

davowave

New Zenner

Join Date:
Mar 2009
Posts:
90
Plugin Contributions:
0

Re: How do I add a percentage to shipping rates?

you can set the shipping to include taxes automatically. have a look though the tutorials for how to do this, it's just a setting in the admin.

The other alternative would of course be to add the tax to the shipping manually when you configured your shipping module

20 Apr 2012, 9:26 PM
#4
pityocamptes avatar

pityocamptes

New Zenner

Join Date:
Aug 2007
Posts:
77
Plugin Contributions:
0

Re: How do I add a percentage to shipping rates?

Thanks. Not sure where to look. Basically I just need to include a tax percentage to all shipping prices without the order indicating the shopper was taxed, maybe just a flat fee percentage added based on SHIPPING prices? Anything additional? Thanks!

20 Apr 2012, 9:35 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: How do I add a percentage to shipping rates?

What shipping methods are you using? :unsure:

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!

21 Apr 2012, 2:16 AM
#6
pityocamptes avatar

pityocamptes

New Zenner

Join Date:
Aug 2007
Posts:
77
Plugin Contributions:
0

Re: How do I add a percentage to shipping rates?

Ajeh:

What shipping methods are you using? :unsure:

The USPS and UPS mods, payment mod is Paypal. Basically I want to make sure that I charge my state and local tax on shipping so that when I go to ship the items I don't lose money. A flat percentage ONLY on the shipping charges would be good also, but I don't know how to do that... I don't want the percentage or "tax" on the items purchased, just the shipping portion...

21 Apr 2012, 2:37 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: How do I add a percentage to shipping rates?

Edit the two shipping modules and below the line:

          $cost = preg_replace('/[^0-9.]/', '',  $cost);

and add to the $cost your percentage ...

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!

25 Apr 2012, 7:25 PM
#8
pityocamptes avatar

pityocamptes

New Zenner

Join Date:
Aug 2007
Posts:
77
Plugin Contributions:
0

Re: How do I add a percentage to shipping rates?

Ajeh:

Edit the two shipping modules and below the line:

      $cost = preg_replace('/[^0-9.]/', '',  $cost + 10%);
> 
> and add to the $cost your percentage ...


So, if my tax amount is 10% I would code it like above? Thanks.
25 Apr 2012, 9:41 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: How do I add a percentage to shipping rates?

No ... you need to add the custom code UNDER that line with something like:
$cost = $cost * 1.10;

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!