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

44. Personalize Your Order Confirmation Email


The Order Confirmation email that osCommerce comes with by default provides no personal greeting to the customer and looks sparse and unfriendly. This recipe adds a nice greeting and some basic information about the order that was processed.

Presentation

Your Order Confirmation email will look like this:

Rather than the following:

Pat-a-cake, pat-a-cake, baker's man!! Let's mark it with your customer's initial!

Ingredients

Note

Modified:

catalog/includes/languages/english/checkout_process.php

catalog/checkout_process.php

Cooking

  1. 1. Open catalog/includes/languages/english/checkout_process.php and add the following define statement for the greeting:

define('TEXT_DEAR', 'Dear ');
  1. 2. Open catalog/checkout_process.php. To achieve the same results as in the previous screenshot, look out for this code in line 36:

include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_PROCESS);
include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SUCCESS...