Questions tagged [email-templates]
denotes a question about the Magento e-mail templates
901 questions
0
votes
1
answer
33
views
Header logo image is not showing on Gmail untill click "Show Images" button after upgrade to 2.4.7-p2. Saying suspicious content
I have upgraded the magento framework to 2.4.7-p2. The emails are not displaying the header logo images until I click the "Show Images" button on Gmail.
It saying the images might be ...
0
votes
1
answer
20
views
Add a list of not shipped items to shipment email
In the "New Shipment" email templates, I am trying to add additional content to display the items that did not get shipped, such as in the case of a surprise out-of-stock item.
app/design/...
0
votes
0
answers
24
views
How to use Mandrill templates for transactional emails in Magento 2?
I am working in magneto 2 and want to use Mandrill templates for transactional emails. So emails sent through Mandrill use the templates I have set up in my Mandrill account instead of magento ...
0
votes
2
answers
41
views
Magento 2 How to Get Bundle product options lables with value in custom email templates
how do I get bundle product options labels with value in my custom email templates?
My custom email template code is here..
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See ...
0
votes
1
answer
30
views
Magento 2: Custom emails display Admin URL instead of Store URL in the logo link
Email header logo link uses <a class="logo" href="{{store url=""}}">
Display www.xyz.com/admin instead of www.xyz.com/us
I am using same email header in all email ...
0
votes
2
answers
115
views
my custom module doesn't seem to have an affect
I've created my 1st module. The purpose is to add the customer group name to the order email template. I think that I didn't do something quite right and was hoping someone could look at my files to ...
0
votes
1
answer
102
views
Magento 2 : Add Customer Group to Order Email Template
I'm very new to Magento.
I'm using Magento 2.4.6 and I want to add Customer Group to the New Order email template. We need some way to know what customer group belongs to because we do different ...
0
votes
1
answer
88
views
Magento 2 email template - click to send email
I am including a variable email in my template. But it does not format to be clicked and open in the recipients email app (specifically gmail). I have figured out how to do this with a hardcoded ...
0
votes
3
answers
228
views
Create New Custom Email Header Template in magento2?
How to create a New Custom Email Header Template in magento2 and load it into the emails?
How to create multiple headers.
0
votes
0
answers
29
views
magento 2.4.6 snippet [$block, 'toHtml'] not working
Can anybody explain this magento 2.4.6 statement from core file ?
$alertGrid = $this->_appState->emulateAreaCode(
Area::AREA_FRONTEND,
[$block, 'toHtml']
);
In the above ...
0
votes
1
answer
86
views
Shipping information block and customer email
I'm relatively new to Magento development and we're currently using version 2.4.5-p1.
We recently migrated from Magento 1 and I'm now working on customizing the new order email. So far, I've ...
0
votes
1
answer
27
views
Sending mail to customer and admin at the same time preferably using different templates
In my module I have a feature that adds custom tab to product and there is a form that accepts name, mail and question
I need to send mail both to admin and customer.
This is my mail helper
<?php
...
0
votes
1
answer
79
views
Magento 2 - How to add data from a field in sales-order-item table to the order items in order confirmation email
I have a custom input field on each product item in the cart. The value is added to the sales-order-item table. The field is exposed to the order api as a custom attribute. I want to add the value of ...
1
vote
1
answer
85
views
Not Display Product Name in the Email template?
module.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/...
1
vote
0
answers
107
views
Custom Variable get dynamic value based on Realtime condition magento2
I have Create the custom variable programmatically like below.
updating custom variable value programatically
Ex. I have created the current_time variable now I insert the variable in the email ...
3
votes
2
answers
753
views
How to get email template content using template id in magento 2?
I need to get email template content like text/html using template id/code programmatically any help/suggestion much appreciated.
Thanks in advance.
1
vote
1
answer
229
views
Magento 2 Reset Password Confirmation email templete link url not generate properly
Error Screenshot : https://i.imgur.com/SIAjq0C.png
<!--@subject {{trans "Reset your %store_name password" store_name=$store.frontend_name}} @-->
<!--@vars {
"var store....
0
votes
1
answer
66
views
How to add billing Country_id from sales_order_adress in Email Template
I am using Magento Version 2.4.5, I want to specifically add the country_id (e.g. FR for France) in the order email template.
The variable with the Billing address only returns the full address block....
0
votes
0
answers
36
views
How can I change the amount of promotional emails that go out per batch?
How can I change the amount of promotional emails that go out per batch? Right now, it's set to 100, but I'm trying to increase it to 200.
0
votes
2
answers
548
views
How to add image in email template?
I am trying to add image in my custom email template.
I want to know how to define image section in email template and how to set image PARAMS of email sending action using TransportBuilder.
Images ...
1
vote
1
answer
65
views
Email not sent from custom module
I'm trying to send an email from the custom module, for that I have created a controller file, XML file and html file,
below is my code
app/code/Magelearn/Customform/Controller/Index/
Save.php
<?...
0
votes
0
answers
1k
views
Error: Cannot instantiate interface
I am override the file sender.php this is not a normal class is abstract class may be that's the reason to display the error Could anyone suggest regarding this so i can proceed forward.
error
0
votes
2
answers
130
views
How to override an abstract class in magento 2
I know how override the normal class but now i try to override the abstract class [ Magento\Sales\Model\Order\Email\Sender.php ] .
i have override the Sender.php file in custom module but its not ...
0
votes
2
answers
85
views
Magento 2 : How to override the abstract class [ sender.php] in custom module
I create a custom module to send email to customer and admin separately if i try to override the core file in my custom module its shown error .Error come when i override the [ sender.php ] file in my ...
0
votes
1
answer
45
views
Use Multiple Email Footer Magento 1
I want to Add Different footers for the different emails from the Admin.
1
vote
1
answer
392
views
Add template Variable in email template for Magento RMA in Magento Enterprise
I want to set the template variable in Magento RMA email template using observer or plugin. Unlike in email order (i.e. email_order_set_template_vars_before) or email shipment (i.e. ...
1
vote
2
answers
469
views
Override item layout of credit memo in email template and add new column
I want to override the item layout in credit memo email template and want to add new column in that. I tried to override that but that item layout in email template is not showing.
Overridden email ...
0
votes
1
answer
32
views
Code changed on Emails templates
I'm working on a website that is upgraded to Magento2.4.4, now getting errors on emails (missing customer and shipping details, etc). After testing found that changing variables like customer_name=$...
2
votes
1
answer
685
views
Magento 2.4.5 layout handle template variables passing null values
I am working on custom email template layout. In this template.html file I use custom layout handle with custom object variables as shown as below.
{{layout handle="custom_layout_handle" ...
0
votes
1
answer
457
views
Magento 2 - email template variable formatting
I'm trying to format:
{{var order.getBaseTotalRefunded()}}
or
{{var creditmemo.grand_total}}
The output of both of these is:
261.6700
I read that the template editor allows Twig filters (https://...
0
votes
2
answers
475
views
Forgot password email template (custom) issue | Magento 2.4
I have overridden the default email template for "forgot password"
vendors/magento/module-customer/view/frontend/email/password_new.html
When I click the "forgot your password?" ...
0
votes
0
answers
141
views
How to add html tag inside trans directive?
I am trying to add html <a> tag inside {{trans''}} but, I am getting the wrong output.
Below is how I am trying to do it.
<div class="register-button">
{{trans'<a href=&...
0
votes
1
answer
177
views
How to access variable outside of trans directive in email template?
I am trying to use a variable called reset_password_url and I cannot make it work. Below is what I have.
<a href="%reset_password_url">{{trans 'link' reset_password_url=$...
0
votes
2
answers
309
views
How to add special price in new order email template?
How can I add special price in email "New order" template?
Product block in email template:
{{layout handle="sales_email_order_items" order_id=$order_id area="frontend"}}
...
0
votes
1
answer
335
views
How to programatically delete an email template from admin via patch?
I have patch for email template and I want to delete already existing email template via patch. I can also update the already existing one. I understand the process in theory to update that is, check ...
1
vote
1
answer
1k
views
How to add custom font in magento2 transactional email?
I am trying to add custom fonts in magento 2 transactional emails however, it does not work. I am using hyva theme.
I have imported Sofia-pro font under app/design/frontend///web/fonts/SofiaProRegular....
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 ...
0
votes
1
answer
2k
views
How to override email-inline.css in email template in magento2
I am trying to style my custom email template. I am using Hyva theme and have copied magent2-email-module\view\frontend\web\css\email.less file in my own theme to apply my own styles. It does work. ...
1
vote
1
answer
327
views
how to send items details in shipment update email templates in magento 2
I wanted yo send items details in shipment update email templates in magento 2. please help me how to add items in shipment update email template.
Thanks
0
votes
1
answer
270
views
replace email template default header and footer
can I replace the header and footer by using block in this email template file?
I want to use something else that I created in (Content->Block)
Is it possible?
2
votes
1
answer
41
views
overwrite 2 templates file by custom module, still loading the core files
I am using Magento 2.4.3p-1
I have 2 files
vendor/Aw/Review/view/frontend/templates/email/review/request_form.phtml
vendor/Aw/Review/view/frontend/email/review_reminder.html
Since those 2 files in ...
1
vote
1
answer
1k
views
Magento 2.4.4-2.4.5 - {{depend order.getIsNotVirtual()}}
Magento 2.4.4 + 2.4.5 has made changes to Email templates:
https://developer.adobe.com/commerce/frontend-core/guide/templates/email-migration/
I'm working on the upgrade to 2.4.5 and this depend ...
0
votes
1
answer
277
views
Email template id is not found issue in magento 2 admin custom form Magento 2
I Want to send a url to customer from admin panel custom form.
I use below steps to perform the task.
1 - email_templates.xml file content
<?xml version="1.0"?>
<config xmlns:xsi=&...
0
votes
1
answer
725
views
Get orderId into email template
I have created module to get order_id to get some custom information from database.
events.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
1
answer
67
views
Get all email list of website. M2
I want all email list like order email, forgot password email, create account email, newsletter, shipment email, invoice email, refund email, other third party emails etc.....
How can i get all email ...
0
votes
1
answer
514
views
Email load custom php with variable strict mode - Magento 2
Since Magento 2.3.4 email variable usage was deprecated. See: https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/templates/template-email-migration.html
But we are using a email variable to ...
1
vote
0
answers
104
views
Why I don't receive email from customer form? (Magento 2.4)
I've created a CMS page with a form where customers can submit some info & by clicking 'submit' Magento sends an email (with all the info provided into the form) to an address that I set by a ...
0
votes
3
answers
1k
views
2.4.3-p2 email template missing products
Since upgrading to 2.4.3-p2 (was 2.4.3) the email templates when sending to a customer are not showing the shipping address or the products ordered.
It's picked up the correct name, but the shipping ...
0
votes
3
answers
777
views
Back in stock alert translation and locale Magento 2.4.4
does anyone know where the Locale of the Stock alert is located in Magento 2.4.4.?
I want to translate those strings in the e-mail:
In stock alert! We wanted you to know that these products are now ...
0
votes
1
answer
44
views
How to attach file in contact us mail
I have a contact form with a field to attach the file but I don't the way how to attach that uploaded file to the email template of contact us mail in Magento