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

How do I change the formatting of the email invoice?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-11-2011, 11:33 AM
 
crs123 crs123 is offline
 

Newbie
  
Join Date: Feb 2011
Posts: 7
 

Smile How do I change the formatting of the email invoice?

Hello,

How do I change the format of the email invoice (not the invoice customers see when they checkout)? I see lots of language variables in the /skin/common_files/mail/order_invoice.tpl file such as:

{$lng.lbl_order_id|mail_truncate}#{$order.orderid}
{$lng.lbl_order_date|mail_truncate}{$order.date|da te_format:$config.Appearance.datetime_format}
{$lng.lbl_order_status|mail_truncate}{include file="main/order_status.tpl" status=$order.status mode="static"}

but I don't see any way to change the formatting of the output. As you can see from the picture below, our company address and city are on the same line, and the zip code and state are on another line. I want to fix this so that the address is on one line, and the city state and zip are on the next line. Also, I want the state to read FL, not Florida. (see pic below)

http://www.cashregisterstore.com/images/invoice_issue.JPG

I would appreciate any help you can offer. Thank you.
__________________
crs123
Reply With Quote
  #2  
Old 05-11-2011, 03:15 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: How do I change the formatting of the email invoice?

Please list your cart version in your signature.
You need to edit mail/html/order_invoice.tpl
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
crs123 (05-12-2011)
  #3  
Old 05-12-2011, 08:23 AM
 
crs123 crs123 is offline
 

Newbie
  
Join Date: Feb 2011
Posts: 7
 

Default Re: How do I change the formatting of the email invoice?

Thank you... I found the file, and I was able to modify it to get the layout I wanted. Just for everyone's reference, the full path to the email invoice template file is xcart/skin/common_files/mail/html/order_invoice.tpl

One more question... At the footer of the invoice email, it shows:
Thank you for using our shopping system
...followed by, (our company name, address and telephone).

I can't find this text referenced in the template as a language variable or hard coded in the template file. Anyone know where this is coming from? Thanks.

__________________
crs123
Reply With Quote
  #4  
Old 05-12-2011, 09:17 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: How do I change the formatting of the email invoice?

It is referenced in the same file as {include file=.....}, that would be the signature template
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 11:30 AM.

   

 
X-Cart forums © 2001-2020