This was another tough one here. Magento uses tons of files to accomplish different bits of tasks for all kinds of things. One of those tasks is creating the PDF packing slip that Magento generates when you are printing a “Shipment”. When you click “Print” on the Shipments section of Magento Admin, Magento automatically creates a PDF file for you to use for whatever reason. We use this “Packing Slip” as a purchase order with our vendors who then are supposed to “Blind Drop Ship” the product directly to our customers, including this Packing Slip we email them. The blind shipping is another story there, but if you’re a non-stocking dealer like we are, you can only do so much.
Back to the modification. On this Magento Packing Slip, one thing that annoyed me was the fact that in the Shipping Methods box, there was text “Total Shipping Charges” followed by the amount of shipping. This is a packing slip, not an invoice, so to me, the shipping charges are irrelevant. It’s probably just me, since in searching Google, I found no one else with this question, How To Get Rid of Total Shipping Charges on packing slip in Magento, but maybe someone else will want this. I just don’t think it should be on the packing slip!
MAKE A BACKUP OF YOUR FILE FIRST. YOU HAVE BEEN WARNED!
- Navigate through the files on your server to /app/code/local/Mage/Sales/Model/Order/Pdf/Abstract.php
- Open the file Abstract.php.
- On our version (1.3.2.3) the line that needs modification is on #309.
- You’ll see where it reads: $totalShippingChargesText = “(” . Mage::helper(’sales’)->__(’Total Shipping Charges’) . ” ” . $order->formatPriceTxt($order->getShippingAmount()) . “)”;
- Change it to read: $totalShippingChargesText = “”;
- Color of text above was done by me just for emphasis.
- Save your file, do not close it yet in case you messed up.
- Go to your shipments section of Magento Admin, open a shipment and click print. You should come up with a nice clean packing slip with no Shipping Charges Total line!
