Community Add-Ons

Maintainers: jrochman
Add file to this package
Top » Shipping Modules

Zero / No Weight = Free Shipping
for osCommerce Online Merchant v2.2

This is a simple contribution that will allow you to determine if shipping is free based on the total weight of the items in the cart. In my case I wanted gift cards to be shipped free, so I gave them a product weight of 0 and set this contribution to allow free shipping only if the total weight of the cart equaled 0 lbs / kgs.

All it does is switch the built in free shipping option from "order total" to "cart weight."

Estimated time for install is five minutes!

Legend:  Download   Report
Expand All / Collapse All
Simple Change to checkout_shipping.php jimmel 13 Aug 2008  

If you would like zero / no weight shipping but still collect customer's address, the change is very simple:

Add the following lines:
} else if($cart->show_weight() == 0) {
$free_shipping = true;

above this line (somewhere about 97):

} else {
$free_shipping = false;
}

Free Shipping for some products Buckwheat469 16 Dec 2005  
ZWFS v1.1 jrochman 9 Dec 2005  
easy way. deep-silver 7 Dec 2005  
Zero / No Weight = Free Shipping jrochman 4 Dec 2005