Get attributes of a ordered products and pass this to email template .
0
我知道这是一个老问题,但这是我必须做的 .
// get array of super_attributes
$productOptions = $_item->getProductOptions();
$superAttributes = $productOptions['info_buyRequest']['super_attribute'];
// once you have super_attributes, loop through and load attribute information and output
foreach($superAttributes as $attribute => $option) {
$product = Mage::getModel('catalog/product')->setStoreId($_storeId)->setData($attribute,$option);
$option = $product->getAttributeText($attribute);
echo $option;
}
2 回答
您必须自定义订单确认电子邮件功能sendNewOrderEmail()的代码 .
我知道这是一个老问题,但这是我必须做的 .
现在将输出属性的选项值 .