1

I have created my custom Payment Method in Magento2 and also 2 fields in Payment method now everything working fine now I want send the 2 additional field data in sales order email so how can I do that?

0

Overwrite the vendor/magento/module-sales/view/frontend/email/order_new.html template in your theme or module to add your variable output.

and use the event email_order_set_template_vars_before to add your variables to the template

| improve this answer | |

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.