Joh*_*hnT 3 email iteration templates loops magento
假设我将以下变量传递给我的电子邮件模板:
$vars = array(
    'products'  => $products,
);
$products集合在哪里,我如何在电子邮件模板中迭代这个集合?
我不相信Magento的模板引擎足够聪明来做循环.相反,使用内联块,就像Magento对订单商品所做的那样.像这样的东西:
{{block type='core/template' area='frontend' template='path/to/your/template.phtml' products=$products}}
希望有所帮助!
谢谢,乔