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?


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
| improve this answer | |
  • means if we want to customize print order then we have to change blocks and phtml file from both layout files you have mentioned am i correct please guide me – Hitesh Balpande Dec 17 '18 at 14:03
  • @hiteshbalpande yes, correct. You should take two files which I mentioned. – Khoa TruongDinh Dec 17 '18 at 14:56

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.