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
Solved! Go to Solution.
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
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
You can also see the below file:
vendor/magento/module-payment/view/frontend/templates/info/default.phtml