New Zenner
- Join Date:
- Feb 2010
- Posts:
- 9
- Plugin Contributions:
- 0
Handling fee
I would like to add a handling fee using a % of the order.
It seems to me this should be easy, but I can't figure it out.
Any help would be appreciated.
Thanks
Views: 1,574
New Zenner
I would like to add a handling fee using a % of the order.
It seems to me this should be easy, but I can't figure it out.
Any help would be appreciated.
Thanks
Oba-san
What shipping module(s) are you using?
Linda McGrath
If you have to think ... you haven't been zenned ...
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!
New Zenner
sorry, found it...:blush:
Oba-san
What was the solution that worked for you? :smile:
Linda McGrath
If you have to think ... you haven't been zenned ...
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!
New Zenner
well, now it is not working right. I am using the usps module, and I entered 3% into the handling fee option. It is adding $3 to the shipping cost not 3%.
WHat now?
Oba-san
That is increasing the Shipping Weight by 3% in weight ... not cost ...
You need to customize your shipping module(s) to increase the calculated cost by 3% ...
Linda McGrath
If you have to think ... you haven't been zenned ...
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!
New Zenner
ok, how do I do that?
Oba-san
You would need to edit the shipping module(s) you are using and add the 3% to the cost ...
The shipping modules are all located in:
/includes/modules/shipping
Linda McGrath
If you have to think ... you haven't been zenned ...
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!
New Zenner
is there a mod to do this, or somewhere I can more detailed instructions?
Oba-san
I don't know what shipping module(s) you are using as you refuse to say so I haven't a clue how to help you other than to tell you to adjust the cost in them ...
There a a zillion examples of customizations to shipping modules all throughout the forums ...
Linda McGrath
If you have to think ... you haven't been zenned ...
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!
Oba-san
Silly me ... found what you are using ...
Look in the usps.php shipping module and look at the code:
$methods[] = array('id' => $type,
'title' => $title,
'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING) );
The $cost is what is being added to each charge and you want to adjust that for the Order Cost plus 3% ...
global $cart;
$order_total_amount = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() ;
would give you the order total ...
Add 3% to that then add that amount to the $cost ...
Linda McGrath
If you have to think ... you haven't been zenned ...
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!
New Zenner
sorry,...
Oba-san
sorry what? :unsure:
Linda McGrath
If you have to think ... you haven't been zenned ...
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!
New Zenner
Thank you for your help, will work on that and get back to you...
Oba-san
Not a problem ... let us know how it works out for you ... :smile:
Linda McGrath
If you have to think ... you haven't been zenned ...
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!
Tell staff why this post should be reviewed.