Magento – Frontend Invoice Print

customerfrontendinvoicemagento2print

Just a question. My frontend button on the customer dashboard to print an invoice prints the page itself and not the PDF of the invoice.

Does anyone have any idea if there is a quick fix or a setting for this?

How it looks now :

How it not should be

How the pdf looks when printed from admin:

enter image description here

Best Answer

By default Magento, the Front page doesn’t generate PDF for order. So, there is no a quick fix or setting. We need to build a custom one (can try with domPdf library). When allowing customer generating PDF, we should create a cron job to clear the generated files.

Related Topic