News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[SOLVED] Per-Piece Shipping

Started by ifredsayred, March 25, 2009, 21:38:19 PM

Previous topic - Next topic

ifredsayred

Hello-

In setting up a UPS shipping method for my client, I wondered if anyone had come up with a way to charge a standard ship rate based on "per piece" rather than weight?

My client bundles shipping and handling into the final fee, so he wants to charge $X for the first item, and $1 for each additional item. Is it possible to create such a beast with the standard UPS shipping module, or will this be a re-write of the module from the ground up?

Thanks in advance!



SOLUTION

Couldn't find a way to change this in the UPS module itself (without breaking it), so I set it up using the standard shipping module, and adding the following line of code to calculate shipping:
$total_shipping_handling = $d["zone_qty"]+8;
Jack Cole


if.red.say.red | decisive design

duchess

excuse me, I'm having the same issue. What represents "8" in your code line?

ifredsayred

It works like this - say I charge $9 for the first item, and $1 for each additional item. As an example, a customer has five items in their basket - then the shipping cost would be calculated like this:


fixed_cost = $9
per_item_cost = $1

total_shipping_cost = (total_number_of_items) + (fixed_cost - per_item_cost)

or

total_shipping_cost = (5 items)+($9-$1)
or
$total_shipping_cost = 5 + 8 = $13


So, long story short, the 8 in the formula above equals the difference between the fixed_cost ($9) and the per-item cost ($1). I hope that makes sense. If not, feel free to post questions, and I'll answer ASAP.
Jack Cole


if.red.say.red | decisive design