Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Configure handling fee on per box basis

Configure handling fee on per box basis

Locked

Views: 1,710

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
1 Jan 2007, 5:10 AM
#1
hnchew avatar

hnchew

New Zenner

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

Configure handling fee on per box basis

I am using Zone Rates for my Shipping Modules. However, the handling fee is only added once in the Shipping Costs despite the number of boxes needed for shipment. Is there anyway that I could add in the handling fees on per box basis.

1 Jan 2007, 5:28 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Configure handling fee on per box basis

You would need to customize:
/includes/modules/shipping/zones.php

And change the case statement for weight:

        	  case (MODULE_SHIPPING_ZONES_METHOD == 'Weight'):
              // charge per box when done by Price
              $shipping_cost = ($shipping * $shipping_num_boxes) + constant('MODULE_SHIPPING_ZONES_HANDLING_' . $dest_zone);
              break;
1 Jan 2007, 5:41 AM
#3
hnchew avatar

hnchew

New Zenner

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

Re: Configure handling fee on per box basis

Thanks. I was looking for this file. Just what I need.

1 Jan 2007, 3:09 PM
#4
hnchew avatar

hnchew

New Zenner

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

Re: Configure handling fee on per box basis

Thanks for replying to my earlier post on handling fee. May I know where to look for the file on the formula for computing "number of boxes".

I am testing how zen-cart compute shipping costs. It seems that when total item weight exceed maximum shipping weight, "number of boxes" is computed in such a way that just to keep each box under the **maximum shipping weight **limit, disregarding the maximum weight allowed for per box.
Eg: Max shipping weight=10, Total item weight=11, Number of boxes=2, Shipping weight per box=5.50. Instead of shipping weight per box=10+1.

This affects the computation of shipping costs reflected to the customers.

Henceforth, I am thinking of customising the relevant php file to change the number of boxes formula. Can you tell me where is it located?

Thanks in advance

1 Jan 2007, 3:30 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Configure handling fee on per box basis

You don't need to alter the code to compute the boxes so much as set the settings in the Configuration ... Shipping/Packaging ...

Set how large a box can be and the number of boxes will be computed for you ...

NOTE: the Tare on small to medium and large boxes will be computed in this weight unless you set them to 0:0

Then to alter the way handling is computed in the zones.php you could use:

        	  case (MODULE_SHIPPING_ZONES_METHOD == 'Weight'):
              // charge per box when done by Price
              $shipping_cost = ($shipping * $shipping_num_boxes) + ((constant('MODULE_SHIPPING_ZONES_HANDLING_' . $dest_zone)) * $shipping_num_boxes);
              break;

So that each box will have its own Handling Charge added based on the setting in the Modules ... Shipping ... Zones ...