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

25. Call a Pop Up from Product Description in Product Info


This recipe shows you how to call a pop up from within your product-description text, which is extremely useful for sizing charts, color swatches, or any other information of your product that customers would need to see. It is especially practical for blocks that are reusable, and therefore can be added to multiple products.

Presentation

Here is an example of a pop up added to the description of the product; it lets customers know to which countries heavier items can be shipped.

Ready for a toasty treat? Here's your code!

Ingredients

Note

New:

catalog/popup_shipto.php

(this is a clone of the catalog/popup_search_help.php file)

Modified:

catalog/includes/languages/english/product_info.php

catalog/product_info.php

Cooking

  1. 1. Make a clone of catalog/popup_search_help.php and save it as catalog/popup_shipto.php.

  2. 2. Open your new file and change line 3 to reflect the new file name, so it looks like the following:

$Id: popup_shipto...