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

46. Add Your Customers' Fax Numbers to Your Order Confirmation Email


If you have already successfully added the previous recipe for email address and phone number, you may be wondering why the fax has its own section. Fax number has to be treated separately, as default osCommerce never intended it to be used in any order process section apart from registration and address modification. This means that it was never added to the Order class; so you are not able to automatically pull it.

Presentation

There are basically three methods we could use to make your Order Confirmation email look like this:

We can:

  • Add the fax number to the classes so that information can be pulled from them easily, just like for email address and phone number

  • Write a function to get the fax number for any customers_id

  • Simply pull the fax number via a query from the customers table right where we plan to use it

For all these cases, you need to consider how often you will be using the pulled result, in this case the...