Questions tagged [email-templates]

denotes a question about the Magento e-mail templates

0
votes
0answers
16 views

How Do I Locate the Order Confirmation Email Item Renderer?

I'm having difficulty updating the order confirmation emails that our site is sending. I can find and modify the template in the admin interface and I can find the corresponding items.phtml file in on ...
1
vote
2answers
21 views

Email template 'test_email_template' is not defined in magento 2 admin

system.xml <?xml version="1.0"?> <!-- /** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ --> <config xmlns:xsi="http://www.w3.org/2001/...
0
votes
2answers
26 views

Magento2 Cron job for sending mail not working

I am trying to send an email to a address via cron job but there is no response I tried it using controller it sends the mail correctly. Vendor\Module\Cron\Mail.php <?php namespace Vendor\...
0
votes
0answers
21 views

Magento 2: New order email totals/subtotal decimal places

we have changed our site to display prices in 4 decimal places using this extension However on the new order email we would like to trim off the extra zeros. This is how it is displaying... Subtotal ...
0
votes
0answers
7 views

Add prefix/suffix to the subject line of all outgoing emails

Is it possible to add a prefix / suffix to the subject line of all outgoing emails from a store? Ideally just looking to add something like [STORE NAME] to the beginning / end.
0
votes
1answer
34 views

Shipment Email Template issue Magento 2.3.1

I am using Magento 2.3.1 CE. My English is not perfect sorry. Admin > Marketing > Email Templates > Shipment Email Template When I click preview template, I see this error. Fatal error: Uncaught ...
0
votes
0answers
7 views

Email-Template with embedded image

My Magento 2.2 email header template use the following (default) code to include the logo into html-code: <img {{if logo_width}} width="{{var logo_width}}" {{else}} width="...
0
votes
1answer
26 views

Magento 2 Default logo on Email

I have create observer which sends the email. The email is working file but the problem is with the logo. I have added the logo for the all email. All the emails including the sales order shows me the ...
0
votes
0answers
10 views

Magento 2.3 custom email attachment send from pub folder

How to send custom email with attachment ? but attachment with from our pub folders ? My observer file <?php namespace Namespace\Modulename\Observer; use Magento\Framework\Event\...
0
votes
1answer
13 views

main.CRITICAL: Email template '' is not defined. at /public_html/vendor/magento/module-email/Model/Template/Config.php:225)"} []]

in my exception.log i see this error message, I am unable to trace where the exception came from. magento: 2.2.6 main.CRITICAL: Email template '' is not defined. {"exception":"[object] (...
0
votes
0answers
9 views

Is it not possible to create an emailtemplate for adminhtml with frontend theme?

I have created an emailtemplate to show the summary of some integrations. It will be send by cron. But I had issues with my area, first I had adminhtml but I wasn't able to finish it and must change ...
0
votes
1answer
24 views

Get info from pop-up form into email template

I want to get values from this form fields and put into email template. What I was suppose to do? For every field I need to create custom variable, and bind it on field? Documentation is not too ...
0
votes
0answers
16 views

Magento 2.3 how to create email templates for different pop-up forms

I got multiple pup-up "contact us", "get sample" and etc. Forms has different fields. How can I create email templates for each form? Here form sample: Different templates for each form:
2
votes
1answer
18 views

After send an email page is not redirecting in magento2

After email sent page is not redirecting. Email function is using in magento2 helper. $transport = $this->_transportBuilder->setTemplateIdentifier($templateConfigId) ->...
1
vote
1answer
17 views

M 2.3.1: Imprint variables are not showing up in E-Mail templates

I have the following problem. I have populated the bank and imprint data as per Configuration -> General -> Imprint for all my store views under Magento 2.3.1 Now I am populating my e-mail template, ...
0
votes
0answers
31 views

Magento2 email template inside getting this error

I am using magento2.3.0.When i fire email in frontend side than getting error in email inside "CSS inlining error: DOMXPath::query(): Undefined namespace prefix in selector >> .mt-menu .col-1....
1
vote
1answer
26 views

Checkout page error 'Email template '' is not defined'

On checkout page I am getting error 'Email template '' is not defined'. I would like to know how can I debug this error to find out which email template is not defined.
0
votes
0answers
29 views

Magento 2 - Sales email template override don't work

I customized store email template on the theme (header, footer, and content by module), however, those related to orders (Magento_Sales) aren’t working and display the LUMA theme email. The other ...
2
votes
1answer
27 views

Get order object inside email_order_set_template_vars_before event observer

I have observer for email_order_set_template_vars_before where i am setting some email template variable to use in order confirmation email. Now i want to find which products customer has ordered in ...
0
votes
0answers
26 views

How can submit my form through mail?

I have automated mail sending function in Magento 1.9 code. I have used mail template for sending mail (using default magento functionality) but now i want to add one form in that mail which ...
0
votes
0answers
10 views

E-Mail template / renderer for bundle products?

For none bundle products, the template which is used is vendor/magento/module-sales/view/frontend/templates/email/items/order/default.phtml. It seems, that is not used when the bundle products are ...
0
votes
0answers
16 views

Magento 2 Email custom font working preview but not working in Email

I'm following This https://devdocs.magento.com/guides/v2.0/frontend-dev-guide/templates/template-email.html But not solved
1
vote
1answer
15 views

How to bind product image to email in Magento2.2.5?

I have created custom module in which I need to bind product image to email template in Magento2.2.5? My code: $requestData["imgUrl"] = $data["shareProdImg"]; $postObject = new \Magento\...
1
vote
0answers
59 views

how to call phtml file in email template in magento2

I need to pass the phtml file into email template. but I'm getting error like Error filtering template: Invalid template file: 'Vendor_Module::emailproducts.phtml' in module: '' block's name: '...
1
vote
1answer
35 views

Magento 2 : Custom module email template is showing Luma header and footer?

I have created a custom form module, when I send email and the template showing Luma theme header and footer but for another emails everything loads from custom theme. Question : Why this is ...
1
vote
0answers
18 views

How to get the identifier of the email template created from backend in magenot 2?

I have created a custom email template in backend. Now i want to add the identifier of that email template in my model. So how can I get the identifier which I can specify in my model file. Please ...
0
votes
1answer
38 views

Change Email Template On Specific Order Status:Magento2

I am trying to use different e-mail template for one of my custom order status when the status is changed from the admin. I have used the event sales_order_save_after <observer name="...
1
vote
1answer
25 views

External image details getting added in order email template in Magento 2

I am trying to add product image in the sales order email template with overriding in the path /app/design/frontend/vendor/Mytheme/Magento_Sales/templates/email/items/order/default.phtml. Code ...
0
votes
1answer
25 views

How to convert template variables to custom data in magento 2

I have configured a back-end screen where I will enter a string as {{price}} for guest user. click here {{sign_up}}. So after I fetch the field value I want to dynamically replace the {{price}} ...
1
vote
0answers
12 views

Reference email template within template

I am attempting to reference a newly created custom template via the admin panel within another email template. The template I am trying to access is called 'footer' when I change the standard line to ...
1
vote
0answers
21 views

Add additional text to email template container

This is my system.xml file: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/...
0
votes
1answer
35 views

How to send an array of objects in email in magento 2?

I need a way to send an array of objects in email, So I can iterate those and create a table in email. I have tried creating email handle but no success. Any help is much appreciated! Thanks
1
vote
0answers
19 views

Email templates - variables names get translated instead of showing the value

I'm using magento 2.2.6. My email templates are displaying the translation of the variable used and not their value. I have installed a translation pack for Romanian.
2
votes
2answers
87 views

How to create custom variable programatically for template in magento 2

With the all searching so far I have found that we can add custom variable using this: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $model = $objectManager->get('Magento\...
0
votes
1answer
59 views

Credit Memo Subtotal Mismatch magento 2.2.8

I'm Trying To change Subtotal For The item In Credit Memo Email Product Price:- 4.99 I am creating a credit memo for 10 product but Subtotal is a mismatch The grand total is correct. how can I ...
1
vote
1answer
62 views

pass array from php file to phtml?

i use observer on order place . sales_model_service_quote_submit_before when order is place i get order items and each item has a seller id . i get email from seller ids. and now send mail to those ...
0
votes
1answer
66 views

Magento 2 send email programatically not working(error-Template file 'name_of_file.html' is not found.)

Magento 2 send email(adminhtml) programatically not working. i am using this code - $report = [ 'report_date' => date("j F Y", strtotime('-1 day')), 'orders_count' ...
0
votes
1answer
28 views

How to use nested array in email template

I have a nested array that I am passing as templateVar. setTemplateVars(['details' => $arr]) The array($arr) is [0] => [ ["key1"]=>value1 ["key2]=>value2 ] [1]=>[ ...
1
vote
0answers
30 views

How to add custom text to all email templates?

I want to add a custom text input field to admin/Marketing/Email templates/Add New Template. This new text input should save it's value to the current email template content which I am creating. I ...
0
votes
1answer
24 views

customer's password not displayed in email templates in Magento

After New account registration in 'welcome email' password not visible. If I want to send a password through email then how to send it. Is it good practice to send a password in clear text?
2
votes
2answers
70 views

Magento 2 - Include Customizable Options in Email Template

I need to include product Customizable Options with price in order email template. For this I have modified the code and added the Customizable Options code. All are showing fine but the Customizable ...
0
votes
0answers
37 views

Magento2 : How to get order-total in shipping email

I like to get order-total in shipping email template of magento 2.3
1
vote
1answer
66 views

How to get image and price in shipping email template in Magento2.3?

How to get product image and price in shipping email template. For image i add a code in shipping/default.phtml <?php $productId = $_item->getProductId(); $objectManagerHere = \Magento\...
3
votes
2answers
67 views

if-condition in Order update EmailTemplate

I like to use differrent text for order_update email template. Admin->Marketing->Email template i create new template for "order update" If $order.getStatusLabel() == "Cancel" I like to add some ...
0
votes
0answers
26 views

Magento2 email order copy for admin with custom template with order data

I have used Magento2 I want to select custom email template with order's dynamic data.I want to sent admin order copy.if anyone develop this type of functionality and if available module please reply ...
1
vote
2answers
56 views

Email template for contact form in magento2.2.5?

I have extended contact email form and added few fields(Refer screenshot) Under subject field there are 3 options, based on the subject selected the email should be send to multiple users. For ...
0
votes
1answer
45 views

Magento 2.2 Override admin forget password email template still load from vendor

Hi I have been stuck about 1 day, what I want is override this file in my magento 2: vendor/magento/module-user/view/adminhtml/email/password_reset_confirmation.html I have many attempt but still ...
0
votes
0answers
18 views

How to send 2 different email from a single action in magento 2

How can I send 2 different email with different template (one for client and second for admin) from a single action in magento 2
3
votes
0answers
48 views

Magento 1: Showing templateControl is not defined message in console

In transactional emails, I am trying to call custom value and attributes but my changes are not reflecting on a email. I tried to look a using email template but my email template also is not working ...
3
votes
1answer
79 views

How to send Payment Transaction Failed Email copy to customers in Magento 1

There is a setting in Magento Admin > System > Configuration > Checkout (from sales section) > Payment Failed Emails where you can add custom email id to receive it. But I want our customers to ...