Questions tagged [email-templates]

denotes a question about the Magento e-mail templates

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

Modifications at /simple/Magento_Sales/templates/email/items.phtml is not working

We are currently modifying the email template. We want to add another column to the order summary table for the product thumbnail. So we modified the following files: Magento_Sales/templates/order/...
0
votes
1answer
15 views

How to add Item Status to order confirmation email Magento 2.3.1

Is there a way to add the Item status (Ordered/Backordered) to the order confirmation email? I tried below code. <td class="item-status"> <?php if ($_item->getQtyBackordered()...
0
votes
0answers
4 views

Magento 2: Logged in User: Add token to existing Reset Password functionality

I am working on a Magento-2.3 task where logged in users' Reset Password functionality is to be customized. A token field needs to be added which will be sent through Email. User has to then enter the ...
0
votes
0answers
8 views

How to remove email invoice coupon code description

In invoice, when the client uses a coupon code it shows in total like Discount(description) I just want to remove the description, where this can be edited? Thanks in advance, Best regards
0
votes
0answers
18 views

Magento 2.3 Customer custom Attribute in email template

I have created some custom Customer attribute and added them in Customer registration form, everything is fine, except that when a successful registration email goes I want to send those attribute ...
0
votes
1answer
21 views

Magento 2 Remove Subtotal from order email

How can i remove Subtotal from order email in Magento 2.3.4?
0
votes
0answers
26 views

How to display estimated delivery date in order email template in Magento-2.3.5

How to display estimated delivery date in order email template in Magento-2.3.5 Exp: "Wed, December 2nd, 2020 - Fri, December 4th, 2020" like this
1
vote
0answers
15 views

How to use source model reuse in custom module custom field Email Sender in Magento 2.3.1

How to use source model reuse in custom module custom field Email Sender in Magento 2.3.1 Magento\Config\Model\Config\Source\Email\Identity Our custom module custom field like this $fieldset->...
0
votes
0answers
10 views

Empty order status in magento 2.4.1 email

I have option to load Order Update, Order Update(Magento/luma) or Order Update(Magento/Smarwave) email template. Email is sent if any of those three is selected in configuration but without order ...
1
vote
0answers
17 views

Magento 2 - send transactional email programmatically

I have created some custom transactional emails in the backend and would like to send them programmatically, perhaps with a simple custom form. In Magento 1 it was possible to do this: $localeCode = ...
0
votes
0answers
5 views

How can I fetch the tracking number and inset it to my image link URL?

I'm trying to create a new email template where I have an image saying "Track Order" and it will go to the parcelsapp website. What I want to happen is the link is variable to the tracking ...
0
votes
1answer
22 views

Create a custom magento cron job

Is it possible to create a custom magento cron job. The task I want it can be done by run sql query using php to process some logic of the sql result send out email to customer service. cron job ...
0
votes
1answer
24 views

Magento 2 Pass array data to Custom Email template

I'm a beginner in magento and I have a custom email template as follows wishlist_email_template.html {{template config_path="design/email/header_template"}} <table cellspacing="0&...
0
votes
0answers
16 views

How to print current year in Magento email footer in HTML

I need to print current year in HTML template . I tried several ways but there are not working for me. These are the solutions what I tried. <span class="copyrighttext" >Copyright &...
0
votes
0answers
17 views

Magento 2: How to add invoice date to invoice email template?

I need to add the date of invoice creation to the invoice email template in format like this: d.m.YYYY (example: 25.12.2020). How can I achieve this?
0
votes
0answers
10 views

Magento 2 email template change table header text

Hi How can I change the text of the new shipment email template? I want to change the highlighted text. I knew it is calling this block. Is there any otherway to change it? {{layout handle="...
0
votes
0answers
16 views

Magento 2 email template get payment details variables

Hi I did follow the documentation from Magento, I can get all Payment Details by using {{var payment_html|raw}} Is there anyway to get certain items from the above? Let say I just only need "...
0
votes
0answers
19 views

How do I set templateOptions for transactional emails?

I want to change the date format in transactional emails. I believe I can do this by settings $created_at_formatted within $templateOptions. But where/how do I set $templateOptions for say the "...
0
votes
1answer
23 views

How to create a custom email template and show it in store configuration dropdown?

I want to provide another option for email template without creating the etc/config.xml or etc/system.xml, because i just need to add the new email option to the dropdown without creating new input ...
0
votes
0answers
11 views

Is it possible to pass a custom system variable to a value in an email template in Magento 2?

In Magento 2.3: I have created a custom system variable (System > Other Settings > Custom Variables) that contains a url. I'd like that url to be able to be used in a link in a {{trans}} block ...
0
votes
0answers
11 views

Magento 2 Overriding Sales shipping email templates not working

We are overriding shipping templates from admin but in email Shipped By & Tracking Number and Products information is missing. Does anyone know why it is not showing?
0
votes
1answer
30 views

Magento 2 : Custom order email template customization

I want to customize the email template I have added as per below by override two files default.phmtl and items.phtml (I have added three addition td tags). Below is email which I receive exactly But ...
0
votes
2answers
17 views

How to use Admin created email template used in magento2

I have created custom module in my code with email_templates.xml its working fine but i need created template in admin then how to use that email template in code.
0
votes
2answers
49 views

Magento 2 Custom system config value not showing in custom email template

Able to get values of store phone number but not able to get custom config values(even it is working fine in root file when get custom config value) How to get value for this - {{config path="...
1
vote
1answer
53 views

Multiple variables in email subject : Magento 2

I would like to add multiple variable in email subject but the problem only one is taking into consideration. <!--@subject {{trans "%name, see the hint from %sender" name=$name, sender=$...
1
vote
0answers
31 views

Magento 2 : Change email content based on shipping method in email template

I need to change the email content based on shipping method. there are two type of shipping method one is in store pickup and one is delivery to user location. For both case content of email template ...
0
votes
0answers
22 views

In custom mail getTemplateVars returs null

I'm using checkout_onepage_controller_success_action event to trigger my custom mail based on my requirement.I already added my email template variables using email_order_set_template_vars_before ...
0
votes
0answers
34 views

Remove “Shipping & Handling” from order emails

I am trying to remove "Shipping & Handling" from the order confirmation email summary. Hiding using CSS .shipping { display:none!important; } only works in some email clients. Any ...
1
vote
1answer
19 views

Send different email template to customer

I have a custom module which is a custom form for the user to book an appointment, this form works fine with no issues, the form once submitted sends and email to both the admin and user/customer but ...
0
votes
0answers
12 views

Display product's unit price and product's total tax on invoice email

I need to show the product's unit price (price per 1 product) excluding tax on the invoice email. Example: Product A Qty: 4 Unit price (excl. tax): $100 Total (excl.Tax): $400 Tax: $50 Total ...
0
votes
1answer
22 views

Magento2 email template issue

Magento2 text is not getting converted to lowercase on using the below code in the email template {{ var data.enquiry_type | downcase }} How can I achieve this in Contact Us email?
0
votes
1answer
39 views

How to input these variables in a magento 2.3.4 mail template

We would like to display these variables in a new email template (which is currently assigned to a orderstate): Ordernumber, Customername, Order Status & Invoicenumber. The following code does not ...
0
votes
0answers
25 views

Magento Email templates, new shipment

I am new with Magento and I would like to configure new shipment emails, but I am having a problem with it. I created a new email template like the one below: {{template config_path="design/email/...
0
votes
0answers
19 views

Error filtering template: Area code is not set

I already create a custom email templates for magento. Everything works fine then this error appear in the email header. here is my code <?php namespace Test\PaymentReminder\Console\Command; ...
0
votes
1answer
13 views

logo email doesn't show on mailbox of the customer

in my case i am using magento 2.2.x , so i want to override the file "vendor/magento/module-email/view/frontend/email/header.html" in order to add a logo in the email to show the company's ...
0
votes
1answer
27 views

How to set default configuration values for each store view

I have a configuration field which I am using to store email template value. I am assigning default email template id using config.xml file. This works perfectly fine for defaut store view. Now, I ...
0
votes
1answer
25 views

Magento 2 Email template How to add Controller Path

I want to add controller path in Email template.I have create custom email template using programmatically. This is my code :- {{template config_path="design/email/header_template"}} <...
1
vote
1answer
131 views

Magento 2 Issue with email template loaded in admin Marketing >> Email templates

I have added custom code in footer.html for email footer. {{var store.getFormattedAddress()|raw}} is being used to display the store address. If I load the footer template in Marketing >> Email ...
2
votes
2answers
111 views

Magento 2 - How to get state code in footer email template

Using {{config path="general/store_information/region_id"}} in [Vendor]/[Theme]/Magento_Email/email/footer.html, I am getting region id. I would want region code to be displayed in footer of ...
0
votes
1answer
124 views

Magento 2 Email Template If Shipping Method Then Do Something

I have a custom shipping module and I am trying to execute some information in an email template based on the shipping method chosen. I have tried things like: {{if order.getShippingDescription() == '...
0
votes
0answers
20 views

Magento 2 Custom Email Sending Twice

In magento 2.3.5-p2 cloud version i am facing an issue. If I trigger my custom email once then the email is going twice. $transport = $this->transportBuilder->setTemplateIdentifier('admin_notify'...
0
votes
1answer
63 views

Magento 2: How to fetch system config value in an email template

I am trying to fetch system config value inside an html file for email template. But below code is not working {{config path="design/footer/copyright"}} Can someone suggest if there is ...
0
votes
0answers
21 views

Magento 2 - Email Template Variable Condition

I am trying to show some information in an email template based on a shipping method that is chosen. Here is what I have tried: Note: var order.getShippingDescription() returns Pickup - Pickup {{if ...
0
votes
1answer
42 views

Where can I find the full syntax specification for Markup Tags (double curly braces)?

I have found some documentation for Magento's Markup Tags, but nothing that would appear to be complete. For search-ability, I've also seen them described as "double curly brace syntax", &...
0
votes
0answers
15 views

How to extend email-inline css in custom module

I have extend email css in my custom module but its not working here is how i have extend it Vender Module web css source _email.less but it's not working.
1
vote
1answer
44 views

Wrong product image in sales order email in production mode - Magento2.3.5

We use the following code to load the product image in the sales order email. This works perfect in developer mode, but when we switch to production mode the images are not correct for those who do ...
1
vote
0answers
46 views

Magento 2.2 Add Unit Price in Order Email Template

Add Unit Price (Base Price) in Order email Confirmation in magento 2.2.3 https://prnt.sc/u0po5q We have Porto theme app/design/frontend/Smartwave/porto/Magento_Sales/templates/email >> ...
0
votes
0answers
24 views

Adding Newsletter subscribe input box to mails magento 2.3

We have designed an email template that includes a newsletter subscription input box in footer. Screenshot: This is what email template footer looks like. Now the subscribe button does not work. ...
0
votes
0answers
27 views

Magento2.3 error symlink in custom email template

I have a problem with one custom email, in admin panel I can previzualize it with no error but when email send I have: Blockquote Error filtering template: A symlink for "C:/Dev/wampp/www/...
0
votes
1answer
27 views

email logo is the same for self emails

I am using magento 2.3.3. I configured the new logo. When I create a new customer account the email sent to the customer contains the new logo, but the email copy sent to me has always the luma logo. ...

1
2 3 4 5
17