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

Hiding a category from the side bar

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-02-2004, 01:47 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default Hiding a category from the side bar

I'm sure this is simple to do but am not sure how to do it. I have a "free gifts" category but I don't want the category name on display in the categories menu on the left hand side. I gather the code would have to go into categories.tpl near the category looping statement below?

Code:
{section name=cat_num loop=$categories} <font class=CategoriesList>{ $categories[cat_num].category_name|escape }</font>

Some sort of an "if" statement perhaps? I'm using 3.5.4.

Thanks

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote
  #2  
Old 08-02-2004, 02:25 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default

I believe it's as simple as "disabling" it an admin side and then linking to products in it. If you want to link to the whole category, you'll need to keep it enabled and change this:

Code:
<font class=CategoriesList>{ $categories[cat_num].category_name|escape }</font>

to:
Code:
{if $categories[cat_num].categoryid ne freecatid} <font class=CategoriesList>{ $categories[cat_num].category_name|escape }</font> {/if}

and change freecatid with what ever categoryid number the free category is.

Hope that helps!

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #3  
Old 08-02-2004, 04:25 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default

Thanks for this Carrie, and also for the other hacks of yours I've just done!

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote
  #4  
Old 08-26-2004, 07:32 AM
 
zilker zilker is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 89
 

Default

Very nice tweak, thanks so much. I was at the point in a current project where I needed something like that. Funny thing is, I wasn't searching for it when I stumbled across this post.

Lucky? Fortunate? Who cares but thx again.
__________________
~zilker

uummm...perhaps you should tell me again.

http://www.designertrends.com
Version 4.0.6
Unix
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 03:53 AM.

   

 
X-Cart forums © 2001-2020