2

Guys am trying to modifying variables used in email templates, like store name, store email for every email.

How can we do this good manner?

Add plugin on \Magento\Framework\Mail\TransportInterface is good approach?

For example . : its in order_new.html

 {{trans "Thank you for your order from %store_name." store_name=$store.getFrontendName()}}

want to change store_name here

  • what do you mean by modifying variables? – Philipp Sander Feb 18 '19 at 15:07
  • for example we are showing contact at test@example.no, want to change this email – Daniel_12 Feb 18 '19 at 15:15
0

What's displayed for store name and store email can be changed in the System-Configuration.

Stores -> Settings -> Configuration -> General -> General -> Store Information -> Store Name and Stores -> Settings -> Configuration -> General -> Store Email Addresses -> General Contact -> Sender Name

| improve this answer | |
  • yeah I know about it but I want to change it programatically because I have more than 50 stores – Daniel_12 Feb 18 '19 at 15:27
  • and how exactly would changings tihs programatically faster? – Philipp Sander Feb 18 '19 at 15:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.