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

companyname_small.gif

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-13-2012, 07:22 AM
 
rwalker rwalker is offline
 

Member
  
Join Date: Jan 2009
Posts: 10
 

Default 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
__________________
4.1.11 gold
Reply With Quote
  #2  
Old 07-13-2012, 07:30 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
tartaglia (07-13-2012)
  #3  
Old 07-13-2012, 08:29 AM
 
rwalker rwalker is offline
 

Member
  
Join Date: Jan 2009
Posts: 10
 

Default Re: companyname_small.gif

Thanks for the suggestion - I'll give it a try.

Robert
__________________
4.1.11 gold
Reply With Quote
  #4  
Old 07-16-2012, 05:11 AM
 
rwalker rwalker is offline
 

Member
  
Join Date: Jan 2009
Posts: 10
 

Default 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>
__________________
4.1.11 gold
Reply With Quote
  #5  
Old 07-16-2012, 07:06 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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>
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #6  
Old 07-16-2012, 09:00 AM
 
rwalker rwalker is offline
 

Member
  
Join Date: Jan 2009
Posts: 10
 

Default 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
__________________
4.1.11 gold
Reply With Quote
  #7  
Old 07-16-2012, 09:07 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:15 AM.

   

 
X-Cart forums © 2001-2020