How to use an if statement in Magento email templates http://t.co/81WBagTF #magento
I needed a simple if statement in my email template to check whether my order has products that will be sold only or also has products that will be bought. The buy / sell functionallity is a customized Magento online shop… so, don’t wonder! I have a function isSellOnly() in my Orders Model that returns a boolean. In the order confirmation email template you have access to the Order Model. So you could do a statement like: {{if order.isSellOnly()==1}} Thank you for selling products to us.
Link – Trackbacks
source: Topsy – magento tutorial – Tutorial-Portal.com – How to use an if statement in Magento email templates\”
↧
Tutorial-Portal.com – How to use an if statement in Magento email templates
↧