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

50. Add Percentage and Base Price Support to Table Rate


This recipe will be very useful for you if you'd like to specify a Table Rate based on the Order Total, but would like to add a percentage to some or all rates in this cost table. It is also possible to use only a percentage of the Order Total for a value. An example would be a Rush Order module, where all rates are raised by a certain percentage of the Order Total compared to regular shipping; that example is explained at the end of the Cooking section.

Here is an example that could be covered by this new flexible module:

Order Total

Shipping Cost

$0.00 - 25

8.50

$25.01 - 50

5.50 + 3%

$50.01 - 10000

3%

Presentation

Your Shipping Modules will look like this to follow this shipping plan:

Depending on cart content, the calculated shipping cost will follow our rules. For an Order Total equal to or under $25.00, shipping cost will be $8.50. For an Order Total over $50.00, shipping cost will be calculated by the formula using...