View Single Post
  #1  
Old 04-22-2006, 06:30 PM
  2coolbaby's Avatar 
2coolbaby 2coolbaby is offline
 

eXpert
  
Join Date: Sep 2004
Location: TN moving to FL
Posts: 265
 

Default Better Order Label Print

I know this is very simple and most probably use some form of it already, but I print order labels from x-cart regularly. My problem was that the layout for these labels was very jagged and messy to say the least, so every label required a lot of formatting to get it into address format. I did 2 things to fix this and save myself a lot of work. First in the Admin Panel under States I changed all of the state names to their correct abbreviations. This way the postal abbreviation shows up everywhere, including the label. Who uses full state names anyway? It isn't as if the credit card companies need that.

Next open this file:

skin1>main>order_label_print.tpl and replace the code after the first line with this:

Code:
{$order.tracking} {$customer.s_firstname|default:$customer.firstname} {$customer.s_lastname|default:$customer.lastname} {$customer.s_address} {$customer.s_address_2} {$customer.s_city}, {$customer.s_state_text} {$customer.s_zipcode} {$customer.s_country_text}

That should give you a nicely laid out label to print!
__________________
Mary Lee
-------------------
Dinner and a Murder Mystery Games
http://www.dinnerandamurder.com

x-cart version 4.7.5 / Mac OS 10.10.5 and Windows 8/10 sometimes - Ideal Responsive Template
Reply With Quote