Questions tagged [email-templates]
denotes a question about the Magento e-mail templates
305 questions with no upvoted or accepted answers
7
votes
0
answers
947
views
Magento 1.9.3.1 email template for set password by admin not existing in transaction mails?
I got a strange problem with email template for this case and can't find the correct template.
How to reproduce:
admin user => Admin -> customers -> manage customer ->... -> change password
Now the ...
5
votes
1
answer
944
views
magento2 email header.html is not being included in transaction email
I have created a transactional email in Admin, Marketing -> Email Templates.
Loaded in an email template from the Default Templates, but it's a custom module.
The template code loaded into the text ...
4
votes
2
answers
1k
views
Custom FIlter for Email template
As per the Magento documentation, we can create custom directive like {{var}} {{if}} {{depends}}
using this documentation https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/templates/template-...
4
votes
0
answers
445
views
When I tried to save a Email Template in Admin, it thows me a 404 error: Page not found (only with some values and only in production)
Recently we upload our site to Production Server. In Developer Server all is apparently Ok. But, in production server, in Admin, when I go to Marketing > Email Templates, and I try to modify some ...
4
votes
1
answer
1k
views
Send personalized email (different template) on customer registration on magento2
Is there a way to send a different email template on customer's registration based on some params (for example the customer gender)?
For example: A male customer receive an email (defined in Maketing-...
4
votes
1
answer
701
views
Get full SKU for configurable products with custom options in transactional emails
I try to get the full SKU for configurable products with custom options in transactional emails. By default this works great in the shopping cart.
For example, I have a configurable product with SKU '...
3
votes
1
answer
213
views
Magento 2 : What template engine is used for email templates?
What template engine is used for Magento2's email templates? I've not been able to get confirmation on this.
3
votes
0
answers
721
views
Magento 2 set custom variable to use in email template on all emails
I want to be able to add a custom variable through an event observer of some sort which enables me to output this variable in any given email template.
I know I can make an event observer for example ...
3
votes
1
answer
281
views
Email Template Error with spanish characters
I am sending a custom email, the custom template data is in Spanish.
if the template is in the English language it's working perfectly.
but in Spanish language, it shows me unknown error.
it's not ...
3
votes
0
answers
52
views
Email not sending from admin in magento2
If I can place an order from the frontend, then the order email was sent successfully.
But in the admin side, (Invoice, shipment, notify, send email) Email is not sending in live.
But both side ...
3
votes
0
answers
210
views
Magento 1: Showing templateControl is not defined message in console
In transactional emails, I am trying to call custom value and attributes but my changes are not reflecting on a email.
I tried to look a using email template but my email template also is not working ...
3
votes
1
answer
1k
views
How to send Payment Transaction Failed Email copy to customers in Magento 1
There is a setting in Magento
Admin > System > Configuration > Checkout (from sales section) > Payment Failed Emails
where you can add custom email id to receive it. But I want our customers to ...
3
votes
1
answer
491
views
Magento 2 - How to call a custom HTML file like header.html and footer.html (under Magento Email or Custom Module) in any email templates?
Create separate email header and footer for 2 different "frontend area"
for Customer
for Vendor Area (seller admin panel "not admin area")
I want separate email design for both area.
right now my ...
3
votes
0
answers
2k
views
Brand store Logo not showing in email
I have configured the concerned brand logo to the store theme under the Email Transaction section
After saving the configuration, I flushed the cache and re-indexed. Then I created a customer, with ...
3
votes
0
answers
64
views
How can I translate email templates in Swedish Language
I have 2 Magento store English and Sweden.
Instead of using CSV how can I easily translate transactions emails from Admin?
3
votes
0
answers
471
views
Add customers order comment to 'Order Confirmation' transaction email
When the customer places an order on the frontend they have the ability to add a comment to their order. What i would like to do is add this comment to the transaction email 'Order Confirmation' I ...
3
votes
0
answers
34
views
Get UnProccessed Email Default Email Template In Magento1
I am trying to fetch the email template html with processing the variable. I want forgot_password default template without processing the default variable.
Is it possible to that template without ...
3
votes
0
answers
455
views
Use Mailchimp templates for Magento transactional emails
I am about to set up marketing automation and abandoned cart emails using Mailchimps integration for Magento. I would however like to align the design between the marketing emails from Mailchimp and ...
3
votes
1
answer
364
views
Send email from observer using smtp on magento 2
I have this observer, and now i send emails via php mail() function, but i want to use the SMTP.
Can anyone tell me which steep i need to follow?
public function sendNotification($to,$subject,$...
3
votes
0
answers
6k
views
How to Use Custom Variable in Email Template?
I'm following below post & able to send email.
how to send custom email no template in magento2?
I have created 1 custom variable named Custome Footer.
app\code\Custom\Module\view\frontend\...
3
votes
0
answers
95
views
Email.less won't compile
I tried to customize my emails with the _email-extend.less in my theme.
But no matter what I try to do at the end Magento only compiles the email-inline.css instead of the email.css.
I also tried to ...
3
votes
1
answer
318
views
problem with 1.9.1.1 & email template
After some actions - especially relating to transactional emails - in the frontend (e.g. new customer signup, newsletter signup, forgot password etc.) there's a blank page (e.g. www.domain.com/...
3
votes
0
answers
1k
views
Adding a cost record (attribute) to Magento's Tiered Price in Admin
Below I have submitted a picture of the section I am looking to modify. I need to add a custom price record to each tiered price. Magento has a record for cost of an item, however, my particular ...
2
votes
0
answers
22
views
replace objectManger
I have a phtml file. I want to get the product short description by SKU.
I can use ObjectManager to do the work. But looks like this is not a proper way to do it.
Anyone can help with recommendation ...
2
votes
0
answers
358
views
Magento 2.3 Customer custom Attribute in email template
I have created some custom Customer attribute and added them in Customer registration form, everything is fine, except that when a successful registration email goes I want to send those attribute ...
2
votes
0
answers
686
views
Magento 2 : Change email content based on shipping method in email template
I need to change the email content based on shipping method. there are two type of shipping method one is in store pickup and one is delivery to user location.
For both case content of email template ...
2
votes
2
answers
1k
views
Magento 2 - How to get state code in footer email template
Using {{config path="general/store_information/region_id"}} in [Vendor]/[Theme]/Magento_Email/email/footer.html, I am getting region id. I would want region code to be displayed in footer of ...
2
votes
0
answers
197
views
Add div background image in email template
I have created a custom email template and I want to add background image to one of its div element. I have added html file in my email with below content.
<div
class="container"
width="100%"
...
2
votes
1
answer
630
views
Magento 2 : Intercept sending email and get the email data
I'm in a process of integrating Magento 2 with email marketing, i want to stop some of the Magento 2 emails and use the email marketing instead. For example customer registration success, newsletter ...
2
votes
0
answers
184
views
Adding Predefined Variables to New Email Template?
I am creating a new email template and am trying to attach predefined variables (specifically Order Id) to the new template. I would like the option of clicking on the "Insert Variable" button and ...
2
votes
0
answers
842
views
Magento 2.3.4 Emails have 2 content type headers
I am getting a few rejected emails undelivered from my Magento 2 install with the following error message or similar, but only about 1% at most of all customers (1000's), this problem does not occur ...
2
votes
0
answers
413
views
get price in shipment email template in magento 2
I need to get customer order product price for Shipment email template in configurable products.
I had added magento-sales/templates/email/items/shipment/default.php
$priceHelper = $_objectManager-...
2
votes
3
answers
527
views
How embedded CSS in transactional email works?
I have a very frustrating issue with the Magento 2 sales order emails. Through experimentation, I worked out the locations of the many files that are used to comprise these emails.
At some point, I ...
2
votes
2
answers
828
views
Magento 2 : How to add custom parameter in invoice template email
I want to add a custom parameter in the invoice template and display that template.
so please give me any solution on how to do that?
2
votes
0
answers
68
views
Magento 2.3.2 custom email send createAttachment() method is not working
custom email send createAttachment() method is not working how to solve?
2
votes
0
answers
27
views
How to call third party fonts API in order confirmation email?
I want to integrate third party fonts in my order confirmation email using API. Anyone know how to call third party API in my order confirmation email ?
2
votes
0
answers
54
views
How to get the identifier of the email template created from backend in magenot 2?
I have created a custom email template in backend. Now I want to add the identifier of that email template in my model. how can I get the identifier which I can specify in my model file?
2
votes
1
answer
1k
views
Magento 2 Password Reset Email goes to 404 link
I am unsure what has happened but my email template Reset Password button now links to a 404 page. Is there any way that I can get the original variable used for getting a customers password reset ...
2
votes
0
answers
502
views
Pass array of data from email template to phtml in Magento 2.2.5
In magento 2.2.5, I need to pass data from mail template to phtml file. I did this using this link. But I cannot pass array of data in it. only text it is accepting.
I am getting this error:
Error ...
2
votes
0
answers
428
views
Add Custom url to href in email template not working
I try to generate an a href element in my email template that will open a mobile app, to do this i just have to replace the http or https in url with my app name, the a href element should contain the ...
2
votes
0
answers
149
views
Use custom email template in another email template
i created an email template in Admin > Marketing > E-Mail Templates like this:
I tried to add to my module email template html by using the template subject like this:
{{template config_path="design/...
2
votes
0
answers
1k
views
How to use if else statement in email subject
I have been trying to check a condition on subject section of magento's transactional email.
I'm trying to display order status on subject except for pending.
This is what i have tried so far.
{{if ...
2
votes
0
answers
163
views
How can I override an admin e-mail template using my design folder?
I'm trying to override module-user/view/adminhtml/email/user_notification.html in my Magento 2 installation. I know how I can do this in the admin by creating a new template that gets stored in the ...
2
votes
0
answers
36
views
Which one is a better way for customize the admin email templates?
Which one is a better way for customize the admin email templates?
(contact submitted_form, sitemap generate_warnings, etc)
2
votes
0
answers
155
views
magento 2.1.6 email template after save 404 not found
I am trying to create new email template with loading existing one By navigating
Marketing => Email Template => Add New Templates and load "new invoice" email
and without changes anything.After ...
2
votes
1
answer
338
views
Comment not appearing on invoice email
I have created a custom template for the invoice email and added the variable {{var comment}} to the email template. The other modifications I have made to the email template does show, but not the ...
2
votes
1
answer
218
views
Magento 2.1.6 - How to setup email templates header and footer
I am new in Magento 2x. I just want to setup email header and footer globally.
I can't locate either header.html / footer.html files in my Magento file systems as well.
Also in "Marketing/Email ...
2
votes
0
answers
519
views
Magento 2 default invoice not rendering css properly
I've setup multiple magento 2 website store, but this time i have problem with invoice email template, the problem is the email template seems not rendering css because from the look of it, it shows ...
2
votes
0
answers
400
views
Date Formatting Options - getCreatedAtFormatter($format)
The new order transactional email template passes in the number "2" and creates the format including the time. I wish to display just the Date.
I would like to know what the different format options ...
2
votes
0
answers
230
views
Magento 2 : New Order Email Template CSS Not Working in Production Mode
I am facing issue in sales new order email template. I am working with my custom theme. Problem is there, new order email template CSS working in developer mode correctly but same template not working ...