0

I am trying to add shipping address to the default Magento sales notification email but the list of variables that I get after pressing "insert variable" does not have shipping address as a variable.

How do I go about adding this as a variable? I am new to Magento and it will be great is someone can tell me how does this email get triggered? There are methods in Order.php that get accessed but which code really calls those methods?

0

This article might help you customising the email templates. Especially section on adding dynamic content to templates will help you work out how to get shipping address in the template. Customizing Magento email templates

Or a variable like

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

might just get you the shipping address in the template, as mentioned in a similar post

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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