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

Using business letterhead for invoice background

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-23-2010, 03:10 PM
 
Ingenuity@Home Ingenuity@Home is offline
 

Advanced Member
  
Join Date: Jul 2009
Location: Australia
Posts: 53
 

Default Need help on using business letterhead for invoice background

Hi,

I'd like to use my business letterhead as a background for the invoices. Any idea how and where to do that?

I'm new to this software language and still trying to get my head around how things fit together.

Guessing one of the files will be skin1/mail/html/order_invoice.tpl?
__________________
Yours faithfully,
Leonie

X-Cart Pro 4.2.2 (Linux) - with customisations
Add Mod: Fancy Categories
___________________________________
Location: Australia
Reply With Quote
  #2  
Old 02-24-2010, 01:56 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: Using business letterhead for invoice background

Yes, that's the template you need. You'd need to set it as the background image.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 03-01-2010, 06:15 PM
 
Ingenuity@Home Ingenuity@Home is offline
 

Advanced Member
  
Join Date: Jul 2009
Location: Australia
Posts: 53
 

Default Re: Using business letterhead for invoice background

Thanks Paul.

I'm struggling to get it to show as the invoice background. Currently it just keeps showing it as a full page image, with the invoice now on a 2nd page.

Any hints?
__________________
Yours faithfully,
Leonie

X-Cart Pro 4.2.2 (Linux) - with customisations
Add Mod: Fancy Categories
___________________________________
Location: Australia
Reply With Quote
  #4  
Old 03-01-2010, 11:31 PM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: Using business letterhead for invoice background

Have you added the image as a background in the css file, in the class:
"order-invoice"
?
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #5  
Old 03-03-2010, 02:45 PM
 
Ingenuity@Home Ingenuity@Home is offline
 

Advanced Member
  
Join Date: Jul 2009
Location: Australia
Posts: 53
 

Default Re: Using business letterhead for invoice background

Eventually got it to show the letterhead as background....well....partially.....

Basically, I did the following:
In skin1/mail/html/order_invoice.tpl I replaced this
Code:
<table cellspacing="0" cellpadding="0" {if $is_nomail eq 'Y'}class="order-invoice width-100"{else} style="width:600px; background-color: #ffffff;"{/if} summary="{$lng.lbl_order_details_label|escape}">

with the following:

Code:
<table cellspacing="0" cellpadding="0" style= "background-image:url({$ImagesDir}/myletterhead.jpg)" no-repeat top center; {if $is_nomail eq 'Y'}class="order-invoice width-100"{else} style="width:600px; background-color: #ffffff;"{/if} summary="{$lng.lbl_order_details_label|escape}">

Problem now is that, depending on the number of products listed on the invoice, it either
  • cuts off the bottom piece of the letterhead; or
  • prints the full letterhead followed by top section of letterhead again.


What am I missing?
__________________
Yours faithfully,
Leonie

X-Cart Pro 4.2.2 (Linux) - with customisations
Add Mod: Fancy Categories
___________________________________
Location: Australia
Reply With Quote
  #6  
Old 03-03-2010, 02:52 PM
 
Ingenuity@Home Ingenuity@Home is offline
 

Advanced Member
  
Join Date: Jul 2009
Location: Australia
Posts: 53
 

Default Re: Using business letterhead for invoice background

Quote:
Originally Posted by pauldodman
Have you added the image as a background in the css file, in the class:
"order-invoice"
?

Hi Paul,

Initially - no. Didn't think of css.

I now changed the following in main.css:
Code:
.order-invoice { background: #ffffff none; }

replaced with

Code:
.order-invoice { background: url(images/myletterhead.jpg) no-repeat top center; }


Still get the same problem as with changes made to order_invoice.tpl (as mentioned in previous post ) - even if I remove the changes made in order_invoice.tpl.


Really appreciate your thoughts on this.
__________________
Yours faithfully,
Leonie

X-Cart Pro 4.2.2 (Linux) - with customisations
Add Mod: Fancy Categories
___________________________________
Location: Australia
Reply With Quote
  #7  
Old 03-04-2010, 07:21 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Using business letterhead for invoice background

Probably you need to change your invoice from an image, to html code that can have the body stretch, then insert the html code above and below the existing invoice. Often it's easiest to do this globally on all emails by modifying the header and signature files.
Reply With Quote

The following user thanks Jon for this useful post:
Ingenuity@Home (05-11-2010)
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 01:44 PM.

   

 
X-Cart forums © 2001-2020