Magento 2: How to change the content of print order
-
07-10-2020 - |
Question
I need to change the content of printed form of the order. (My Account-> My Orders -> View Order ->Print Order). Which file is to be edited for the changes?
Solution
On the Front page, the print order action will not generate the PDF like Admin does. It will generate the HTML.
We should take a look the print layouts under vendor/magento/module-sales/view/frontend/layout
.
For example:
vendor/magento/module-sales/view/frontend/layout/sales_order_print.xml
vendor/magento/module-sales/view/frontend/layout/sales_guest_print.xml
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange