Core Commerce Email fields

Permalink
I just know this is going to be an easy question for anyone who knows php.

How do I modify the email template to include the "part_number" field I have added to the product attributes pages?

The code looks like this:
$body .= "========== ORDER INFORMATION ==========\n";
$body .= "Order ID: ".$orderID."\n";
$body .= "Total: ".$totalAmount."\n";
for ($i = 0; $i < count($products); $i++) {
   $body .= "Product #" . ($i+1) . ": " . $products[$i]['name'];
    if (count($products[$i]['attributes'])) {
        $body .= " (" . implode(",", $products[$i]['attributes']) . ")";
    }
    $body .= "/" . $products[$i]['quantity'] . " @ ". $products[$i]['price'] . "\n";
}
for ($i = 0; $i < count($adjustments); $i++) {
   $body .= "Adjustment #" . ($i+1) . ": " . $adjustments[$i]['name'] . "/" . $adjustments[$i]['total'] . "\n";
}

tallacman
 
WebSolutions replied on at Permalink Reply
WebSolutions
Too bad nobody has answered this - I see this as one of the most crucial elements to understanding what the customer has ordered!!!
AVL replied on at Permalink Reply
AVL
I'd also like to know how to do this. Has anyone figured this out?
jamesleech replied on at Permalink Reply
jamesleech
Hi Tallacman,

Did you ever get to the bottom of this?
It seems pretty important to me.