Magento 2: Header & Footer Not Displaying in Contact Us EmailHow can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2: How to change Contact Us Email Type?Magento 2: Header & Footer Not Displaying in EmailMy module not displaying header and footerMagento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 email attachment not working while sending custom email
Flashing the ESP8266 12F from raspberry
Making a Dataset that emulates `ls -tlra`?
What is the function of "mal" in saying "Das nenn ich mal ein X"?
Brute-force the switchboard
Is it possible to target 2 allies with the Warding Bond spell using the Sorcerer's Twinned Spell metamagic option?
How to not confuse readers with simultaneous events?
Masyu-making game
Align the contents of a numerical matrix when you have minus signs
What is the mistake in this solution?
Inscriptio Labyrinthica
How to get a type of "screech" on guitar
Suggestions for how to track down the source of this force:source:push error?
You have no, but can try for yes
Did Hitler say this quote about homeschooling?
"Je suis petite, moi?", purpose of the "moi"?
I want light controlled by one switch, not two
Why did my "seldom" get corrected?
How to belay quickly ascending top-rope climbers?
Why does a tetrahedral molecule like methane have a dipole moment of zero?
Which family is it?
Are there foods that astronauts are explicitly never allowed to eat?
Why do jet engines sound louder on the ground than inside the aircraft?
Discontinuous Tube visualization
Why do space operations use "nominal" to mean "working correctly"?
Magento 2: Header & Footer Not Displaying in Contact Us Email
How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2: How to change Contact Us Email Type?Magento 2: Header & Footer Not Displaying in EmailMy module not displaying header and footerMagento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 email attachment not working while sending custom email
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have created custom module and override contact-us email template. Also, I have changed contact us email type and set html. It's working perfectly. But the problem is when I received email, email header and footer are missing. Logo is not displayed.
Magento version 2.1.7
Here is my code.
module.xml should be [Vendor/RewriteContact/etc/module.xml]
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Vendor_RewriteContact" setup_version="2.0.0">
<sequence>
<module name="Magento_Contact"/>
</sequence>
</module> </config>
email_templates.xml should be [Vendor/RewriteContact/etc/email_templates.xml]
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
<template id="contact_email_email_template" label="Contact Form" file="submitted_form.html" type="html" module="Vendor_RewriteContact" area="frontend"/>
</config>
submitted_form.html should be [Vendor/RewriteContact/view/frontend/email/submitted_form.html]
<!--
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<!--@subject trans "Contact Form" @-->
<!--@vars
"var data.comment":"Comment",
"var data.email":"Sender Email",
"var data.name":"Sender Name",
"var data.telephone":"Sender Telephone",
"template config_path="design/email/footer_template"":"Email Footer Template",
"template config_path="design/email/header_template"":"Email Header Template"
@-->
template config_path="design/email/header_template"
trans "Name: %name" name=$data.name
trans "Email: %email" email=$data.email
trans "Phone Number: %telephone" telephone=$data.telephone
trans "Comment: %comment" comment=$data.comment
template config_path="design/email/footer_template"
magento2 magento-2.1.7
add a comment |
I have created custom module and override contact-us email template. Also, I have changed contact us email type and set html. It's working perfectly. But the problem is when I received email, email header and footer are missing. Logo is not displayed.
Magento version 2.1.7
Here is my code.
module.xml should be [Vendor/RewriteContact/etc/module.xml]
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Vendor_RewriteContact" setup_version="2.0.0">
<sequence>
<module name="Magento_Contact"/>
</sequence>
</module> </config>
email_templates.xml should be [Vendor/RewriteContact/etc/email_templates.xml]
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
<template id="contact_email_email_template" label="Contact Form" file="submitted_form.html" type="html" module="Vendor_RewriteContact" area="frontend"/>
</config>
submitted_form.html should be [Vendor/RewriteContact/view/frontend/email/submitted_form.html]
<!--
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<!--@subject trans "Contact Form" @-->
<!--@vars
"var data.comment":"Comment",
"var data.email":"Sender Email",
"var data.name":"Sender Name",
"var data.telephone":"Sender Telephone",
"template config_path="design/email/footer_template"":"Email Footer Template",
"template config_path="design/email/header_template"":"Email Header Template"
@-->
template config_path="design/email/header_template"
trans "Name: %name" name=$data.name
trans "Email: %email" email=$data.email
trans "Phone Number: %telephone" telephone=$data.telephone
trans "Comment: %comment" comment=$data.comment
template config_path="design/email/footer_template"
magento2 magento-2.1.7
did you run all this commands in order??.php bin/magento setup:upgrade,php bin/magento setup:di:compile,php bin/magento setup:static-content:deploy,php bin/magento indexer:reindex,php bin/magento cache:flush
– Abhishek Panchal
Sep 12 '17 at 14:29
Yes, I have run all command
– Vithal Bariya
Sep 12 '17 at 14:32
Hi @Vishal Bariya, did you find solution of you problem. I am also facing the same problem.
– Mohit Kumar Arora
Sep 14 '17 at 13:33
Hi @Mohit Kumar Arora, I have try many But can't find solution.
– Vithal Bariya
Sep 18 '17 at 4:32
add a comment |
I have created custom module and override contact-us email template. Also, I have changed contact us email type and set html. It's working perfectly. But the problem is when I received email, email header and footer are missing. Logo is not displayed.
Magento version 2.1.7
Here is my code.
module.xml should be [Vendor/RewriteContact/etc/module.xml]
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Vendor_RewriteContact" setup_version="2.0.0">
<sequence>
<module name="Magento_Contact"/>
</sequence>
</module> </config>
email_templates.xml should be [Vendor/RewriteContact/etc/email_templates.xml]
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
<template id="contact_email_email_template" label="Contact Form" file="submitted_form.html" type="html" module="Vendor_RewriteContact" area="frontend"/>
</config>
submitted_form.html should be [Vendor/RewriteContact/view/frontend/email/submitted_form.html]
<!--
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<!--@subject trans "Contact Form" @-->
<!--@vars
"var data.comment":"Comment",
"var data.email":"Sender Email",
"var data.name":"Sender Name",
"var data.telephone":"Sender Telephone",
"template config_path="design/email/footer_template"":"Email Footer Template",
"template config_path="design/email/header_template"":"Email Header Template"
@-->
template config_path="design/email/header_template"
trans "Name: %name" name=$data.name
trans "Email: %email" email=$data.email
trans "Phone Number: %telephone" telephone=$data.telephone
trans "Comment: %comment" comment=$data.comment
template config_path="design/email/footer_template"
magento2 magento-2.1.7
I have created custom module and override contact-us email template. Also, I have changed contact us email type and set html. It's working perfectly. But the problem is when I received email, email header and footer are missing. Logo is not displayed.
Magento version 2.1.7
Here is my code.
module.xml should be [Vendor/RewriteContact/etc/module.xml]
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Vendor_RewriteContact" setup_version="2.0.0">
<sequence>
<module name="Magento_Contact"/>
</sequence>
</module> </config>
email_templates.xml should be [Vendor/RewriteContact/etc/email_templates.xml]
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
<template id="contact_email_email_template" label="Contact Form" file="submitted_form.html" type="html" module="Vendor_RewriteContact" area="frontend"/>
</config>
submitted_form.html should be [Vendor/RewriteContact/view/frontend/email/submitted_form.html]
<!--
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<!--@subject trans "Contact Form" @-->
<!--@vars
"var data.comment":"Comment",
"var data.email":"Sender Email",
"var data.name":"Sender Name",
"var data.telephone":"Sender Telephone",
"template config_path="design/email/footer_template"":"Email Footer Template",
"template config_path="design/email/header_template"":"Email Header Template"
@-->
template config_path="design/email/header_template"
trans "Name: %name" name=$data.name
trans "Email: %email" email=$data.email
trans "Phone Number: %telephone" telephone=$data.telephone
trans "Comment: %comment" comment=$data.comment
template config_path="design/email/footer_template"
magento2 magento-2.1.7
magento2 magento-2.1.7
edited Sep 12 '17 at 15:42
Mohit Kumar Arora
7,3815 gold badges17 silver badges36 bronze badges
7,3815 gold badges17 silver badges36 bronze badges
asked Sep 12 '17 at 14:22
Vithal BariyaVithal Bariya
4742 silver badges17 bronze badges
4742 silver badges17 bronze badges
did you run all this commands in order??.php bin/magento setup:upgrade,php bin/magento setup:di:compile,php bin/magento setup:static-content:deploy,php bin/magento indexer:reindex,php bin/magento cache:flush
– Abhishek Panchal
Sep 12 '17 at 14:29
Yes, I have run all command
– Vithal Bariya
Sep 12 '17 at 14:32
Hi @Vishal Bariya, did you find solution of you problem. I am also facing the same problem.
– Mohit Kumar Arora
Sep 14 '17 at 13:33
Hi @Mohit Kumar Arora, I have try many But can't find solution.
– Vithal Bariya
Sep 18 '17 at 4:32
add a comment |
did you run all this commands in order??.php bin/magento setup:upgrade,php bin/magento setup:di:compile,php bin/magento setup:static-content:deploy,php bin/magento indexer:reindex,php bin/magento cache:flush
– Abhishek Panchal
Sep 12 '17 at 14:29
Yes, I have run all command
– Vithal Bariya
Sep 12 '17 at 14:32
Hi @Vishal Bariya, did you find solution of you problem. I am also facing the same problem.
– Mohit Kumar Arora
Sep 14 '17 at 13:33
Hi @Mohit Kumar Arora, I have try many But can't find solution.
– Vithal Bariya
Sep 18 '17 at 4:32
did you run all this commands in order??.
php bin/magento setup:upgrade, php bin/magento setup:di:compile, php bin/magento setup:static-content:deploy, php bin/magento indexer:reindex, php bin/magento cache:flush– Abhishek Panchal
Sep 12 '17 at 14:29
did you run all this commands in order??.
php bin/magento setup:upgrade, php bin/magento setup:di:compile, php bin/magento setup:static-content:deploy, php bin/magento indexer:reindex, php bin/magento cache:flush– Abhishek Panchal
Sep 12 '17 at 14:29
Yes, I have run all command
– Vithal Bariya
Sep 12 '17 at 14:32
Yes, I have run all command
– Vithal Bariya
Sep 12 '17 at 14:32
Hi @Vishal Bariya, did you find solution of you problem. I am also facing the same problem.
– Mohit Kumar Arora
Sep 14 '17 at 13:33
Hi @Vishal Bariya, did you find solution of you problem. I am also facing the same problem.
– Mohit Kumar Arora
Sep 14 '17 at 13:33
Hi @Mohit Kumar Arora, I have try many But can't find solution.
– Vithal Bariya
Sep 18 '17 at 4:32
Hi @Mohit Kumar Arora, I have try many But can't find solution.
– Vithal Bariya
Sep 18 '17 at 4:32
add a comment |
1 Answer
1
active
oldest
votes
Although this is not a proper solution; after too much debugging, I fixed the issue by the below process:
- Create a new template for Contact Us email from Marketing > Email Templates.
- Check the preview of the template and open page source of the template preview page.
- Copy HTML source of the portion in which email template content is being shown.
- Put the copied source into email template and replace the dynamic content with respective variables again.
- Save the template and apply it from Stores > Configuration > General (Contacts) > Email Options.
Now try it from the frontend. I hope it would help you also.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f192948%2fmagento-2-header-footer-not-displaying-in-contact-us-email%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Although this is not a proper solution; after too much debugging, I fixed the issue by the below process:
- Create a new template for Contact Us email from Marketing > Email Templates.
- Check the preview of the template and open page source of the template preview page.
- Copy HTML source of the portion in which email template content is being shown.
- Put the copied source into email template and replace the dynamic content with respective variables again.
- Save the template and apply it from Stores > Configuration > General (Contacts) > Email Options.
Now try it from the frontend. I hope it would help you also.
add a comment |
Although this is not a proper solution; after too much debugging, I fixed the issue by the below process:
- Create a new template for Contact Us email from Marketing > Email Templates.
- Check the preview of the template and open page source of the template preview page.
- Copy HTML source of the portion in which email template content is being shown.
- Put the copied source into email template and replace the dynamic content with respective variables again.
- Save the template and apply it from Stores > Configuration > General (Contacts) > Email Options.
Now try it from the frontend. I hope it would help you also.
add a comment |
Although this is not a proper solution; after too much debugging, I fixed the issue by the below process:
- Create a new template for Contact Us email from Marketing > Email Templates.
- Check the preview of the template and open page source of the template preview page.
- Copy HTML source of the portion in which email template content is being shown.
- Put the copied source into email template and replace the dynamic content with respective variables again.
- Save the template and apply it from Stores > Configuration > General (Contacts) > Email Options.
Now try it from the frontend. I hope it would help you also.
Although this is not a proper solution; after too much debugging, I fixed the issue by the below process:
- Create a new template for Contact Us email from Marketing > Email Templates.
- Check the preview of the template and open page source of the template preview page.
- Copy HTML source of the portion in which email template content is being shown.
- Put the copied source into email template and replace the dynamic content with respective variables again.
- Save the template and apply it from Stores > Configuration > General (Contacts) > Email Options.
Now try it from the frontend. I hope it would help you also.
answered Sep 19 '17 at 14:57
Mohit Kumar AroraMohit Kumar Arora
7,3815 gold badges17 silver badges36 bronze badges
7,3815 gold badges17 silver badges36 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f192948%2fmagento-2-header-footer-not-displaying-in-contact-us-email%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
did you run all this commands in order??.
php bin/magento setup:upgrade,php bin/magento setup:di:compile,php bin/magento setup:static-content:deploy,php bin/magento indexer:reindex,php bin/magento cache:flush– Abhishek Panchal
Sep 12 '17 at 14:29
Yes, I have run all command
– Vithal Bariya
Sep 12 '17 at 14:32
Hi @Vishal Bariya, did you find solution of you problem. I am also facing the same problem.
– Mohit Kumar Arora
Sep 14 '17 at 13:33
Hi @Mohit Kumar Arora, I have try many But can't find solution.
– Vithal Bariya
Sep 18 '17 at 4:32