0

My custom module file is showing in the drop down (marketing -> email template) but when i add and update the code it is not showing up in emailenter image description here

1 Answer 1

0

For changing template, you need to create one system config under Stores -> Configuration. Ex.

Open the following file:

vendor/magento/module-contact/etc/adminhtml/system.xml

Now check following code, how system config create for template:

<field id="email_template" translate="label comment" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
    <label>Email Template</label>
    <comment>Email template chosen based on theme fallback when "Default" option is selected.</comment>
    <source_model>Magento\Config\Model\Config\Source\Email\Template</source_model>
    <depends>
        <field id="*/contact/enabled">1</field>
    </depends>
</field>

After add/modify the template from marketing -> email template, you can change your template from system config from admin.

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.