Skip to content

How to compress PDF of invoice shipment and Creditmemo

In Magento 2.4.1 I developed below code to compress the PDF and it was working fine Recently I updated Magento to 2.4.6-p3 and now compression stoped working. app/code/Vendor/CompressPDF/etc.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=”MagentoSalesModelOrderPdfInvoice” type=”VendorCompressPDFModelSalesOrderPdfInvoice” /> </config> app/code/Vendor/CompressPDF/Model/Sales/Order/Pdf <?php… Read More »How to compress PDF of invoice shipment and Creditmemo

Adding a version to a module/extension in Magento 2 admin

I want to add Installed version of current extension/module in admin menu like below screenshot. https://i.imgur.com/0P7QZSA.png Note: For creating menus in m2 admin, I am using following code from /etc/adminhtml/menu.xml file. <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Backend:etc/menu.xsd”> <menu> <add id=”My_Module::main” title=”My… Read More »Adding a version to a module/extension in Magento 2 admin