Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Handling Fee as Percentage?

Handling Fee as Percentage?

Views: 22,068

Results 1 to 20 of 52
15 Mar 2007, 7:42 PM
#1
rydel avatar

rydel

New Zenner

Join Date:
Nov 2006
Posts:
11
Plugin Contributions:
0

Handling Fee as Percentage?

Is it possible to make the handling fee a percentage of the actual shipping cost?

16 Mar 2007, 6:55 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Handling Fee as Percentage?

You can customize the Shipping Modules in any manner that you need ...

On Handling fees, you will see where the constant is used ... change it to treat that as a percentage of the shipping rather than an amount ...

21 Jun 2007, 8:25 PM
#3
jmcdog avatar

jmcdog

New Zenner

Join Date:
Apr 2006
Posts:
29
Plugin Contributions:
0

Re: Handling Fee as Percentage?

Zen Cart 1.3.7
My client wanted to have a 20% handling fee. They are using UPS.
Here's what I did:

includes/modules/shipping/ups.php

changed this line:

'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);

to:

'cost' => ($cost + ($order->info['subtotal'] * MODULE_SHIPPING_UPS_HANDLING)) * $shipping_num_boxes);

Then in admin: Modules >> Shipping >> UPS I set the handling to .2

5 Jul 2007, 2:39 PM
#4
halestorm avatar

halestorm

New Zenner

Join Date:
Jun 2007
Posts:
6
Plugin Contributions:
0

Re: Handling Fee as Percentage?

jmcdog - this takes a percentage of the total order not a percent of the UPS shipping charge:
example.
Checkout total is $20.00
UPS ground is $5.00

You method adds $2 (assuming 10% handling) making shipping $7.00.
What I would like is take 10% of $5.00 making shipping now $5.50.

The problem I see is that a $200.00 order would pay $20 shipping even if the $20 and $200 order both weigh the same.

I tried to change some variables around in the ups.php but I am no PHP expert and seemed to always choose the wrong thing.

26 Dec 2010, 5:29 AM
#5
cocolala avatar

cocolala

New Zenner

Join Date:
Jan 2010
Posts:
31
Plugin Contributions:
0

Re: Handling Fee as Percentage?

jmcdog:

Zen Cart 1.3.7
My client wanted to have a 20% handling fee. They are using UPS.
Here's what I did:

includes/modules/shipping/ups.php

changed this line:

'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);

