X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Which tpl produces the 'Printed Invoice'? (https://forum.x-cart.com/showthread.php?t=55658)

Sisom 09-22-2010 12:09 PM

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.

Sparks 09-22-2010 06:25 PM

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 :D

amy2203 09-22-2010 11:40 PM

Re: Which tpl produces the 'Printed Invoice'?
 
look at skin1/main/order_invoice_print.tpl

hth

Sisom 09-23-2010 12:50 PM

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.


All times are GMT -8. The time now is 11:20 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.