1

I need to pass the phtml file into email template. but I'm getting error like

Error filtering template: Invalid template file: 'Vendor_Module::emailproducts.phtml' in module: '' block's name: 'magento\framework\view\element\template_0'

I used below code in email template.

{{block class="Magento\Framework\View\Element\Template" name="email_template" area='frontend' template="Vendor_Module::emailproducts.phtml"}}

Thanks in advance.

  • Phtml template file path ? – Savan Patel Apr 29 at 9:11
  • what is the location of your phtml file ? – Manashvi Birla Apr 29 at 9:14
  • app/code/Vendor/Module/view/frontend/templates/emailproducts.phtml – venkata prasad Apr 29 at 9:14
  • app/code/Vendor/Module/view/frontend/templates path you add phtml file in templates folder – sanni kalariya Apr 29 at 9:16
  • sanni Kalariya can you explain clearly – venkata prasad Apr 29 at 9:17

Your Answer

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

Browse other questions tagged or ask your own question.