Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [email-templates]

denotes a question about the Magento e-mail templates

0
votes
1answer
34 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
17 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
20 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
20 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
26 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
17 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.
1
vote
2answers
28 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
30 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
53 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
31 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
24 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
26 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
22 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
68 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
28 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
35 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
61 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
23 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
51 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
33 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
17 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
29 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
29 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 ...
1
vote
2answers
43 views

Magento2 How to Integrate background image in my email template

I want to integrate a image in tag as background in style for my account creation email template. Where can I place this image in my folder and how can I call the image as background.
1
vote
2answers
66 views

Magento2 : Order Items Email Template Adjustment

I need to add align="right" in th(i.e Subtotal, Shipping & Handling, Grand Total) to align right on tfoot. I have found that its rendering from the below code under Magento_Sales/templates/email/...
1
vote
1answer
28 views

Magento 2 : How to add additional field in Email Template?

I have created my custom Payment Method in Magento2 and also 2 fields in Payment method now everything working fine now I want send the 2 additional field data in sales order email so how can I do ...
4
votes
1answer
32 views

Attach invoice pdf to custom e-mail in magento 2

I created a custom email and it's working fine like this: $data['amount'] = round($amount); $data['customer_name'] = $customer->getFirstname() . ' ' . $customer->getLastname(); $...
1
vote
2answers
44 views

Send newsletter

I have freshly installed Magento 2, And I could not find a way to send the newsletter email, There are options to queue template, but it is never sent, and the start date is always different from ...
0
votes
0answers
47 views

How to display star rating of new review product in email template in magento2

I want to display star ratting of new review product on email template for notification new review by email. I am unable to get star ratting on email template for my custom module.
0
votes
1answer
94 views

Sending order confirmation email template in Magento 2

I am trying to send an order email confirmation with adding extra attributes values to Admin, But it's not working for me. Here I have 2 Email templates. 1) It's a default email template 2) ...
0
votes
0answers
12 views

How to redirect the customer to the same store he has last used when he click on a button in email?

I have a button in my email called "Shop". once the email is sent to the customer if he clicks on the "shop" button it will redirect to the same store from where he has last used. How to do this.
0
votes
0answers
16 views

How to send a purchase email to the suppliers manually by clicking a button on order detail page in Magento 2?

After creating an invoice for the order, I want to able to send a purchase email to the related suppliers manually by clicking a button for each supplier on order detail page. The order may include ...
0
votes
1answer
61 views

How to use Mailchimp template in Magento 2 emails

I am trying to use Mailchimp templates in magento 2 emails instead of magento 2 default email templates. How can I achieve this?
0
votes
1answer
58 views

Magento 2 Password Reset Email goes to 404 link

I am unsure what has happened but my email template Reset Password button now links to a 404 page. Is there any way that I can get the original variable used for getting a customers password reset ...
0
votes
1answer
58 views

Template debug areas on transaction emails

We are sending out order confirmation emails programatically using the following code in Magento 2: # Now send out the emails: $emailSender = $objectManager->create('\Magento\Sales\Model\Order\...
1
vote
1answer
25 views

Change email button color not working for magento 2 email template

i tried to change the button for account confirmation email template in my custom theme like this: app/design/frontend/Test/mine/web/css/source/_email-extend.less .button{ a{ background-...
0
votes
0answers
8 views

Send custom Email to Customer after submitting Form in Magento 2

I want to send a custom email to the customer just after submitting a Feedback Form. For Submitting the form I created a Controller Action here is my action file use Magento\Framework\App\Action\...
1
vote
3answers
142 views

Magento 2 add customer group as Email Template variable

In magento 2 it is possible to create Email Template variables, however, those variables are html or plain text. I'd like to create a variable containing the user group, so i can use this variable to ...
2
votes
0answers
125 views

Create and update rp_token in Magento 2

I'm trying to create customer account manually in my custom module. Customer account is getting created successfully and welcome email is sent to the new customer using $customer->...
0
votes
0answers
18 views

Account creation email template

When a new user is registering, I am sending a confirmation email with the template "account_new.html" Inside this template I noticed variables being displayed using: {{trans "%name," name=$customer....
0
votes
0answers
101 views

Magento 2 system variable for “Order Created at” for email templates

What is the email template system variable for "Order Created at" for Magento ver. 2.2.6? Using the variable name: {{var order.getCreatedAtFormated('long')}} doesn't work for me. This is a variable ...
0
votes
1answer
136 views

Update Text in credit memo email template

app\design\frontend\Theme\name\Magento_Sales\templates\email\creditmemo\items.phtml Below script showing total related details in refund email template. <tfoot class="order-totals"> <?= $...
0
votes
2answers
39 views

Transactional Emails not sending [duplicate]

I am having an issue with transactional emails on Magento 1.9. Order confirmation emails are not sending. Can anyone help?
3
votes
1answer
20 views

How to get newsletter subscribers email id in transactional email templates in magento 1.9

I want to access newsletter subscribers email id in transactional email templates, how to access that?
0
votes
1answer
121 views

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

In magento 2.2.5, I am using the custom theme and I have used the blank theme's files. In mail I am getting this error : CSS inlining error: DOMXPath::query(): Invalid expression in selector ...
0
votes
2answers
32 views

Magento 1.9 - Where is Sales Email option

I have created a custom email template for Order Confirmation email. Now I want to select that template in the admin so it can be the template/design which will be send to customers who place orders. ...
0
votes
0answers
42 views

Magento 2 Email Templates css not working

In this i am working on Email Templates, When iam trying to add my custom css in "Template Styles" its not working.
0
votes
1answer
169 views

Magento 2 edit {{var alertGrid|raw}}

How can I edit the {{var alertGrid|raw}} for the magento 2.2.x stock alert email? I know the template is found in vendor\magento\module-product-alert\view\frontend\email\stock_alert.html but the ...
0
votes
0answers
19 views

Magento 1 transactional email not adding inline styles

For some reason some of our e-mails do not got the inline styles added, when the email is sent. I already checked the settings at configuration -> Design -> Transactional Emails. These are set ...