Add order comments to invoice/shipment pdf
-
06-02-2021 - |
Frage
Files controling invoice/shipment order pdf content are the following:
vendor/magento/module-sales/Model/Order/Pdf/Invoice.php
vendor/magento/module-sales/Model/Order/Pdf/Invoice.php
Is it possible to add order comments in these pdf prints?
Lösung
yes, you can do.
At Invoice.php, you can get Order object using $this->Order();
then using $this->Order()->getStatusHistoryCollection()
using you can get comment history collection.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit magento.stackexchange