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)
-   -   home_main.tpl - question (https://forum.x-cart.com/showthread.php?t=6407)

joelrhome 02-24-2004 08:33 PM

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 :D

shan 02-25-2004 06:50 PM

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

joelrhome 02-25-2004 07:15 PM

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?

joelrhome 02-25-2004 07:22 PM

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 :D


All times are GMT -8. The time now is 03:49 AM.

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