cancel
Showing results for 
Search instead for 
Did you mean: 

Edit {{var payment_html | raw}}

SOLVED

Edit {{var payment_html | raw}}

Hey,

 

I need to edit the info that shows in this block, but I can't find the html that creates the block.

Can someone tell me where it that?

 

Thanks Smiley Very Happy

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Edit {{var payment_html | raw}}

You can see where the payment_html variable is set in the order confirmation email in this class:

magento/module-sales/Model/Order/Email/Sender/OrderSender.php

 

Each payment method can have it's own info block / template for displaying relevant information.

 

Using the purchase order method as an example:

 

The Info block that renders the template is here:

magento/module-offline-payments/Block/Info/Purchaseorder.php

this uses the template file:

magento/module-offline-payments/view/frontend/templates/info/purchaseorder.phtml

 

 

View solution in original post

2 REPLIES 2

Re: Edit {{var payment_html | raw}}

You can see where the payment_html variable is set in the order confirmation email in this class:

magento/module-sales/Model/Order/Email/Sender/OrderSender.php

 

Each payment method can have it's own info block / template for displaying relevant information.

 

Using the purchase order method as an example:

 

The Info block that renders the template is here:

magento/module-offline-payments/Block/Info/Purchaseorder.php

this uses the template file:

magento/module-offline-payments/view/frontend/templates/info/purchaseorder.phtml

 

 

Re: Edit {{var payment_html | raw}}

You can also see the below file:

vendor/magento/module-payment/view/frontend/templates/info/default.phtml