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

home_main.tpl - question

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-24-2004, 08:33 PM
 
joelrhome joelrhome is offline
 

Advanced Member
  
Join Date: Dec 2003
Posts: 89
 

Default home_main.tpl - question

I have a custom tpl consisting of a table with icon links to categories within the site. i want it display on all of the pages except for one category. I think i need to edit the home_main.tpl file, but i dont know how. could someone please help me?

I am using x-cart 3.5.4
Reply With Quote
  #2  
Old 02-25-2004, 06:50 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

use home.tpl and add code such as

Code:
{if $cat eq 5} {else} add your include code here {/if}

wher cat it the category id where you dont want your code to appear
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 02-25-2004, 07:15 PM
 
joelrhome joelrhome is offline
 

Advanced Member
  
Join Date: Dec 2003
Posts: 89
 

Default

I tried to place this code in home.tpl

{if} $cat eq 249}
{else}
{include file="customer/key_cat.tpl"}
{/if}

underthis:


{include file="customer/home_main.tpl"}
{if} $cat eq 249}
{else}
{include file="customer/key_cat.tpl"}
{/if}


When I did that, my page became completely blank and I could not see anything at all until i removed the code from the home.tpl.
Did I do something wrong?
Reply With Quote
  #4  
Old 02-25-2004, 07:22 PM
 
joelrhome joelrhome is offline
 

Advanced Member
  
Join Date: Dec 2003
Posts: 89
 

Default

I added the code into the home_main.tpl
<** under this**>
{elseif $main eq "catalog"}
{include file="customer/main/subcategories.tpl" cat=$cat}
<** I added this**>
{if $cat eq 249}
{else}
{include file="customer/key_cat.tpl"}
{/if}


<**and it worked**>


I just couldnt give up without trying almost everything to get it to work.

Thanks for the help
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 11:42 AM.

   

 
X-Cart forums © 2001-2020