cancel
Showing results for 
Search instead for 
Did you mean: 

Move company name to left side of invoice and packing slip

Move company name to left side of invoice and packing slip

When an invoice or packing slip is generated, our company logo is at the top left and the company name and address is at the top right. How do you replace the company name and address with the logo? In other words, we want the company name and address on the left and the logo on the right. All answers are appreciated.

2 REPLIES 2

Re: Move company name to left side of invoice and packing slip

Hello Natfire,

 

There are some files you need to change:

app/code/core/Mage/Sales/Model/Order/Pdf/Shipment.php <= you find lines 100 - 110, you can see code lines which are used for inserting Logo and Address:

 

/* Add image */

$this->insertLogo($page, $shipment->getStore());

/* Add address */

$this->insertAddress($page, $shipment->getStore());

 

These methods are in Pdf Abstarct class.

app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php

 

Magento uses coordinates to render our package slip. Now, you can write your own code lines here. You should copy these files to local code pool and then edit them.

Problem solved? Click Accept as Solution!

Re: Move company name to left side of invoice and packing slip

Thank You, MrKhoa99!