I'm having some trouble with getting two variables to appear in outgoing new order emails.

Essentially, Magento will only populate one of either:

{{var order.getShippingAddress{}.format('html')}}

{{var order.getShippingDescription()}}

And never the two together in the same email.

I've tried splitting them out into separate parts of the email (thinking maybe the html format of addresses was breaking its container) but still to no avail, even if I remove the {{depend}} clause and put the variables inline together.

I'm on 1.9.01 and using Mandrill for transactional emails; avoiding config.xml and using the System -> Transactional Emails section to input custom HTML. The section of the table is here:


Any ideas, or guidance in troubleshooting? Mandrill and Magento logs aren't really helping - they simply generate a blank span or td where the information should be!


1 Answer 1


To anyone looking at this; if you've pasted your variables in from the Magento KB ( http://www.magentocommerce.com/knowledge-base/entry/defining-transactional-variables ) it's actually incorrect. It should be:

{{var order.getShippingAddress().format('html')}}

Rather than

{{var order.getShippingAddress{}.format('html')}}

(Thanks to @David)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.