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

28. Add an Anchor for Options in Product Info


This recipe is great for those of you who have to choose from long descriptions and options for your products. It's important for customers to be able to view product options quickly, and here they can jump directly to the relevant spot. This link will only display if there are existing options to choose from.

Presentation

Your Product Detail page will look like this:

After clicking on the link, your customer jumps directly to the options offered, as shown here:

Have your eyes on the fries? Help yourself!

Ingredients

Note

Modified:

catalog/includes/languages/english/product_info.php

catalog/product_info.php

Cooking

  1. 1. Add the following language define statement to catalog/includes/languages/english/product_info.php:

define('TEXT_VIEW_OPTIONS', 'View Options');
  1. 2. Open catalog/product_info.php and find the following code in line 83 where the product name and model are defined:

if (tep_not_null($product_info['products_model'])) {
$products_name...