InsideDarkWeb.com

How to Get email template in dynamically choose format(For example Html Or Text) using Magento 2?

I need to get email template in dynamically choose format(For example Html Or Text) while customer orders anything in Magento 2.

For Example:
Customer account has one option, which Email template format you want for Html or text. After Customer order, something in my site then, send email to customer account what format he chose.

How to achieve this solution? send me a suggestion to do this?

Thanks

Magento Asked by Rajkumar .E on November 9, 2020

1 Answers

One Answer

There is two methods to create email template as well magento 1x.

  1. Create your own html and place in email template.
  2. Generate email template based on default template.

Also you can write inline css or external style as given in magento.

you can find email header and footer and css files files form the following path and override in your theme.

magentovendormagentomodule-emailviewfrontendheader.phtml
magentovendormagentomodule-emailviewfrontendfooter.phtml

magentovendormagentotheme-frontend-blankwebcssemail.less
magentovendormagentotheme-frontend-blankwebcssemail-inline.less
magentovendormagentotheme-frontend-blankwebcssemail-fonts.less

Answered by Suryakant on November 9, 2020

Add your own answers!

Related Questions

How can I hide the store switcher

4  Asked on February 4, 2021 by nria

 

Magento 2 – Cant use product factory in plugin

1  Asked on February 3, 2021 by black

     

How to create custom link for category?

3  Asked on January 30, 2021 by r_solanki

   

Magento 2 cache_invalidate loop

2  Asked on January 29, 2021 by tjitse

     

Magento 2.2 ssh commands not executed

1  Asked on January 29, 2021 by jilco-tigchelaar

   

How to add new or customize existing top header links in Magento?

4  Asked on January 26, 2021 by tallal-hassan

     

Upload SVG files as product image

0  Asked on January 26, 2021 by francesco-terreni

         

Add custom parameter in order’s item in rest api magento 2

0  Asked on January 25, 2021 by vijay-gupta

 

Ask a Question

Get help from others!

© 2021 InsideDarkWeb.com. All rights reserved.