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 / Flat fee shipping per unique product regardless of qty

Flat fee shipping per unique product regardless of qty

Locked

Started by izonmedia on 3 Jun 2008, 9:35 PM · Views: 866

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
3 Jun 2008, 9:35 PM
#1
izonmedia avatar

izonmedia

New Zenner

Join Date:
Apr 2007
Posts:
10
Plugin Contributions:
0

Post #1 by izonmedia

I've searched through this forum and can't find an answer to my question.

We have 15 or so products. We want to charge a fixed shipping rate, set at the product level, regardless of quantity.

I've looked into the per-weight shipping module to do this, which allows us to set a fixed shipping amount for each unique product. However, the fixed shipping rate is multiplied by the number of units. We want to eliminate the number of units pomponent.

Example:

product A: shipping: $5.00
product B: shipping: $8.00

Order:

5 units of Product A: shipping cost = $5.00
25 units of Product B: shipping cost = $8.00

I assume that we may need to edit the code a little to accomplish this, but not quite sure where to look.

Thanks in advance.

Using: Zen-Cart ver. 1.38a

3 Jun 2008, 10:42 PM
#2
ajeh avatar

ajeh

Oba-san

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

Post #2 by ajeh

You could clone the Per Unit perweightunit Shipping module and change the calculation to still use the products_weight for the shipping charge, but ... alter it to NOT multiply that by the quantity ordered ...

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!

4 Jun 2008, 4:27 PM
#3
izonmedia avatar

izonmedia

New Zenner

Join Date:
Apr 2007
Posts:
10
Plugin Contributions:
0

Post #3 by izonmedia

Ajeh:

You could clone the Per Unit perweightunit Shipping module and change the calculation to still use the products_weight for the shipping charge, but ... alter it to NOT multiply that by the quantity ordered ...

Thanks for the reply. That's what I figured I'd need to do, but I'm not sure where in the code I need to make the change.

I looked into /includes/modules/shipping/perweightunit.php, but could not locate the proper place to make this change.

Also, can you point me to any documentation on the best way to clone modules like the perweightunit shipping module?

Thanks!

5 Jun 2008, 5:58 AM
#4
ajeh avatar

ajeh

Oba-san

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

Post #4 by ajeh

Actaully, I am leading you in the wrong direction ... :cry:

The Total Weight of the order is actually calculated in the shopping_cart class and that is managed a a total of weight * quantity ...

You would need to calculate this separately yourself to not have the weight extended based on quantity ...

You could add a new variable in the same manner that $this->weight is managed but to have the new variable not extend the weight so that you can get the unique weight ...

In other words, this just got a whole lot harder than what you wanted to hear ...

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!

6 Jun 2008, 12:36 PM
#5
izonmedia avatar

izonmedia

New Zenner

Join Date:
Apr 2007
Posts:
10
Plugin Contributions:
0

Post #5 by izonmedia

Linda,

Thanks for the info.

Fortunately, I was able to convince the management team to drop that plan and go with an existing shipping option.