> to:
> ```
'cost' => ($cost + ($order->info['subtotal'] * MODULE_SHIPPING_UPS_HANDLING)) * $shipping_num_boxes);

Then in admin: Modules >> Shipping >> UPS I set the handling to .2

I would like to charge handling fee to my zones rate and zone table rate. Handling fee would be 5% of my total order. it's similar to the above but how should i do the setting?

29 Jan 2011, 6:38 AM
#6
cocolala avatar

cocolala

New Zenner

Join Date:
Jan 2010
Posts:
31
Plugin Contributions:
0

Re: Handling Fee as Percentage?

i can set handling fee for 5% from my subtotal, but how to set it if i want to charge 5% from subtotal as well as shipping?

eg.:
Subtotal $50
Shipping $10
Total $60
I want to charge handling base on $60

29 Jan 2011, 1:54 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Handling Fee as Percentage?

You would need to add the $cost into where the handling fee is calculated ...

9 Feb 2011, 3:55 PM
#8
unknowing avatar

unknowing

New Zenner

Join Date:
Sep 2008
Posts:
7
Plugin Contributions:
0

Re: Handling Fee as Percentage?

Hello- Hope I'm not high jacking this thread but it seemed like the right place to post.

---v1.3.9.f
--- add module two modules by Numinux, Ajax quick checkout and fedex

The problem is it seems that my site adds $3 per line ordered as a handling fee-

If you order several items the handling fee gets out of hand.

here is my site

vwsunroofs dot com

thanks

John

9 Feb 2011, 4:18 PM
#9
unknowing avatar

unknowing

New Zenner

Join Date:
Sep 2008
Posts:
7
Plugin Contributions:
0

Re: Handling Fee as Percentage?

Found my problem-- under the order total module- it does not recognize the "%" sign- so it added $3 instead of 3%

does anyone know how to make it a percent?

John

9 Feb 2011, 4:32 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Handling Fee as Percentage?

Which Order Total Module are you trying to use a percentage in? :unsure:

10 Feb 2011, 3:25 AM
#11
unknowing avatar

unknowing

New Zenner

Join Date:
Sep 2008
Posts:
7
Plugin Contributions:
0

Re: Handling Fee as Percentage?

I don't have a dedicated mod for the handling- I was referring to the order total- under "modules" for zencart

Admin-

modules-

order total-

handling fee-

but I still can't make it a percentage--
thanks

John

10 Feb 2011, 2:04 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Handling Fee as Percentage?

Where in the Modules ... Order Totals ... are you seeing a Handling Fee? :unsure:

The Handling Fees are in the Modules ... Shipping ... on each of the Shipping modules ... but you have me a bit lost here ...

Granted, I am only on my first cup of coffee and could be missing something ... but whatchu talk'n about willis? :blink:

10 Feb 2011, 4:45 PM
#13
unknowing avatar

unknowing

New Zenner

Join Date:
Sep 2008
Posts:
7
Plugin Contributions:
0

Re: Handling Fee as Percentage?

Does this help?

John

10 Feb 2011, 4:51 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: Handling Fee as Percentage?

I see you are using some sort of Add On for your Handling Fee and not the Handling Fee on the individual Shipping modules ...

Do you know what add on you are using?

6 Apr 2011, 4:56 PM
#15
donanater avatar

donanater

New Zenner

Join Date:
Mar 2011
Posts:
4
Plugin Contributions:
0

Re: Handling Fee as Percentage?

Hey everyone sorry if I'm reviving this old thread but it covers the basis of my question. I'm rocking v 1.3.9h and im looking to do the % based handling fee for usps. I tried changing the code to what was suggested but to no avail.

So would there be any type of other fixes you guys would know of. By chance try and reply as soon as you can, as this is one of the last steps I have left to setting up the site. Thanks for you time and answers in advance.

6 Apr 2011, 7:38 PM
#16
ajeh avatar

ajeh

Oba-san

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

Re: Handling Fee as Percentage?

What did you enter for the Handling Fee on USPS ...

What did you change the code to on the USPS shipping module? :unsure:

6 Apr 2011, 10:09 PM
#17
donanater avatar

donanater

New Zenner

Join Date:
Mar 2011
Posts:
4
Plugin Contributions:
0

Re: Handling Fee as Percentage?

Well I figured it out:clap:

The finished result was two fold. For our Free Shipping we added a 3% charge for PayPal transactions and $2.75 handling charge to cover shipping overhead. For our USPS module (priority, express, international shipping and PayPal charges we added a 5% charge plus $1.70.

No need to have an additional "Handling Fee" on the Shipping Module, this formula by-passes that.

USPS Shipping:
/public_html/includes/modules/shipping/usps.php

insert " +($order->info['subtotal'] * .05 + 1.70) into Line 298
where ($order->info['subtotal'] is your subtotal price * percent + overhead shipping cost.

Orginal:
'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING) );

Updated:
'cost' => ($cost * $shipping_num_boxes) + ($order->info['subtotal'] * .05 + 1.70) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING) );

Free Shipping:
/public_html/includes/modules/shipping/freeoptions.php

insert "($order->info['subtotal'] * .03 + 2.75) +"
where ($order->info['subtotal'] is your subtotal price * percent + overhead shipping cost.

Orginal:
'cost' => MODULE_SHIPPING_FREEOPTIONS_COST + MODULE_SHIPPING_FREEOPTIONS_HANDLING)));

Updated:
'cost' => MODULE_SHIPPING_FREEOPTIONS_COST + ($order->info['subtotal'] * .03 + 2.75) + MODULE_SHIPPING_FREEOPTIONS_HANDLING)));

Hope this helps anyone else out there.

6 Apr 2011, 10:52 PM
#18
ajeh avatar

ajeh

Oba-san

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

Re: Handling Fee as Percentage?

Thanks for the update that you have this working now and how you did it ... :smile:

13 May 2011, 3:05 AM
#19
authentic01 avatar

authentic01

New Zenner

Join Date:
Aug 2010
Posts:
22
Plugin Contributions:
0

Re: Handling Fee as Percentage?

Hey, I'm looking and I don't see any handling fee under this module. Is this an add on?

13 May 2011, 3:06 AM
#20
authentic01 avatar

authentic01

New Zenner

Join Date:
Aug 2010
Posts:
22
Plugin Contributions:
0

Re: Handling Fee as Percentage?

Unknowing:

Does this help?

John

Hello, I look under this module and I don't see any handling fee. Is this an add on?