Is it possible to make the handling fee a percentage of the actual shipping cost?
Is it possible to make the handling fee a percentage of the actual shipping cost?
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 ...
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: v1.5.5]
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!
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:
to:Code:'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
Then in admin: Modules >> Shipping >> UPS I set the handling to .2Code:'cost' => ($cost + ($order->info['subtotal'] * MODULE_SHIPPING_UPS_HANDLING)) * $shipping_num_boxes);
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.
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
You would need to add the $cost into where the handling fee is calculated ...
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: v1.5.5]
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!
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
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
Which Order Total Module are you trying to use a percentage in?![]()
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: v1.5.5]
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!
Bookmarks