In Magento 1, we can call CMS Block in email templates like that:
{{block type="cms/block" block_id="mail_include_header"}}
I try above code for Magento 2, but it does not work.
How can we call CMS Block in email templates?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityIn Magento 1, we can call CMS Block in email templates like that:
{{block type="cms/block" block_id="mail_include_header"}}
I try above code for Magento 2, but it does not work.
How can we call CMS Block in email templates?
We can try:
{{block class="Magento\\Cms\\Block\\Block" area='frontend' block_id="mail_include_header"}}
We can see more how to add a block to email: vendor/magento/module-sales/view/frontend/email/shipment_new.html