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

Link to Hosting website - on home page only

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-19-2005, 08:20 PM
 
williamstpeter williamstpeter is offline
 

Newbie
  
Join Date: Mar 2005
Location: Australia
Posts: 2
 

Default Link to Hosting website - on home page only

Hi,

I made a deal with my web hosting company to reduce my hosting charge. The deal is that I place a link (small advert really with a hyperlink) to their website on my website.

They have requested the link only appears on my home page. How can I do this?

I have learnt a lot about x-cart in the last three during the set up period - the website only went live a month ago, but this has got me stumped.

I have the ad_banner module installed on my website, but this doesn't have the option to restrict the advert to the home page only.

Any help appreciated.
__________________
Peter Timothy Williams

X-Cart 4.1.10 gold
Reply With Quote
  #2  
Old 07-20-2005, 04:06 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Use this:

Code:
{elseif $main eq "catalog" and $current_category.category eq ""}[img]{$ImagesDir}/hostlogo.jpg[/img]{/if}

Be sure to put the host's logo in skin1/images.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-20-2005, 04:50 AM
 
williamstpeter williamstpeter is offline
 

Newbie
  
Join Date: Mar 2005
Location: Australia
Posts: 2
 

Default

Thank you very much. I changed the "elseif" code to "if" and everything worked great. I placed the code in the "bottom.tpl" file.

Thanks once again.
__________________
Peter Timothy Williams

X-Cart 4.1.10 gold
Reply With Quote
  #4  
Old 07-20-2005, 04:54 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Oops...sorry...pulled that code off home_main.tpl and forgot to get rid of the else. Glad you figured it out
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce 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:16 AM.

   

 
X-Cart forums © 2001-2020