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

29. Integrate Tell a Friend into Product Info


This recipe is a treat if you intend to get rid of as many infoboxes as possible while keeping their function. We will look at adding Tell a Friend as a link or as a button.

Presentation

Your Product Detail page will look like this if you add Tell a Friend as a link for variation #1:

If you prefer to use a button centered between Reviews and Add to Cart, try out variation #2 and your screen will look like this:

Will you offer fresh ground pepper or parmesan?

Variation #1

This variation of the theme will add a Tell a Friend link right above the product description.

Ingredients

Note

Modified:

catalog/includes/column_right.php

catalog/includes/languages/english/product_info.php

catalog/product_info.php

Cooking

  1. 1. Open catalog/includes/column_right.php and comment out the call for the Tell a Friend box in line 36. Change it from this:

if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND)
include(DIR_WS_BOXES . 'tell_a_friend.php');
  • To this:

// if (basename...