Book Image

Deep Inside osCommerce: The Cookbook

By : Monika Mathe
Book Image

Deep Inside osCommerce: The Cookbook

By: Monika Mathe

Overview of this book

osCommerce has been around since March 2000. At present there are over 10,000 live, registered osCommerce sites, and about 100,000 registered community members. Apart from providing ready-made solutions to problems, as well as a huge repository of information, the osCommerce community is a living entity with which we can all interact. With the rising success and popularity of this remarkable piece of software, things can only get better.
Table of Contents (17 chapters)
Deep Inside osCommerce: The Cookbook
Credits
Foreword
About the Author
About the Reviewers
Introduction

53. Hide Shipping Modules Driven by Weight


This recipe is perfect for you if you'd like to hide shipping modules for package weight over a certain limit, say 10lb. A reason for this could be that the shipping partner you use for this module doesn't deliver packages over a certain weight limit or that its prices get too steep after a certain weight limit is reached. In that case, you might just prefer not to show those outrageous prices, but instead a different module. This module will calculate cart weight and compare it to a key value as specified during module installation.

Note

Chef's suggestion:

If you have set a Package Tare Weight in Administration | Configuration | Shipping Packaging, this number will be added to your cart weight.

Presentation

Your Checkout Shipping page will show two shipping modules when your cart content weighs equal to or less than 10lb for our example (DVD weight is 7lb, and Tare Weight is 3lb), but if your cart weight is more than the specified value of 10lb,...