Zen-Cart Shipping Module:
Background:
- The "product" is a label that can be printed on various types of media
- Each product has a primary attribute called "Media Type." This tells us what
media to print on (eg: T-Shirt, Sweatshirt, mug, mouse pad, etc)
How Shipping Is Calculated:
- Shipping is based on the Media Type attribute and quantity (similar to the
"$x for first item $y for additional items" flat-rate shipping module for
osCommerce)
- Each media type has 2 main shipping prices associated with it.
- The first is the single item (eg: $5.00 for a t-shirt)
- The second is if it is an add-on item in the cart (eg: $2 for each
additional t-shirt)
- HOWEVER, the "first item" and "Add-on Item" price is location-dependant, so
the cost can be different for shipping within the US, Canada, and any other
international address. (See Figure 1 below)
Figure 1:
T-Shirt:
---------------+---------+----------+-----------------
Shipping | US | Canada | International
---------------+---------+----------+-----------------
First Item | $5.00 | $6.50 | $7.50
Add-on Item | $2.00 | $2.50 | $3.50
---------------+---------+----------+-----------------
Mouse Pad:
---------------+---------+----------+-----------------
Shipping | US | Canada | International
---------------+---------+----------+-----------------
First Item | $2.50 | $3.50 | $3.50
Add-on Item | $1.00 | $2.00 | $3.50
---------------+---------+----------+-----------------
- If the cart has mixed media in it, the initial shipping cost is taken from
the HIGHEST intial shipping cost
Example:
- we have 2 mouse pads and 2 t-shirts and are shipping to the US
1.) it should take the t-shirt's initial shipping cost of $5.00 first
2.) then, it should use the additional shipping cost of $2.00 for each
additional t-shirt
3.) for both mouse pads, it would use the add-on cost of $1.00 for the
each mouse pad
- This would total $9.00 shipping. [see Figure 2 below]
- If you took the shipping cost of the mouse pad instead of the t-shirt in
step one, the total shipping would be $7.50 and too low
[see Figure 3 below]
Figure 2:
-----------------+-----------------
Item | Shipping Cost
-----------------+-----------------
1st T-shirt | $5.00
2nd T-shirt | $2.00
1st Mouse Pad | $1.00
2nd Mouse Pad | $1.00
-----------------+-----------------
Total: | $9.00
Figure 3:
-----------------+-----------------
Item | Shipping Cost
-----------------+-----------------
1st Mouse Pad | $2.50
2nd Mouse Pad | $1.00
1st T-shirt | $2.00
2nd T-shirt | $2.00
-----------------+-----------------
Total: | $7.50
I can do this mod fast. I have worked on zenkart which is highly modified version of oscommerce. It has all taxes splitted into modules so I will need just to modify [login to view URL] class. Thanks, Dmitry.