View Single Post
  #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