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

26. Call Unique Code for a Single Product in Product Info


There may be situations where you'd like to add some very special information to one product only, but do not want to add an entirely new column system for the products table in database and admin. This quick recipe shows you how to deal with this special situation elegantly.

Presentation

For this screenshot, the following situation was created: All customers logged in with the first name Mary will see, only for the product There's Something About Mary, a nice message displayed. Should you have a contribution with gift vouchers installed, this would be a perfect spot to show a "MARY" voucher code say for 10% off for this DVD. There are countless possibilities to modify this hack, which in our situation looks like this:

Note

Chef's suggestion:

This recipe is not a one size fits all template that you will be able to use for your site. Carefully adjust the configuration table headings and condition statements to match your own requirements...