Printing a removable customer address label from Magento
With the http://www.integratedlabels.co.uk invoice and packing slip software for Magento you can include the following information onto a document with peel off labels to stick to your
parcels or letters:
1 Customer invoice and delivery addresses
2 Returns address
3 Loyalty details (or any
other text you want to use)
Because the label is on the same document that you pick
and pack from it improves the efficiency of your packing process and saves you
time. There is also less chance of the wrong goods being sent to the customer.
There are no new Magento procedures to learn as you print your invoice or packing
slip in the same way that you currently do, shown below:
Invoices and Packing Slips are provided for single and double label paper. If
you are using double perforated paper you can tear off the top addresses section.
Examples of all the Invoice and Packing Lists available are shown below. See the Advanced Features section on how to change the address format on the labels (e.g. to put the postcode on a separate line)
![]() |
![]() |
|
Invoice with delivery address at bottom left on single label paper |
Invoice
with delivery address at bottom left and invoice address at bottom right
on double label paper. If using double perforated paper the bottom section
can be removed.
|
![]() |
![]() |
|
Packing Slip with delivery address at bottom left
on single label paper
|
Packing Slip with delivery address at bottom left
and invoice address at bottom right on double label paper. If using double
perforated paper the bottom section can be removed.
|
4 On your website open the file app/code/core/Mage/Customer/etc/config.xml
5
Find the section called pdf (look for the word pdf). You will find the line shown below:
<pdf translate="title" module="customer">
6
The text after this describes how to layout the addresses. To put text onto a new line use a | character.
For example, to put the postcode onto its own line change
{{if city}}{{var city}}, {{/if}}{{if region}}{{var region}}, {{/if}}{{if postcode}}{{var postcode}}{{/if}}|
to
{{if city}}{{var city}}, {{/if}}{{if region}}{{var region}}| {{/if}}{{if postcode}}{{var postcode}}{{/if}}|
NOTE: The address description may be slightly different than that shown above for different Magento versions.
Resolving problems
If the address details don't change format on the label the following should resolve this:
1 Do you have a copy of the configuration file at:
app/code/local/Mage/Customer/etc/config.xml ?
If you
do you should amend this version as this file is picks up before the core files.
2 Have you cleared the Magento Cache (System > Cache Management)?
If the return address does not print correctly
Are there any ' (apostophe) characters in the return address details (e.g. Goat's shed House). There are 2 possible solutions:
1 Use a different character (e.g. Goat`s shed House)
2 Change the text in the file to use a " around the text (e.g. $page->drawText{"Goat's shed House"...).