Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Injecting SalesOrder.AddComment text into an email template
 
Peyman Zamani
Jr. Member
 
Total Posts:  1
Joined:  2010-06-08
 

Hi all,

Our developers use the SalesOrder.AddComment() procedure to generate emails through Magento.  We were wondering if it possible to inject the data from the message string into an email template.  For instance, rather than passing a comment message string \"Your order 1234567 has been processed by VENDOR, the order is in transit from WAREHOUSE to LOCATION\” or the like, we would like to pass a comma separated string such as \"1234567, VENDOR, WAREHOUSE, LOCATION\”, and inject them into predefined locations within an email template.  Is this possible?  How do I make this possible through a php script if that is what is required?

Thanks for your assistance!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top