Core Commerce Email fields
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";
}