Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Built-in Shipping and Payment Modules / how to add a special handling fee of 30% to products

how to add a special handling fee of 30% to products

Locked
This thread is locked. New replies are disabled.
14 Jan 2009, 6:16 PM
#1
iface avatar

iface

New Zenner

Join Date:
Dec 2005
Posts:
21
Plugin Contributions:
0

Post #1 by iface

Hello I've been trying to add a special handling fee of 30% to a few of the products we sell. How would I go about this?
I was hoping to apply a handling fee made up of; 30% of the total cost of these products. Shipping costs would be added after the handling fee.

Zen Cart 1.3.8
Database Patch Level: 1.3.8

14 Jan 2009, 6:24 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Post #2 by fairestcape

As it would apply to a specific selection of products, you could consider using attributes, where there is only one attribute and it is selected as a default (can't be de-selected).

Configure the attribute to add 30% to the price of the product to which it applies.

14 Jan 2009, 9:12 PM
#3
iface avatar

iface

New Zenner

Join Date:
Dec 2005
Posts:
21
Plugin Contributions:
0

Post #3 by iface

Hello
Thank you for the help. I was able to add a new attribute like you suggested. The system now adds the correct handling charge as expected. The only problem is that it does not break out the fee as a line item in the total like it does for the shipping charge. It lumps (or hides) the handling charge in with product price. How could I have the total handling charge for all products purchased display as a line item in the shopping cart and checkout screen?

I don't want to hide the handling charge. I like it being clearly stated.

Thank you in advance for your valuable time.

15 Jan 2009, 1:02 PM
#4
iface avatar

iface

New Zenner

Join Date:
Dec 2005
Posts:
21
Plugin Contributions:
0

Post #4 by iface

Hello

I'm using the United Parcel Service (ups) shipping module.
I've been able to set the value of the handling fee to a dollar value. Is it possible to set it to a percentage value? (like 10%)

Zen Cart v1.3.8/v1.3.8
Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635

thank you

15 Jan 2009, 2:46 PM
#5
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Post #5 by fairestcape

To display it as a line item involves a LOT more work...

A new dedicated field has to be added to the database.

There will also need to be an input field put into the add/edit product screen.

There will also need to be an order-total module written to handle the arithmetic (add up all the handling fees and parse the result to the Order Total page)

Code / mechanisms to call the value variable(s) to insert/calculate these when necessary.

Changes made to every part where it's important to show this - both to the admin and the customer. EG: when a customer calls up his order history in his My Account section, the template page that displays the result must be modified to call the handling fee amount and show it...

It can be done - but it's very detailed.

15 Jan 2009, 4:58 PM
#6
ajeh avatar

ajeh

Oba-san

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

Post #6 by ajeh

You would need to customize the shipping module to treat the Handling Fee as a percentage rather than a fixed 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!]
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!

16 Jan 2009, 9:13 PM
#7
iface avatar

iface

New Zenner

Join Date:
Dec 2005
Posts:
21
Plugin Contributions:
0

Post #7 by iface

Hello fairestcape

Thank you for your guidance. WOW that would be beyond my skills with Zen Cart. Would it make a difference if I applied a 30% handling fee to all products we ship? It looks like the UPS shipping module has a built in Handling Fee charge. But it doesn't look like it will apply a % value.

16 Jan 2009, 9:15 PM
#8
iface avatar

iface

New Zenner

Join Date:
Dec 2005
Posts:
21
Plugin Contributions:
0

Post #8 by iface

Thank you.

16 Jan 2009, 10:47 PM
#9
iface avatar

iface

New Zenner

Join Date:
Dec 2005
Posts:
21
Plugin Contributions:
0

Post #9 by iface

How would I find the script for the UPS shipping module? Can you tell me the filename?

16 Jan 2009, 11:48 PM
#10
ajeh avatar

ajeh

Oba-san

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

Post #10 by ajeh

I'd peek in the shipping modules:

/includes/modules/shipping/ups.php
NOTE: there are no overrides for the shipping modules, just for the language files associated with them in:
/includes/languages/english/modules/shipping/ups.php
going to:
/includes/languages/english/modules/shipping/your_template_dir/ups.php

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!