Questions tagged [email-templates]

denotes a question about the Magento e-mail templates

Filter by
Sorted by
Tagged with
0
votes
0answers
17 views

Email template - Order items layout - not appearing

I'm setting up a website running on Magento 2.3.4 I've run into an issue with sending emails to buyers. The email template I created through the admin interface is supposed to show the items bought. ...
0
votes
0answers
8 views

Do an IF in {{var payment_html | raw}}

I need to do an If Else in the {{var payment_html | raw}} variable. I need something like the normal block and IF the payment is MBWay I need a custom html do place the logo and remove some ...
1
vote
0answers
24 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 ...
0
votes
1answer
29 views

Magento 2.3 custom font not loaded in email

We want to use the 'Open Sans' font of Google in our transactional email templates. But when we sent the email it does not load the custom font inside the email. We changed the file /app/code/design/...
0
votes
1answer
27 views

Magento 1.9 - How to add if-else condition on Sales order email template HTML file?

Following is my sales order email template sample, Docroot = app\locale\en_US\template\email\sales\order_new.html <table cellpadding="0" cellspacing="0" border="0"> <tr>...
1
vote
1answer
14 views

Payment success e-mail is equal email of order confirmation

I have a virtual store in magento 2.3 and it works well, except for one detail. When I place an order I receive an email with the details of my order. When I pay for the order, I end up receiving ...
0
votes
1answer
44 views

Magento 2.3: My layout handle is not working in email template

I had created the custom email template in that I declared the layout handle email template it is not working what can I do for it. I passed the data from the controller but the email is not coming ...
0
votes
0answers
16 views

Unable to display proper format in email using transport builder in magento2

I am trying to display string as <p>Hello, Welcome</p>\n in my local mail. But it is display with given html tag instead of only string. Let me know how it can be solve or what can be its ...
0
votes
0answers
21 views

How to show the cart products in email template - Magento 2.3.4

How to show the cart products in the email template i can't loop into email template, and i can't pass the products into email template, I want send mail with the current cart products so I'am working ...
1
vote
0answers
33 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.
0
votes
2answers
43 views

How to create a email template with cart products - Magento 2.3

How to create an email template with cart products, I want to create my own module with cart products and want to send the mail to the admin. How can I do this please educate with brief note. Thanks ...
0
votes
0answers
28 views

Magento 2 Custom PHP code in Admin email template

I have an email template that I'm updating using the Magento admin interface. Essentially what I'm trying to do is get the Order ID, hash it, and send it as part of the email. I read that PHP short ...
0
votes
0answers
24 views

Magento 2 - How to create custom order email template for admin and customer?

I want to create a email template for admin and customer and i want to attach a dynamic image in that. I know there is a option in config but it is too confusing and it does not provide variables ...
0
votes
1answer
30 views

How to add new store information to email templates Magento 2.3

I'm trying to change the store_email variable which can be used in all email templates to general/store_information/email (a new system field I created). This variable loads trans_email/ident_support/...
0
votes
1answer
26 views

How to get coupon code in newsletter subscription Email Template in Magento 2?

get coupon code in the newsletter email template.
0
votes
2answers
36 views

Magento2- Email template not being translated

I have created a custom email template, all works well everything is shown, except when I use the trans dictionary to translate a string from English to German, the translation does not seem to work. ...
0
votes
2answers
64 views

Email template preview is not working on live Magento 2

When i try to view the template in Live i am getting a blank screen but if try to view the template locally or on staging it works without any issues. Can anyone give me a hint or any help idea to ...
0
votes
0answers
26 views

The template did not load. Please review the log for details magento2.2.7

I am getting The template did not load. Please review the log for details when try to load email template from Marketing->Email Templates->Add New Template->Load default template. Also when ...
0
votes
0answers
13 views

How add conditional text in transactional mail depending shipping method

I would like to return some specific text in the order confirmation mail depending the shipping method. I found already some posts here, but I‘m not able to replicate them. Basically I need to know: 1....
0
votes
0answers
17 views

How to add the order tracking code to the magento 2 shipping email

I tried to locate the tracking code variable https://docs.magento.com/m2/ee/user_guide/marketing/variables-reference.html but it is not even in the documentation
1
vote
0answers
69 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 ...
0
votes
0answers
17 views

Magento 2: how to set custom body in email template

I am trying to send custom email using template where user will enter subject and message in respective text editor and hit 'Send' button. Email sending is working perfectly, but I don't know how to ...
1
vote
0answers
44 views

Magento 2.3.3 - Sales email not set

After upgrade Magento 2.3.3, sales emails are not receiving. Please refer attached file.
0
votes
0answers
15 views

Magento 2.3.2 Re: CSS inlining error: Warning: DOMXPath::query(): Invalid expression in /var/www/html/dev.instance

Re: CSS inlining error: Warning: DOMXPath::query(): Invalid expression in /var/www/html/dev.instance CSS inlining error: DOMXPath::query(): Invalid expression in selector >> @-webkit-keyframes ...
0
votes
0answers
21 views

Sending an email with default theme

