1

I am trying to reorder the table header on the order PDF, but I can't find the file anywhere. It's not in the Mage/Sales/Model/Order/Pdf. I managed to trace down and modify everything, but this part is somewhere else.

enter image description here

Any idea where else can this code be?

2

The order doesn't have a PDF, but if you mean the invoice or shipment they both have a method _drawHeader that outputs the headers, the item itself is rendered in Mage_Sales_Model_Order_Pdf_Items_Invoice_Default or Mage_Sales_Model_Order_Pdf_Items_Shipment_Default by the method draw

| improve this answer | |
  • Yes, this draws the header for the invoice and the shipment. I'm talking about the PDF file that is generated when you press the PRINT button on the order page in the backend. – Andras Sep 7 '15 at 16:17
  • Double checked on a clean install with sample data but a standard order doesn't have a PDF as far as I can see. Could it be a plugin? – Sander Mangel Sep 7 '15 at 16:21
0

I'm talking about the PDF file that is generated when you press the PRINT button on the order page in the backend

It looks like you've mistaken the "print" HTML template for a PDF, which it isn't.

The template can be found in template/sales/order/print.phtml .

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.