Questions tagged [email-templates]

denotes a question about the Magento e-mail templates

Filter by
Sorted by
Tagged with
0 votes
1 answer
27 views

Sending mail to customer and admin at the same time preferably using different templates

In my module I have a feature that adds custom tab to product and there is a form that accepts name, mail and question I need to send mail both to admin and customer. This is my mail helper <?php ...
Dramorian's user avatar
0 votes
1 answer
40 views

Magento 2 - How to add data from a field in sales-order-item table to the order items in order confirmation email

I have a custom input field on each product item in the cart. The value is added to the sales-order-item table. The field is exposed to the order api as a custom attribute. I want to add the value of ...
nickcobb's user avatar
1 vote
1 answer
45 views

Not Display Product Name in the Email template?

module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/...
Thoubik's user avatar
  • 128
0 votes
0 answers
16 views

Custom Variable get dynamic value based on Realtime condition magento2

I have Create the custom variable programmatically like below. updating custom variable value programatically Ex. I have created the current_time variable now I insert the variable in the email ...
Jigar Jansari's user avatar
2 votes
2 answers
213 views

How to get email template content using template id in magento 2?

I need to get email template content like text/html using template id/code programmatically any help/suggestion much appreciated. Thanks in advance.
Chandresh Chauhan's user avatar
1 vote
1 answer
76 views

Magento 2 Reset Password Confirmation email templete link url not generate properly

Error Screenshot : https://i.imgur.com/SIAjq0C.png <!--@subject {{trans "Reset your %store_name password" store_name=$store.frontend_name}} @--> <!--@vars { "var store....
Keval Chauhan's user avatar
0 votes
1 answer
43 views

How to add billing Country_id from sales_order_adress in Email Template

I am using Magento Version 2.4.5, I want to specifically add the country_id (e.g. FR for France) in the order email template. The variable with the Billing address only returns the full address block....
JkCasi's user avatar
  • 1
0 votes
0 answers
16 views

Best way for handling large quantity of different custom automatic emails

Using: Magento version 2.4.6 Hyva theme version 1.2.3 Issue: What would be best practice for setting up a large quantity of different automatic email responses? Background: For a webshop selling ...
JanosDjango's user avatar
0 votes
0 answers
30 views

How can I change the amount of promotional emails that go out per batch?

How can I change the amount of promotional emails that go out per batch? Right now, it's set to 100, but I'm trying to increase it to 200.
Anass Hl's user avatar
0 votes
0 answers
38 views

How to display image in gmail that send from Mageplaza_SMTP in magenot 2.4?

I am trying to add image in Gmail. I had inserted image url in my email template and had set it. The sent gmail has included images, but is not displayed. Ofcourse email sending is success and the ...
Malcom's user avatar
  • 21
0 votes
2 answers
275 views

How to add image in email template?

I am trying to add image in my custom email template. I want to know how to define image section in email template and how to set image PARAMS of email sending action using TransportBuilder. Images ...
Malcom's user avatar
  • 21
1 vote
1 answer
59 views

Email not sent from custom module

I'm trying to send an email from the custom module, for that I have created a controller file, XML file and html file, below is my code app/code/Magelearn/Customform/Controller/Index/ Save.php <?...
Rushikesh Solanki's user avatar
0 votes
0 answers
39 views

Order Confirmation Email template

I am adding products in English store view on calling payment information API i switched the store and give store_code arabic in param /rest/V1/carts/mine/payment-information?store_code=ar Now when ...
Syed Hassan Zamir's user avatar
0 votes
0 answers
34 views

how to change font-family for email templates in magento 2.4.5-p2

I am using "Olegnax Athlete2" theme for my magento2.4.5-p2 store. I want to change my email template fonts to "futura pt book". can someone guide me to do the same.
Sikander's user avatar
0 votes
0 answers
15 views

Unsubscription Link in Success Mail

