How to edit Order PDF in Magento 1.6.2

1.6k views Asked by At

I learned how to edit Invoice PDF, Shipping PDF, Credit Memo PDF. I was not able to find out where are the files responsabile of Order PDF, the one that downloads when you are in the order View page and press print. Please, if anyone know, help me to find the files which are responsable for Order PDF.

1

There are 1 answers

10
Moose On

The transactional email responsible for the order, invoice, shipment etc. attachments can be located under the locale directory:

app/locale/{lang}/templates/email/sales/

Lang will be your default language, like en_US, en_GB etc.

The files responsible are:

  • order_new.html
  • order_new_guest.html

Edit as per comments:

I believe what you're looking for can be found over here:

app/design/frontend/{your_theme}/default/templates/sales/order/items/renderer/default.phtml 

Please note though that changes you make here will also appear on the order view page. To avoid this, you can use the following condition in this phtml (there is also an example in the original version):

<?php if ($this->getPrintStatus()): ?>
....        
<?php endif;?>

.. and for similar issues in the future: on the admin panel, in System/Configuration menu if you switch to "Store view", you will find an option under Advanced/Developer tab called "Template path hints". If you set it to "yes", you will see the template pathes in the frontend, embedded inline next to each block. How to use template path hints