Questions tagged [email-templates]
denotes a question about the Magento e-mail templates
865
questions
0
votes
0
answers
10
views
Magento2 : Order Email Template some content missing
Am facing issue with order placed email template. If I purchased more than 15 products some content like data and footer missing from email template. It is created from admin Email template only. how ...
0
votes
0
answers
16
views
Password forgot reset link - "h" in "https" gets cut, thus link not working
I have another extremely weird problem on Magento 2.4.4
I have set password forgot mails via template.
With the function
{{var this.getUrl($store,'customer/account/createPassword/',[_query:[token:$...
0
votes
0
answers
28
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
0
answers
12
views
add decimal place limit to 2 in subtotal amount sales order confirmation email magento2
i am using a custom template for order confirmation email resides in
marketing->email templates-> order confirm template
.
i have td in template where im getting order subtotal from order ...
0
votes
0
answers
9
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 ...
1
vote
1
answer
24
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
30
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
0
answers
6
views
Fastest way to send Image attachment in custom email from class OrderSender in Magento 2.3.5-p2
I have created a custom email template and want to include an attachment of an image
The current source code is as below and working fine
$emailTemplate = $this->emailTemplate->load('New Order ...
0
votes
0
answers
10
views
Set different email template when order price amount is more than 90
I am using magento 2.3.5-p2 Community Edition
I want the system to send a different email template when the user's new order totaling amount is < 90 and >= 90, there will be 2 template
if the ...
0
votes
1
answer
21
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
0
votes
0
answers
14
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
0
answers
17
views
Magento 2 How to render Customer Wishlist Item Options into Email items
How to Get Items Options In shared Wishlist Email Template?
Customer wishlist items Options coming from
Block =>\Wishlist\Block\Customer\Wishlist\Item\Options
Template => \template\options_list....
0
votes
1
answer
37
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=...
0
votes
1
answer
102
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:...
0
votes
0
answers
38
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
0
answers
22
views
How to dynamically add the current year to a Magento email template?
I looked around but I couldn't find a straightforward answer that does not involve making changes to the pHTML files. I'm a newbie to Magento and would prefer the most straightforward method of adding ...
0
votes
0
answers
10
views
Add Items To Credit Memo Email Template
I am looking to override the default Magento Sales New Credit Memo - Customer email template but I'm looking to have the email show the details for the item which has been refunded, as currently, the ...
0
votes
0
answers
27
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
48
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
27
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
0
answers
65
views
how to call layout handle="sales_email_order_items" in phtml?
The layout handle used in Email template is :
{{layout handle="sales_email_order_items" order=$order area="frontend"}}
But we want to add it in phtml file, so I put it like :
echo ...
0
votes
1
answer
11
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
92
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
0
answers
53
views
How to call layout handle in phtml magento 2?
I am looking for a solution to loop the layout handle in order confirmation email template but the for loop not working as expected in template code.
So, the other way I have added a phtml block and ...
0
votes
1
answer
102
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 ...
0
votes
0
answers
23
views
Magento 2: How to get country name instead of code inside email template
I am overriding Magento_Contact and have added country drop down as below
<?php $countryBlock = $block->getLayout()->createBlock('Magento\Directory\Block\Data'); ?>
<?= $countryBlock-&...
0
votes
1
answer
133
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
3
answers
141
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
176
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
36
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
0
answers
21
views
Variables for emails in M2
After migrating from Magento 1 to Magento 2, many variables stopped working - the list is not so long - but still, can someone suggest which correct variables are better to use that letters displayed ...
0
votes
1
answer
36
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
106
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
0
answers
42
views
How to set header on transportbuilder magento 2
transparent png's get a black background in email template issue.
How to set header on transport builder magento 2
header('Content-Type: image/jpeg');
header("Cache-Control: no-store, no-cache, ...
0
votes
1
answer
57
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
223
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
20
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
369
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
98
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\...
0
votes
0
answers
53
views
Warning: Can not use a scalar value as an array in /var/www/demo/vendor/magento/module-email/Model/AbstractTemplate.php on line 472
I have created the custom template for sending the emails.
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>...
0
votes
0
answers
30
views
How to send email from Email Templates in Magento 2 when order status is changed
I want to send email from Email Templates in Magento 2 when order status is changed.
I have checked and know that it can be done by observer so,
My file for observer is
<?php
namespace Hlemail\...
0
votes
1
answer
48
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
101
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.
1
vote
2
answers
227
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
164
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
69
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 ...
0
votes
1
answer
271
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
20
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
259
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
404
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