문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top