Magento set template variable programatically -


i need able send transactional emails include conditional sentence. want include sentence in order confirmation emails orders contain products. there plenty of examples of how use conditionals within transaction emails based on built in variables, want base conditional on own variable i'll create programatically within own extension.

the mailer class mage_core_model_email_template_mailer have public settemplateparams method, method calls base classes setdata method, if access method set own parameters overwrite core template parameters nessesary show contents of basket.

any ideas on how achieve appreciated.

you should create new order attribute save conditional sentence. can access attribute in transactional email template via {{htmlescape var=$order.getyourattribute()}}


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -