1

In order confirmation email I want to add custom block/template (phtml file). How can I achieve it?

1 Answer 1

9

We can do like this:

{{block class='Magento\\Framework\\View\\Element\\Template' area='frontend' template='Vendor_Module::email/custom.phtml'}}

See more here: vendor/magento/module-sales/view/frontend/email/shipment_new.html

3
  • Thanks, Dude your reference save my time.
    – Renga
    Sep 5, 2019 at 15:13
  • What do you mean see more in shipment_new?
    –  coinhndp
    Oct 29, 2020 at 16:11
  • Where can I add the custom.phtml in my custom module?
    –  coinhndp
    Oct 29, 2020 at 16:16

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.