ecommerce adding product description to mail/order.php

Permalink
simply want to add the product description to the mail/order.php file in eCommerce.


$body .= "========== ORDER INFORMATION ==========\n";
$body .= "Order #: ".$invoiceNumber."\n";
$body .= "Total: ".$totalAmount."\n";
$body .= "Payment Method: ".$paymentMethod."\n";
foreach($products as $i => $product) {
$keyValues = array();
foreach($product['attributes'] as $key => $attr) {
$keyValues[] = "{$key}: {$attr}";
}

$body .="Product #".($i+1).": {$product['name']}";
if($keyValues) {
$body .= ' ('.implode(',', $keyValues).')';
}
$body .= "/{$product['quantity']} @ {$product['price']}\n";
}
for ($i = 0; $i < count($adjustments); $i++) {
$body .= "Adjustment #" . ($i+1) . ": " . $adjustments[$i]['name'] . "/" . $adjustments[$i]['total'] . "\n";
}
$body .= "\n";