-
let me know do u use theme?– Nagaraju KasaJul 24, 2017 at 5:15
-
let me know your theme name please?– Nagaraju KasaJul 24, 2017 at 5:17
-
Sir , i am used Magento Luma theme , not used any Custom Theme.– Nikhil waghelaJul 24, 2017 at 5:50
-
please check the path /vendor/magento/theme-frontend-luma/Magento_Email/email/footer.html– Nagaraju KasaJul 24, 2017 at 6:12
-
thank you sir, i dont want to change magento core files , so how can i override this footer.html , where the xml file for footer.html ?– Nikhil waghelaJul 24, 2017 at 6:31
5 Answers
please check the path
vendor/magento/theme-frontend-luma/Magento_Email/email/footer.html
vendor/magento/module-email/view/frontend/email/header.html
In vendor/magento/module-config/Model/Config/Backend/Email/Logo
find this constant:
const UPLOAD_DIR = 'email/logo';
and changed it to:
const UPLOAD_DIR = 'logo';
also in vendor/magento/module-email/etc/di.xml
, replace email/logo
with just logo
:
<item name="value" xsi:type="string">email/logo</item>
to:
<item name="value" xsi:type="string">logo</item>
And then upload email logo again and check email.
Reference: Magento 2: Fails to upload a transactional email logo from admin
Its a bug in magento 2.1.
Follow these steps to fix it:
- create di.xml into you custom module
- add
<preference for="Magento\Theme\Model\Design\Backend\Logo" type="Vendor\YouModuleName\Model\Design\Backend\Logo"/>
- create the file Vendor\YouModuleName\Model\Design\Backend\Logo.php
- replace the const
UPLOAD_DIR = 'logo';
with constUPLOAD_DIR = 'email/logo';
- Test!
There is also an easiest work around without modifying code:
create the directory pub/media/email/logo/default
copy the logo to the directory manually.
Then via the correct procedure Content > Design > Configuration > Edit > Transnational emails
Now upload the same logo you you manually added to the newly created directory.
To change the footer link, edit footer.html in your theme.
app/design/frontend/Vendor/themename/Magento_Email/email/footer.html
-
Mam , i am used Magento Luma theme , not used any Custom Theme. Jul 24, 2017 at 5:56
-
You can override the file in your custom theme. You can create your custom theme by following this doc: devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/… Jul 24, 2017 at 6:20
Please follow the below paths:
app/design/frontend/VendorName/ThemeName/Magento_Email/email/header.html
app/design/frontend/VendorName/ThemeName/Magento_Email/email/footer.html
In Magento 2.1.x, there is this problem.
Problem
In admin,
- you go to
Content > Design > Configuration > Edit your current theme
- then, you go to
Transactional Emails
section- and upload your email logo image there
then, click on
save configuration
orsave and continue
buttonand when you go back to editing your current theme, you don't see your uploaded image in the
Transactional Emails
section
Cause
The image is actually intended to be saved in the following location:
YOUR_MAGENTO_ROOT/pub/media/email/logo/stores/YOUR_STORE_ID/YOUR_IMAGE.png
(supposing your image name to be
YOUR_IMAGE.png
)However, due to a bug in Magento 2.1.x, the image is saved in location:
YOUR_MAGENTO_ROOT/pub/media/logo/stores/YOUR_STORE_ID/YOUR_IMAGE.png
Solution
Not much flexible but a simple solution will be to copy the image
from
pub/media/logo/stores/your_store_id/your_image.png
to
pub/media/email/logo/stores/your_store_id/your_image.png
After that, you go to
Content > Design > Configuration > Edit your current theme
then, you go to
Transactional Emails
sectionand upload your email logo image there
then, click on
save configuration
orsave and continue
button