Questions tagged [email-templates]
denotes a question about the Magento e-mail templates
901 questions
0
votes
1
answer
305
views
How to modify article block in email order confirmation?
I have set up a Magento 2 instance and am trying to modify the email confirmation when ordering. In the admin panel, I found the templates at Marketing => Email templates. But it seems the template ...
1
vote
1
answer
556
views
Custom email directive as per Magento 2.4 docs example not working
While upgrading our email templates to comply with the security changes introduced in Magento 2.4.3-p2, I'm having trouble creating a custom directive as per the Magento docs.
I tried to use the ...
0
votes
1
answer
906
views
Magento 2 : UTM params are not passed in the checkout/cart URL In Abandoned Cart Email button
I am using the Magento 2.3.6 instance for my live website. I've used Mirasvit's Follow Up Email for Magento 2 extension to send Abandoned cart emails to my customers.
My store sends Abandoned cart ...
5
votes
1
answer
1k
views
Passing a model object to a phtml email template in 2.4.4
We have a module which sends emails to customers. To get the data in the email, we're passing it to an html template which then calls a phtml template to actually render the data, passing the data ...
0
votes
1
answer
875
views
How to add upload file button in custom form and send form details through Mail in magento 2
lI created a custom form and sending mail once submit the form.Now i need to add upload file button and send all form details through mail. i added input file tag in form but i have no idea how to ...
0
votes
1
answer
143
views
How modify template successful purchase
when successful purchase, an email is sent that shows this
how to hide or delete that red mark in the picture, the SKU
1
vote
0
answers
157
views
French translations are not working in email templates in Magento2
My email content is not translating to french, when admin user perform an action. We have admin form when user saved data we are triggering an email to the user. That respected email should be ...
0
votes
1
answer
895
views
How to edit the text "grand total" in email template
I would like to change the text "Grand Total" to just "Total" in my email template.
The thing is though I have to edit {{layout handle="sales_email_order_items" order_id=...
1
vote
1
answer
1k
views
Magento 2 TransportBuilder Uncaught Error: Call to a member function createAttachment() on null
Magento 2.4.2 I am trying to send an attachment in the mail but getting Uncaught Error: Call to a member function createAttachment() on null in /Vendor/Module/Model/Mail/Template/TransportBuilder.php:...
1
vote
0
answers
231
views
How to change style of getChildHtml('order_totals')?
I'm trying to change the background color (from light grey to white) of several <th> and <td> in our new sales order email, below:
The HTML is being outputted by this method:
<tfoot ...
0
votes
1
answer
163
views
How to send inquiry email to customer on admin reply in magento2.4.3
Hello all magento developers, I want to send inquiry email notification to customer when admin can add reply to customer inquiry in magento 2.4.3.
can anyone have idea then please share here, Thank ...
0
votes
1
answer
508
views
How to query data into email template
Assume that I have customer_code in the sales_order_detail table. and I have created a view that store this column with increment_id.
How can I query that column into an email template by using ...
0
votes
1
answer
107
views
Email template text is updated but original is sent
I am trying to modify the custom email template from admin and send it to customer email.
I logged the template text after I changed it. I wanted to receive an email. I only have a text from the ...
0
votes
1
answer
16
views
Shared wishlist just displays html
I'm trying to setup up the share wishlist feature, all of the admin settings are correct but the email just sends through a load of html!
0
votes
2
answers
540
views
Magento2: Retrieve the payment last 4 digits and expiry date in the order email
I am trying to add payment-related information in the Order email on Magento 2. ( Last 4 digits of the card, expiry date of the card ).
0
votes
1
answer
607
views
How to send array variables in Magento 2 email template?
I have created a custom module to send custom email template.
But i want to send array value so need to use the loop i have tried in mail file but it doesn't work.
Any one have any idea how to send ...
1
vote
1
answer
507
views
Magento 2: How to include auto-generated coupon code in Newsletter Subscribe email template
I want to include auto-generated coupon code that expires in 1 usage in newsletter subscribe email template.
Any help will be appreciated.
0
votes
4
answers
1k
views
Email template styles are not working
I've not changed the core header.html which is in the vendor directory.
According to the Magento 2 dev docs, I must create "email-inline.less" in app/design/MyVendor/MyTheme/web/css ...
1
vote
1
answer
1k
views
How to format total order amount in email template magento 2?
I'm trying to create an email that's sent to me after
I want the total amount of the purchase to be displayed in 2 digits . How can I display like this... Display right : $ 79.90 . Current display is ...
0
votes
1
answer
572
views
Email template css styles are being ignored
I've added these styles in the admin, however only the color style is being applied. Position, left and top styles are ignored. Is there anything else I must add? Why is this happening? Any kind of ...
0
votes
1
answer
40
views
How to Customize Email Templates in Magento 2?
I am trying to add subject to custom email template but it is not working.
0
votes
1
answer
296
views
Magento 2.3.5 email template country directive issue
The website has two languages, en_US and de_DE. Both are translated correctly, everything is as it should be. But, when I submit an order, see the attachment below.
I've also tried to submit an order ...
0
votes
1
answer
175
views
How can I set customer company , city and state information in register success email in Magento 2
how can I set customer company , city and state information in transport mail template when customer register successfully.
I try this one but they not working.
<p class="greeting">{{...
0
votes
1
answer
2k
views
Magento2 how to override order_new.html email template in custom module & not in theme
Magento2 I need to override new order email template named order_new.html using custom module & not in theme via app/design.
How can I achieve this?
0
votes
0
answers
45
views
how to inherit account_new_no_password.html in magento 2
I have tried this:
var config = {
map: {
'*': {
'Magento_Payment/template/payment/cc-form.html':
'Namespace_Module/template/payment/cc-form.html'
}
}
};
0
votes
1
answer
2k
views
How can I check email template variable empty or not in mail template in Magento 2?
I want to check the mail template variable is empty or not in my custom mail template
I do follow code in that
{if $data.nature_of_business != ''}}
<li><strong>{{trans "Nature of ...
0
votes
2
answers
750
views
How to get the template Id in controller? template Id is returning NULL for the custom template in the custom module
Index.php
<?php
namespace Eaglerocket\Customquote\Controller\Index;
use Magento\Framework\App\Action\Action;
use Magento\Framework\App\Action\Context;
use Magento\Framework\...
1
vote
1
answer
368
views
Magento 2 Invoice Emails: Tax row alignment in subtotals
So I wanted to change the layout of my invoice emails, especially order totals. I wanted labels to align right.
I copied my totals.phtml file in my theme and added my styling.
<?php
/**
* ...
0
votes
1
answer
223
views
Magento 2.4 Header and footer not showing in Email template
I have create one custom module and in this module I have created send email functionality. But In Email header and footer is not send.
So Please help me.
THANKS.
2
votes
2
answers
2k
views
New Order Send custom email template in Magento 2.4
I have two condition :-
First if customer is not approve send custom email template.
Second if customer is approve send magento default email template.
How can i achieve this.
THANKS.
0
votes
3
answers
416
views
How to to add the Purchase Order Number next to the normal Magento order id on all email templates
How to to add the Purchase Order Number next to the normal Magento order id on all sales email templates as well.
I try this but not working any idea for that invoice mail templaes
Please check screen ...
0
votes
1
answer
231
views
Convert Magento 1 (migrated) email templates to Magento 2 (variables)
Migrated Magento 1 into Magento 2 does not seem to contain any 'default' Magento 2 email templates (using the Magento 2 migration tool). It only contains the Magento 1 email templates that were ...
1
vote
2
answers
1k
views
Tracking number in Email template magento 2 not working
I have use in the Email templates "New Shippment" the variable tracking numer detail
The variable in BO magento 2 Email templates :
{{block class='Magento\Framework\View\Element\Template' ...
0
votes
0
answers
117
views
Email Templates "New Shipment"
We created an email template for (New Shipment)
in this template I use the variables : " Shipment Track Details, Shipment Items Grid, Shipment " but when I receive the email the content of ...
0
votes
1
answer
1k
views
How can i insert custom tracking url in Order confirmation Email Template?
I want to insert my custom tracking url in Order Confirmation email and url is
https://vitalticks.shiprocket.co
i put code like this
Track you Order here:Vitalticks Order Tracking Page
But it is not ...
0
votes
2
answers
1k
views
How to display Product Name in the subject of the Email(Order Confirmation Email)?
I want to display product name in the subject of the Order confirmation email.
I want to display like this
Your Order for LooMantha Refrigerator... has been successfully placed
0
votes
1
answer
1k
views
How to get custom field values from quote table in observer?
I have added a custom field in checkout form and saved that values in quote table. And also displayed in the backend in order details. Now I want to send that custom field value in email.
I have used ...
0
votes
2
answers
741
views
Magento 2: Send admin email template programmatically
I have created an email template for my custom form as follows:
Vendor/Module/etc/email_templates.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0
answers
228
views
How can i change email template outer background color magento 2.4.1
I want to change outer background color of email template.So let me know how can i change background color. In which file i can change background color
screen-shot : https://www.screencast.com/t/...
0
votes
2
answers
79
views
Magento 2 : Email template issue
I am sending a string from helper file to email template
$templateVars = [
'store_credit_amount' => $storeCredit
]; // $15
In email template html file i use it like
&...
2
votes
2
answers
2k
views
MAGENTO 2 - How to send custom email from custom form
I'm kind of newbie in Magento and don't understand everything I read on the subject so I would be glad if some of you could help me find why I did wrong in the process :)
First of all, I have a test ...
0
votes
3
answers
1k
views
How to make css file to include in email template magento 2.3.3
I want to write certain css for my email templates.
How can i do that.
Please tell me how should i make a custom css file for email templates and include it in my email template content https://prnt....
0
votes
3
answers
2k
views
How to remove or edit "Grand Total to be Charged" in order email in magento 2
As I mentioned in the headline I need to alter the Grand Total to be Charged section in the order email. My store is running in LKR as Base currency and AUD as another currency.
If I place an order in ...
0
votes
0
answers
397
views
Magento 2 : Override template file (sales order email - gift card product)
I have found that this file is used with _getGiftcardOptions() vendor/magento/module-gift-card/Block/Sales/Order/Item/Renderer.php that provides data to labels for gift card item in the Sales order ...
1
vote
2
answers
417
views
Adding Google Web Font to Transactional Email?
I'm attempting to add a Google Web Font (Montserrat: https://fonts.google.com/specimen/Montserrat?preview.text_type=custom) in the Marketing -> Email Templates area and attempted to add this in two ...
3
votes
3
answers
712
views
Magento 2 : setItem() on bool error
view/frontend/layout/sales_email_order_shipment_renderers.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/...
0
votes
2
answers
2k
views
access custom customer attribute in email template
I have created a custom attribute for customers.
In the next step I want to access it in email templates. For example in the password forgotten template.
The variable "customer" contains the ...
0
votes
0
answers
3k
views
M2 | ci6.googleusercontent.com gmail proxy server stopping images to load in email templates
I am having gmail proxy server issue for showing images in email templates.
At the start of image URL which is
http://localhost/pub/media/email/images/logo.png
this is getting appended
https://ci6....
5
votes
1
answer
446
views
Magento 2 : shipped items not appearing in email template
{{layout handle="sales_email_order_shipment_items" shipment_id=$shipment_id order_id=$order_id}}
is used to render shipped items in email template but no items appear in email template.
I ...
0
votes
1
answer
317
views
Display customer_note in order confirmation email
I am using this code to display customer_note in order confirmation email:
{{var order.getCustomerNote()|escape|nl2br}}
But it does not show up in the email. I also checked the value of customer_note ...