I'm editing some phtml files which are included in transactional emails in Magento, but in order to test the changes, I have to actually send the emails. In the case of (e.g.) the order confirmation email this means I have to place an order each time I want to test an email!
Choosing "preview email" in the backend does not help because the email contains no visible order data.
Is there a way to preview a transactional email but have it render with order data?
Preview Magento 2 email templates after customizing. After importing and customizing, or creating a new email template, you can preview it quickly by hitting “Preview Template'' which is right beside the ''Save Template'' button.
The general settings of the Magento 2 Responsive Transactional Emails extension can be found under Stores -> Settings -> Configuration -> Magetrend Extensions -> MT Email.
In order to manage the transactional emails in Magento 2 go to Admin Panel > Marketing > Communications > Email Templates. Then, choose an email template you want to edit or you can add a new one by pressing the Add New Template button.
From user R.S:
You dont have to create a new order, you could resend a previous order email (by going to that order and click resend email).
That's the closest thing I've found to quickly re-test emails when playing around with the templates. Thanks R.S!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With