0

I want to customize the content of the invoice PDF(printable from admin backend).

But all the threads I read so far (Magento devdocs do not contain guidance on this) direct to folders like model/order/PDF/invoice.php that simply do not exist anymore in Mangento 2.3.3.

Please help me to find out where the PDF related *.php files are now in Magento 2.3.3.

4
  • what change do you want to do?
    – Manish Joy
    Commented Dec 14, 2019 at 7:58
  • First do changes in core model/order/PDF/invoice.php file and then change pdf. After that override it in your module. Commented Dec 14, 2019 at 8:31
  • Generally clear, the strange thing is that in composer (not github) installation there is NO Model/Order/Pdf/* folder!
    – Jochen
    Commented Dec 15, 2019 at 8:07
  • closed as Eclipse config problem
    – Jochen
    Commented Dec 15, 2019 at 8:23

2 Answers 2

0

For customization or changing layout of pdf invoice you need to override This files :

  1. Magento\Sales\Model\Order\Pdf\Invoice
  2. Magento\Sales\Model\Order\Pdf\AbstratcPdf
  3. Magento\Sales\Model\Order\Pdf\Items\Invoice\DefaultInvoice

In these files You can add custom variables, Change the layout or add custom footer or table for Invoice PDF.

1
  • Generally clear, the strange thing is that in composer (not github) installation there is NO Model/Order/Pdf/* folder!
    – Jochen
    Commented Dec 15, 2019 at 8:06
0

closed as Eclipse config problem

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.