Skip to content

invoice-pdf

Auto Added by WPeMatico

Critical Error trying to Print order pdf’s since upgrade to 2.4.7

Since upgrading to 2.4.7 I can no longer print any order pdf’s, which is obviously problematic. Exception log below but I am not technical enough to know how to fix it! main.CRITICAL: Error: Call to undefined function MagentoFrameworkFilePdfImageResourcetmpfile() in /home/1125497.cloudwaysapps.com/fxfdjhhsew/public_html/vendor/magento/framework/File/Pdf/ImageResource/ImageFactory.php:69… Read More »Critical Error trying to Print order pdf’s since upgrade to 2.4.7

How to change of the packingslip pdf file name (Shipment) with the shipping ID generated from admin?

Use di.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <preference for=”MagentoShippingControllerAdminhtmlOrderShipmentPrintAction” type=”CustomModuleControllerAdminhtmlShipmentPrintAction” /> </config> Use PrintAction.php <?php namespace SingsysFilenameShipmentControllerAdminhtmlShipment; use MagentoFrameworkAppResponseInterface; use MagentoFrameworkAppFilesystemDirectoryList; class PrintAction extends MagentoShippingControllerAdminhtmlOrderShipmentPrintAction { public function execute() { $shipmentId = $this->getRequest()->getParam(‘shipment_id’); if ($shipmentId) { $shipment = $this->_objectManager->create(MagentoSalesModelOrderShipment::class)->load($shipmentId); if… Read More »How to change of the packingslip pdf file name (Shipment) with the shipping ID generated from admin?