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

48. Add the Products' Category Tree to Your Order Confirmation Email


If you need to display the entire path to your products in the Order Confirmation email, like the breadcrumb trail on the product-detail page does, then this recipe is for you. It creates a category name string similar to $cPath, but instead of using category IDs it displays actual category names.

Presentation

This is what your Order Confirmation email will look like when you try this recipe:

Ready to stack your ribs?

Ingredients

Note

Modified:

catalog/checkout_process.php

catalog/includes/functions/general.php

Cooking

  1. 1. First, open catalog/checkout_process.php and find this code in line 219. In this snippet, each product is added to the order email.

$products_ordered .= $order->products[$i]['qty'] . ' x ' .
$order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = '
. $currencies->display_price($order->products[$i] ['final_price'], $order->products[$i]['tax'], $order->products[$i...