Questions tagged [email-templates]

denotes a question about the Magento e-mail templates

Filter by
Sorted by
Tagged with
0 votes
1 answer
30 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
13 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
24 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
29 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
99 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
30 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
30 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
29 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
11 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
574 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
59 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
41 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
23 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
  • 614
0 votes
1 answer
100 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
232 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
0 answers
21 views

Different look of emails on b2b store

We have two separate themes at our store. One is a b2c store and the other is b2b. On b2b we want to leave the emails as they are now, and on the b2c store we want to change the styles of the emails, ...
meracle3's user avatar
0 votes
1 answer
27 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
455 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
231 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
146 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
25 views

Can we pass the dynamic varible from Email template to phtml file in magento 2

Can we pass the dynamic varible from Email template to phtml file in magento 2. {{block class="Magento\Framework\View\Element\Template" template="Magento_Catalog::display-product.phtml&...
Team18's user avatar
  • 716
0 votes
0 answers
101 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
  • 41
0 votes
1 answer
54 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
  • 41
0 votes
0 answers
99 views

Email template layout does not appear in email template

I have an invoice email template but, the layout for invoice does not appear in email template. {{layout handle="sales_email_order_invoice_items" invoice_id=$invoice_id order_id=$order_id ...
LosMos's user avatar
  • 41
0 votes
2 answers
180 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
0 answers
20 views

Connect custom email template

How to add custom template to module programmatically? I have an observer on "email_order_set_template_vars_before" and want to add some variables and the question is how to connect my ...
David's user avatar
  • 1
0 votes
0 answers
17 views

Access customer information in email templates

How to access customer debt which is on customer account information tab in email templates.I want to send order confirmation email with custom data in checkout step
David's user avatar
  • 1
0 votes
0 answers
56 views

How to delete a record from email_template table in magento 2?

In magento 2 there is email_template table where email templates are stored. How can I delete a record from this table? Below is what I tried but it did not work. #[NoReturn] public function ...
LosMos's user avatar
  • 41
0 votes
1 answer
166 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
  • 41
0 votes
1 answer
645 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
  • 41
1 vote
0 answers
13 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
  • 614
0 votes
1 answer
844 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
  • 41
1 vote
1 answer
222 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
141 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
  • 614
1 vote
1 answer
37 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
  • 614
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
123 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
  • 41
0 votes
1 answer
183 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,671
0 votes
1 answer
498 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
53 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
392 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,420
1 vote
0 answers
63 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
639 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
532 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
  • 111
0 votes
1 answer
32 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
155 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
449 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
  • 33
0 votes
1 answer
417 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
4 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
  • 308
0 votes
1 answer
706 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
  • 173

1
2 3 4 5
18