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

Which tpl produces the 'Printed Invoice'?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-22-2010, 12:09 PM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Which tpl produces the 'Printed Invoice'?

Hi, I've been editing the screen invoice at mail\html\order_invoice.tpl, but when I click on 'Print invoice' on the order confirmation screen, I can't work out where the printed invoice comes from, as it's different than order_invoice.tpl (which I have just been editing).

(If anybody could explain how it is possible to work this out from Webmaster Mode, or any other way, that would be a great help to me too.)

Many thanks for your help.
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #2  
Old 09-22-2010, 06:25 PM
  Sparks's Avatar 
Sparks Sparks is offline
 

eXpert
  
Join Date: Dec 2009
Posts: 339
 

Default Re: Which tpl produces the 'Printed Invoice'?

If you right click and go show source (or show info in FF) on the print preview page, I belive it might show you there.

(goes off to try)

Update. Well I tried..
http://yourdomain.com/admin/order.php?orderid=2&mode=invoice

Dont have FTP running but i'll try some more stuff later as it's given me a nice idea for a mod
__________________
Enchance your X-cart with
Marketing Manager Pro Bundle For X-cart 4.4.x Now Available
Feed Manager Pro for X-cart

Advanced Instant Product Search - Google style searching for your site
Glossary Mod - Help customers educate themselves
Feed Manager 3 Deal Pack - Get Started with Google Base and More
Bing X-cart export Feed - Send your items to Bing with this easy mod.

http://www.firetanksoftware.com
Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods
Reply With Quote
  #3  
Old 09-22-2010, 11:40 PM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default Re: Which tpl produces the 'Printed Invoice'?

look at skin1/main/order_invoice_print.tpl

hth
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote

The following user thanks amy2203 for this useful post:
Sisom (09-23-2010)
  #4  
Old 09-23-2010, 12:50 PM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Re: Which tpl produces the 'Printed Invoice'?

Thanks Amy2203, I looked through order_invoice_print.tpl, and found that it calls
mail/html/order_invoice.tpl
and then just added the word 'TEST' in the middle of one of the lines of data in the invoice, and it appears in both - so it uses the same template! I feel such a fool.

I should have noticed all the

Code:
<td {if $is_nomail eq 'Y'}class="invoice-line"{else}height="4"{/if}><img src="{$ImagesDir}/spacer.gif" {if $is_nomail ne 'Y'}style="height: 2px; width: 100%; background: #58595b none;max-height: 2px;"{/if} alt="" /></td>

throughout order_invoice.tpl. Now I know what I'm doing, I just need to change the properties after the {if $is_nomail eq 'Y'} to what I want, and it will appear on the printed version, but not the screen version.

So I can add printed version only text, etc. by putting
{if $is_nomail ne 'Y'}<h2>Printed version</h2>{/if}
etc.
__________________
X-Cart Gold Version 4.3.2
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:22 AM.

   

 
X-Cart forums © 2001-2020