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)
-   -   companyname_small.gif (https://forum.x-cart.com/showthread.php?t=64286)

rwalker 07-13-2012 07:22 AM

companyname_small.gif
 
Hello

I have a modified logo as above appearing on the /common_files/mail/html/order_invoice.tpl

I'm just wondering how I would prevent the logo from appearing on the screen version displayed immediately after 'Order Confirmation'.

Can anyone assist me with this query?

Thanks

Robert

X-Cart 4.4.1

cflsystems 07-13-2012 07:30 AM

Re: companyname_small.gif
 
Look in the order_invoice.tpl - there is an if statement in most div/td tags about the styling - classes apply for onscreen invoice and "style" applies for the email invoice. Just use the same logic to show the logo for email invoice only

rwalker 07-13-2012 08:29 AM

Re: companyname_small.gif
 
Thanks for the suggestion - I'll give it a try.

Robert

rwalker 07-16-2012 05:11 AM

Re: companyname_small.gif
 
Tried but failed to understand the logic. This is what I have which I understand controls the company image. Is ita question of adding a wrap around the image statement to limit it to the email confirmation - if so would you mind demonstrating so I can understand for future occurances?

Many thanks

<td colspan="3" {if $is_nomail eq 'Y'}class="invoice-company-icon" {else}style="vertical-align: top; padding-top: 0px;"{/if}>
<img src="{$ImagesDir}/companyname_small.gif" alt="" float: right; />
</td>

cflsystems 07-16-2012 07:06 AM

Re: companyname_small.gif
 
Code:

<td colspan="3" {if $is_nomail eq 'Y'}class="invoice-company-icon" {else}style="vertical-align: top; padding-top: 0px;"{/if}>
{if $is_nomail eq 'Y'}&nbsp;{else}<img src="{$ImagesDir}/companyname_small.gif" alt="" float: right; />{/if}
      </td>


rwalker 07-16-2012 09:00 AM

Re: companyname_small.gif
 
Many thanks Steve,

Do you have a link to a site where I can see a summary of commands etc. Something like W3schools?

My regards

Robert

cflsystems 07-16-2012 09:07 AM

Re: companyname_small.gif
 
php.net and smarty.net - XC uses PHP and Smarty templates. This is way beyond just a simple list of commands.


All times are GMT -8. The time now is 02:08 PM.

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