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.
This is what your Order Confirmation email will look like when you try this recipe:
Ready to stack your ribs?
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...