| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
home_main.tpl - question | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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 |
|||||||
#2
|
|||||||||
|
|||||||||
use home.tpl and add code such as
Code:
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 |
|||||||||
#3
|
|||||||
|
|||||||
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? |
|||||||
#4
|
|||||||
|
|||||||
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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|