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

65. Limit Also Purchased Products Selection by Date


The Also Purchased infobox shows the customers those products that have been purchased by other customers in addition to the product they are just viewing in the Products Detail page. With large stores and frequently changed or seasonal products, it is reckless to show products that are not relevant to your customer, be it for seasonality or practicality. This recipe shows you how to limit this selection to a specific number of days from the time the last purchase was made.

Presentation

The following screenshot shows Administration | Configuration | Maximum Values with the new key Also Purchased Max Days edited to limit by the last 60 days:

Ready to slice the roast?

Ingredients

Note

New:

database.sql (to be run in phpMyAdmin)

Modified:

catalog/includes/modules/also_purchased_products.php

Cooking

  1. 1. Run the SQL statement in phpMyAdmin to create a new key in the Maximum Values area of your configuration parameters that will allow you to...