InsideDarkWeb.com

Magento 2: Transnational email custom variables

There is zero documentation on how to create a variable and attach it to $order or anything of the sort. In my case, I need to multiply a product variables and quantity variable and display them as another variable within the transnational email that gets sent out with a order.

Magento Asked by lostnconfused on November 19, 2021

1 Answers

One Answer

the variable that pass to order email template is in the file

vendormagentomodule-salesModelOrderEmailSenderOrderSender.php

https://drops.meetanshi.com/kKe3RY

you can get all the variable that pass to template here

Answered by Jigs Parmar on November 19, 2021

Add your own answers!

Related Questions

Magento 2 get Admin session in frontend

1  Asked on December 29, 2020 by ramesh

     

Whitespace before SOAP declaration

3  Asked on December 29, 2020 by boruch

     

display magento2 menu based on the customer login

0  Asked on December 29, 2020 by venkata-prasad

       

Override a controller in magento 1.9

0  Asked on December 29, 2020 by mahesh1343

 

Move block after price using layout xml in M1.9

0  Asked on December 27, 2020 by sam-provides

     

Send email to a friend is not working

2  Asked on December 26, 2020 by bineesh

     

How in Block a productcollection of template render?

2  Asked on December 24, 2020 by andrej-wasemiller

     

Magento 2 Sort order on catalogue widget

0  Asked on December 23, 2020 by carter

   

Ask a Question

Get help from others!

© 2021 InsideDarkWeb.com. All rights reserved.