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

64. Set an Expiry Date for Products


This recipe is perfect for displaying seasonal products or one-day-only offers without the hassle of correcting product status manually. A function set up in your catalog area will automatically check for expiring products and adjust status in a similar way to that in which Specials or banners are checked for expiry in the default osCommerce version. This is a wonderful example of how code from one area can be used for a different section of the site with only minor adjustments.

Presentation

Your Administration | Catalog | Categories/Products page will look like this with the DVD Movie Speed having been on display for four days only (Date Added of July 20, Expiry Date of July 24). On July 24, it was set automatically to inactive.

You will be able to see the expiry date set for each product as applicable. Here Speed 2 will be available till September 30, and then will automatically expire:

Let's slap on those cold-cuts before their due date!

Ingredients

Note...