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

45. Add Your Customers' Email Addresses and Phone Numbers to Your Order Confirmation Email


If you have subscribed to receive extra order email for quick and easy referencing of purchases made, you would have certainly missed the customer's contact info. This recipe adds your customers' email addresses and phone numbers under their billing address. The data used is pulled from the customers table where some of the information that your customers enter during registration is saved.

Presentation

Your Order Confirmation email will look like this:

Need to add some briquettes to the grill? Let's get going!

Ingredients

Note

Modified:

catalog/checkout_process.php

Cooking

  1. 1. Open catalog/checkout_process.php and find this code in line 246 where the billing address is added to the order email:

$email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
EMAIL_SEPARATOR . "\n" .
tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";

Replace it with the following code, adding your customer...