Currently sending some emails with Zend_Mail because it was not needed to be pretty and it is very easy: $email = new \Zend_Mail(); $email->setSubject('Email Subject'); $email->setBodyHTML('<...
0
votes
0answers
70 views

CSS inlining error: DOMXPath::query(): Invalid expression in selector Magento 2.3.2

CSS inlining error: DOMXPath::query(): Invalid expression in selector >> @-webkit-keyframes bounceIn << in /var/www/html/vendor/pelago/emogrifier/src/Emogrifier.php on line 530 Getting ...
1
vote
1answer
23 views

Get email templates defined in admin panel in custom module

I'm writing a module that sends some emails to customers. Right now it works just fine with the email template defined in my code. Thing is I want other non-developer users to be able to access that ...
1
vote
0answers
11 views

Cannot Find Where You Change The Order Block On Email Confirmation

I'm looking to change "Shipping & Handling" on the email order confirmations. I've looked in the items.phtml and it doesn't mention shipping at all. Not sure where Magento is pulling this in ...
2
votes
0answers
45 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-...
1
vote
0answers
33 views

Add transactional email template programmatically

I'm looking to add an email template to make it available in the transactional emails templates list in back office. I'm a newbie to magento 2 and a huge newbie to magento 1. My project is under V1....
1
vote
1answer
31 views

How to set value of property of Class B using Plugin (Class A)

di.xml <type name="Magento\Sales\Model\Order\Invoice"> <plugin name="Vendor_Module::InvoiceIncrementId" type="Vendor\Module\Plugin\InvoiceSaveBefore" /> </type> Plugin code: ...
1
vote
1answer
52 views

Magento 2 Custom Email Template

I have created New Custom Header Template from admin. This email template i want to use in my custom email template in custom module. Currently i am using this below code to add header. {{template ...
0
votes
0answers
36 views

Magento 2 Localhost mail issue

I am trying to send custom template using below function in localhost. $transport = $this->_transportBuilder->setTemplateIdentifier('send_email_custom_template') ->...
0
votes
0answers
28 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 ...
0
votes
0answers
17 views

Magento 2 Order Email Template not working

I want to add unsubscribe link in in All email footers I have used {{var subscriber.getUnsubscriptionLink()}} But it's not working. Note: The Unsubscription link should redirect to account page ...
1
vote
0answers
29 views

How to print an HTML Table multiple times inside a custom email template in Magento 2?

In custom email template placed at: Vendor/Module/view/frontend/email/custom_email_template.html I have a table which prints structure of a giftcard in email, For Example like this: and table ...
1
vote
1answer
24 views

Display Customer Email, Customer Phone, Product Name, Product SKU in email template in magento 1.9

I need to display Customer Email, Customer Phone, Product Name, Product SKU in order email. {{template config_path="design/email/header"}} {{inlinecss file="email-inline.css"}} <p><...
0
votes
1answer
116 views

getting error on sending email to multiple recipients in magento 2

Exception #0 (Magento\Framework\Exception\RuntimeException): Type Error occurred when creating object: Magento\Framework\Mail\EmailMessage $store = $this->_storeManager->getStore()->...
0
votes
0answers
20 views

How to add structured data snippet to email templates in magento 2?

How to add structured data snippet within the tag to order confirmation email template in magento 2?
0
votes
0answers
38 views

Email template content issue

This is my code of email $this->inlineTranslation->suspend(); $transport = $this->transportBuilder->setTemplateIdentifier($template) ->setTemplateOptions($...
0
votes
0answers
44 views

Magento 2: How to implement email templates in Arabic Store View. Right To Left

Magento 2: How to implement email templates in Arabic. Right To Left
0
votes
1answer
338 views

Magento 2 email template fails

I have a problem with my site processing email templates. When I click preview on any email template it just produces a blank document. I have tried this with standard inbuilt templates and very ...
1
vote
1answer
335 views

Magento 2 - How to print array values in custom html email template by looping?

I want to print multiple coupon/gift codes in the custom email template. I am getting a single code as: $templateVars = array( 'store' => $this->storeManager->getStore(), '...
0
votes
0answers
13 views

Magento 2: Sending custom email template html file but not using admin email template page and vice versa

I have 2 questions. Is there a way to send custom email template html directly to customers in Magento2 without loading it on the email template page in the admin side? When I load my custom email ...
3
votes
1answer
71 views

Where does the whole email template in magento 2 being stored?

I would like to ask if where is the email templates in magento 2 being stored. The email templates are being saved inside magento admin so I am sure that it is being stored somewhere. Either in the ...
0
votes
0answers
8 views

Magento 2 - Email template on the admin side to reflect in local folder if there are changes

I would like to ask if there is a way that if I edit my email template on the admin side of Magento 2 on the email template page, it would also reflect on my custom email template file on my local ...
0
votes
0answers
23 views

Magento2 - Add customer email address in order email

I'm trying to add customer email address under the billing section of transactional email. For transactional email I tried this solution but it is not working. I also tried to add whith no success ...
0
votes
0answers
28 views

Get order ID in custom module's email's subject

I've a custom module which sends an Pre-order confirmation email to customer before order confirmation email sent to customer. Once admin reviewed order then only order confirmation triggered. I ...
0
votes
1answer
37 views

How can I get the email template ID by code? Magento 2

How can I get the template ID by its template name? Thanks!
0
votes
1answer
66 views

Email template fonts not rendering in gmail

I want to know how we can use our custom fonts rendering inside email template. I searched a lot to this answer but didn't find how to do that. So far I have already changed the content of email-...

1
2 3 4 5
16