I want to add an unsubcription link to my success mail from Magento (2.3), but all the variables I tried so far are not generating a link. {{var subscriber.getUnsubscriptionLink}} {{var subscriber....
Jonah5's user avatar
  • 1
0 votes
0 answers
949 views

Error: Cannot instantiate interface

I am override the file sender.php this is not a normal class is abstract class may be that's the reason to display the error Could anyone suggest regarding this so i can proceed forward. error
Mohit Thakur's user avatar
0 votes
2 answers
75 views

How to override an abstract class in magento 2

I know how override the normal class but now i try to override the abstract class [ Magento\Sales\Model\Order\Email\Sender.php ] . i have override the Sender.php file in custom module but its not ...
Mohit Thakur's user avatar
0 votes
2 answers
55 views

Magento 2 : How to override the abstract class [ sender.php] in custom module

I create a custom module to send email to customer and admin separately if i try to override the core file in my custom module its shown error .Error come when i override the [ sender.php ] file in my ...
Mohit Thakur's user avatar
0 votes
1 answer
38 views

Use Multiple Email Footer Magento 1

I want to Add Different footers for the different emails from the Admin.
Rana Zain's user avatar
  • 642
1 vote
1 answer
206 views

Add template Variable in email template for Magento RMA in Magento Enterprise

I want to set the template variable in Magento RMA email template using observer or plugin. Unlike in email order (i.e. email_order_set_template_vars_before) or email shipment (i.e. ...
Mitul Vadalia's user avatar
1 vote
2 answers
351 views

Override item layout of credit memo in email template and add new column

I want to override the item layout in credit memo email template and want to add new column in that. I tried to override that but that item layout in email template is not showing. Overridden email ...
Mitul Vadalia's user avatar
0 votes
1 answer
30 views

Code changed on Emails templates

I'm working on a website that is upgraded to Magento2.4.4, now getting errors on emails (missing customer and shipping details, etc). After testing found that changing variables like customer_name=$...
Mahmood Rehman's user avatar
2 votes
1 answer
544 views

Magento 2.4.5 layout handle template variables passing null values

I am working on custom email template layout. In this template.html file I use custom layout handle with custom object variables as shown as below. {{layout handle="custom_layout_handle" ...
Siddharth Nandava's user avatar
0 votes
1 answer
343 views

Magento 2 - email template variable formatting

I'm trying to format: {{var order.getBaseTotalRefunded()}} or {{var creditmemo.grand_total}} The output of both of these is: 261.6700 I read that the template editor allows Twig filters (https://...
PaulM's user avatar
  • 17
0 votes
2 answers
277 views

Forgot password email template (custom) issue | Magento 2.4

I have overridden the default email template for "forgot password" vendors/magento/module-customer/view/frontend/email/password_new.html When I click the "forgot your password?" ...
Ajwad Syed's user avatar
  • 1,591
0 votes
0 answers
123 views

How to add html tag inside trans directive?

I am trying to add html <a> tag inside {{trans''}} but, I am getting the wrong output. Below is how I am trying to do it. <div class="register-button"> {{trans'<a href=&...
LosMos's user avatar
  • 111
0 votes
1 answer
98 views

How to access variable outside of trans directive in email template?

I am trying to use a variable called reset_password_url and I cannot make it work. Below is what I have. <a href="%reset_password_url">{{trans 'link' reset_password_url=$...
LosMos's user avatar
  • 111
0 votes
2 answers
250 views

How to add special price in new order email template?

How can I add special price in email "New order" template? Product block in email template: {{layout handle="sales_email_order_items" order_id=$order_id area="frontend"}} ...
GieDe's user avatar
  • 146
0 votes
1 answer
228 views

How to programatically delete an email template from admin via patch?

I have patch for email template and I want to delete already existing email template via patch. I can also update the already existing one. I understand the process in theory to update that is, check ...
LosMos's user avatar
  • 111
1 vote
1 answer
947 views

How to add custom font in magento2 transactional email?

I am trying to add custom fonts in magento 2 transactional emails however, it does not work. I am using hyva theme. I have imported Sofia-pro font under app/design/frontend///web/fonts/SofiaProRegular....
LosMos's user avatar
  • 111
2 votes
0 answers
18 views

replace objectManger

I have a phtml file. I want to get the product short description by SKU. I can use ObjectManager to do the work. But looks like this is not a proper way to do it. Anyone can help with recommendation ...
Paul Fan's user avatar
  • 654
0 votes
1 answer
1k views

How to override email-inline.css in email template in magento2

I am trying to style my custom email template. I am using Hyva theme and have copied magent2-email-module\view\frontend\web\css\email.less file in my own theme to apply my own styles. It does work. ...
LosMos's user avatar
  • 111
1 vote
1 answer
273 views

how to send items details in shipment update email templates in magento 2

I wanted yo send items details in shipment update email templates in magento 2. please help me how to add items in shipment update email template. Thanks
Pradeep Sanku's user avatar
0 votes
1 answer
208 views

replace email template default header and footer

can I replace the header and footer by using block in this email template file? I want to use something else that I created in (Content->Block) Is it possible?
Paul Fan's user avatar
  • 654
2 votes
1 answer
39 views

overwrite 2 templates file by custom module, still loading the core files

I am using Magento 2.4.3p-1 I have 2 files vendor/Aw/Review/view/frontend/templates/email/review/request_form.phtml vendor/Aw/Review/view/frontend/email/review_reminder.html Since those 2 files in ...
Paul Fan's user avatar
  • 654
0 votes
1 answer
1k views

Magento 2.4.4-2.4.5 - {{depend order.getIsNotVirtual()}}

Magento 2.4.4 + 2.4.5 has made changes to Email templates: https://developer.adobe.com/commerce/frontend-core/guide/templates/email-migration/ I'm working on the upgrade to 2.4.5 and this depend ...
PaulM's user avatar
  • 17
0 votes
1 answer
211 views

how to get customer id before sending an email in magento2 using php?

I have a custom email template and I want to add sales rep data for a customer dynamically in that template. For that, I need to check that to which customer email is sending to before the email is ...
LosMos's user avatar
  • 111
0 votes
1 answer
229 views

Email template id is not found issue in magento 2 admin custom form Magento 2

I Want to send a url to customer from admin panel custom form. I use below steps to perform the task. 1 - email_templates.xml file content <?xml version="1.0"?> <config xmlns:xsi=&...
Mujahidh's user avatar
  • 2,791
0 votes
1 answer
608 views

Get orderId into email template

I have created module to get order_id to get some custom information from database. events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
Patiphon Ongartittichai's user avatar
0 votes
1 answer
56 views

Get all email list of website. M2

I want all email list like order email, forgot password email, create account email, newsletter, shipment email, invoice email, refund email, other third party emails etc..... How can i get all email ...
Jimit Bhavsar's user avatar
0 votes
1 answer
444 views

Email load custom php with variable strict mode - Magento 2

Since Magento 2.3.4 email variable usage was deprecated. See: https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/templates/template-email-migration.html But we are using a email variable to ...
JGeer's user avatar
  • 1,416
1 vote
0 answers
71 views

Why I don't receive email from customer form? (Magento 2.4)

I've created a CMS page with a form where customers can submit some info & by clicking 'submit' Magento sends an email (with all the info provided into the form) to an address that I set by a ...
mirkog's user avatar
  • 11
0 votes
3 answers
750 views

2.4.3-p2 email template missing products

Since upgrading to 2.4.3-p2 (was 2.4.3) the email templates when sending to a customer are not showing the shipping address or the products ordered. It's picked up the correct name, but the shipping ...
Lexifir's user avatar
0 votes
3 answers
631 views

Back in stock alert translation and locale Magento 2.4.4

does anyone know where the Locale of the Stock alert is located in Magento 2.4.4.? I want to translate those strings in the e-mail: In stock alert! We wanted you to know that these products are now ...
Ben's user avatar
  • 141
0 votes
1 answer
38 views

How to attach file in contact us mail

I have a contact form with a field to attach the file but I don't the way how to attach that uploaded file to the email template of contact us mail in Magento
Parth Patel's user avatar
0 votes
1 answer
193 views

How to modify article block in email order confirmation?

I have set up a Magento 2 instance and am trying to modify the email confirmation when ordering. In the admin panel, I found the templates at Marketing => Email templates. But it seems the template ...
Daniel Stephens's user avatar
1 vote
2 answers
479 views

Custom email directive as per Magento 2.4 docs example not working

While upgrading our email templates to comply with the security changes introduced in Magento 2.4.3-p2, I'm having trouble creating a custom directive as per the Magento docs. I tried to use the ...
slavko's user avatar
  • 43
0 votes
1 answer
621 views

Magento 2 : UTM params are not passed in the checkout/cart URL In Abandoned Cart Email button

I am using the Magento 2.3.6 instance for my live website. I've used Mirasvit's Follow Up Email for Magento 2 extension to send Abandoned cart emails to my customers. My store sends Abandoned cart ...
IntraPersonalLearner's user avatar
5 votes
1 answer
1k views

Passing a model object to a phtml email template in 2.4.4

We have a module which sends emails to customers. To get the data in the email, we're passing it to an html template which then calls a phtml template to actually render the data, passing the data ...
kolaente's user avatar
  • 338
0 votes
1 answer
759 views

How to add upload file button in custom form and send form details through Mail in magento 2

lI created a custom form and sending mail once submit the form.Now i need to add upload file button and send all form details through mail. i added input file tag in form but i have no idea how to ...
Mani's user avatar
  • 373

1
2 3 4 5
18