We wanted to use the excellent integrated labels with Magento.
We worked out that we needed to: Copy Abstract.php from app\code\core\Mage\Sales\Model\Order\Pdf to app\code\local\Mage\Sales\Model\Order\Pdf
Add the following to around line 233
/* Print shipping address for postage label */ $this->_setFontBold($page); $this->y = 170; foreach ($shippingAddress as $label){ if ($label!==”) { $page->drawText(strip_tags(ltrim($label)), 70, $this->y, ‘UTF-8′); $this->y -=10; } }
This printed the shipping address fine. However we noticed that it was printing out the customer’s phone number on the label too.
To remove this you have to go to app\code\core\Mage\Customer\etc\config.xml [make a backup first] and remove the references to a telephone number from within the <pdf translate=”title” module=”customer”> block.
Simon