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

I am trying to add an image in home.tpl...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-27-2006, 11:47 AM
 
thefizix thefizix is offline
 

Advanced Member
  
Join Date: Mar 2006
Location: San Deezy
Posts: 46
 

Default I am trying to add an image in home.tpl...

I am trying to add a banner advertisement above the featured products portion on my home page... I added the image source in skin1/customer/home.tpl. Then I placed the image source above the featured product code and it worked. But now my issue is that the banner advertisment is in everypage and I only want it for the main page. Please help?

www.shopthefizix.com
__________________
Conrad 'Rick' Alberto
San Diego, CA
www.TheFizix.com

X-Cart version 4.1.9
Reply With Quote
  #2  
Old 07-27-2006, 12:02 PM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

{if $main eq "catalog" or $current_category.category eq ""}

your code

{/if}
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 07-27-2006, 12:46 PM
 
thefizix thefizix is offline
 

Advanced Member
  
Join Date: Mar 2006
Location: San Deezy
Posts: 46
 

Default where do i insert this line of code?

Quote:
Originally Posted by pauldodman
{if $main eq "catalog" or $current_category.category eq ""}

your code

{/if}

where would I insert this line of code? I added it in the home.tpl and it still shows the banner on other pages.
__________________
Conrad 'Rick' Alberto
San Diego, CA
www.TheFizix.com

X-Cart version 4.1.9
Reply With Quote
  #4  
Old 07-27-2006, 01:24 PM
  fordy3's Avatar 
fordy3 fordy3 is offline
 

Advanced Member
  
Join Date: May 2006
Location: Yorkshire, England
Posts: 65
 

Default Re: where do i insert this line of code?

Quote:
Originally Posted by thefizix
Quote:
Originally Posted by pauldodman
{if $main eq "catalog" or $current_category.category eq ""}

your code

{/if}

where would I insert this line of code? I added it in the home.tpl and it still shows the banner on other pages.

In 4.1.0 this works if you just want to display on the main page...

{if $current_category.category eq ""}

YoUr CoDe

{/if}
__________________
David Ford
http://youroldbooksandmaps.co.uk

X-Cart Gold Version 4.6.0
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 02:57 PM.

   

 
X-Cart forums © 2001-2020