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

Chapter 8. Season Your Payment Modules

Payment Modules have to follow your business guidelines in the same way Shipping Modules do. The default osCommerce setup unfortunately does not cater to the following three indispensable options:

  • Hide Payment Modules from public eyes (while you test them in their future home, not a development site)

  • Create dependencies between Shipping Modules and Payment Modules

  • Offer customized payment options for selected customers

This chapter provides you with the necessary code snippets to implement all of the above. After trying out the following recipes, you will agree that the Payment Modules that used to appear completely static are, in fact highly flexible, and able to react to your shop's profile.

55. Hide Payment Modules from Public Eyes

This recipe allows you to specify your own customers_id from your dummy account for safely testing a payment module while keeping it hidden from all other users. While the test is under progress, other users can freely access...