In M1, our invoice email templates contained the store address:

{{config path='general/store_information/address'}}

In M2, this does not work, because store information / address is split into multiple fields.

Is there an easy way how to insert the store address into transactional emails? Best with only one variable instead of an entire variables section? I would prefer a one-fits-all approach; one email template for all countries.


This is from Magento development docs

The selection of available variables depends on which template you use as a basis. The template-specific variables are contained in a comment at the top of each template on the file system. (For example, look at app/code/Magento/Customer/view/frontend/email/account_new.html.

You can read more https://devdocs.magento.com/guides/v2.0/frontend-dev-guide/templates/template-email.html

So you can rewrite <Magento_Email_module_dir>/view/frontend/email/footer.html and add your variable.

I found that you can also add customer variables in backend. System>Custom Variables:

And one more information: I found on Marketing => email templates=> and load Footer (Magento/luma) and this template load address using:

<p class="address"> {{var store.getFormattedAddress()|raw}}  </p>
{{config path="general/store_information/street_line1"}} // Street Address

{{config path="general/store_information/street_line2"}} // Street Address Line 2

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.