Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Better Order Label Print

   X-Cart forums > X-Cart 4 > Dev Questions
Thread Tools Search this Thread
Old 04-22-2006, 06:30 PM
  2coolbaby's Avatar 
2coolbaby 2coolbaby is offline

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:

{$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

x-cart version 4.7.5 / Mac OS 10.10.5 and Windows 8/10 sometimes - Ideal Responsive Template
Reply With Quote
Old 05-11-2006, 09:23 AM
shirtshop shirtshop is offline

Senior Member
Join Date: Nov 2002
Posts: 127


how can i print all the addresses in 2 or 3 collums direct on stickers?
ver 3.5.10 with a lot of customizing
now testing 4.4.1 smartytemplate
Reply With Quote
   X-Cart forums > X-Cart 4 > Dev Questions

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -8. The time now is 10:44 PM.


X-Cart forums © 2001-2020