Questions tagged [email-templates]

denotes a question about the Magento e-mail templates

Filter by
Sorted by
Tagged with
0
votes
1answer
6 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
2answers
30 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
0answers
29 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
1answer
23 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
0answers
11 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
1answer
32 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
3answers
28 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
1answer
40 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
1answer
20 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
0answers
16 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
1answer
33 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
1answer
48 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
0answers
22 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
1answer
22 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
1answer
49 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
0answers
17 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
1answer
84 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
2answers
32 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
0answers
27 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
0answers
23 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
1answer
17 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
1answer
58 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
2answers
34 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
3answers
76 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
1answer
34 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
1answer
116 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
0answers
10 views

Magento 1.9 Unable to Attach Multiple PDF files with email

I'm trying to send multiple PDFs with an email. Currently, I am only able to send a single file public function sendMailpart2() { $templateId = 79; $sender = Array('name' => "Sender ...
0
votes
0answers
5 views

How to configure correspondents info for the emails?

Right now I have [Store Name] | [Department] showing in the correspondents when I receive the email from my website. I need to change it to [Store Name] - [Department]. How can I do that?
0
votes
0answers
18 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
1answer
84 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
2answers
145 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
1answer
101 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
2answers
38 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
0answers
25 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
2answers
34 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 &...
1
vote
2answers
135 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
3answers
50 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
3answers
336 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
0answers
95 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
2answers
76 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
3answers
133 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
2answers
229 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
0answers
640 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....
1
vote
0answers
30 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
1answer
43 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 ...
0
votes
1answer
38 views

Magento 2 : how to include custom image in email template?

I have made some email templates, i am not much sure where i can add image files & use it in email templates ? Is their is possible way to get it ? Please let me know your thoughts on this. ...
0
votes
1answer
33 views

Magento 2 : how to show custom shipping address in email template?

I am trying to send & show custom shipping address on email template here is the code $ship_country_id = "US"; $ship_region_id = "CA"; $...
0
votes
0answers
17 views

M2.3.5 Order Confirmation Email - product upload file link not rendering a tag

I've recently updated to version 2.3.5 and when order confirmation emails are sent the link to the uploaded file used to work correctly but is now showing the a tag rather than rendering a link, I'm ...
0
votes
3answers
39 views

Not able to get product image

How to get product image in "default.phtml" file ? Magento2/vendor/magento/module-sales/view/frontend/templates/email/items/shipment/default.phtml I am getting the shipped product object in ...
0
votes
1answer
226 views

Not getting data in phtml file in magento 2

I have override email/shipment/items.phtml in custom module. in view/frontend/sales_email_order_shipment_items.xml Vendor_module::email/shipment/items.phtml I am not getting any data on printing $...

1
2 3 4 5
18