![]() |
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 |
use home.tpl and add code such as
Code:
{if $cat eq 5} wher cat it the category id where you dont want your code to appear |
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? |
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.