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

56. Create Dependencies between Shipping and Payment Modules


With this recipe you will be able to define dependencies between your Shipping Modules and Payment Modules. It is often necessary to limit certain payment methods to specific delivery methods. An example of this would be Cash on Delivery Payment (COD) method. You may only want to accept this form of payment with Spot Delivery as the shipping method.

Presentation

When choosing Spot Delivery, your customer will be able to select the Cash On Delivery option as shown here, while it will not be offered for any other shipping method selected:

Fine Herbs for Fish, Rosemary for Beef, and Mint for Lamb!

Ingredients

Note

Modified:

catalog/includes/languages/english/modules/shipping/flat.php

catalog/includes/modules/payment/cod.php

Cooking

  1. 1. Open catalog/includes/languages/english/modules/shipping/flat.php and modify the defines to reflect manual delivery. As we are not changing the underlying module structure, cloning is not necessary...