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

Hiding category

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-29-2007, 04:57 PM
 
ponyboy ponyboy is offline
 

Member
  
Join Date: May 2007
Location: Los Angeles, CA
Posts: 12
 

Default Hiding category

Greetings,

Is there a way to not display a category name but still have it active? There's a category I would like to add that I don't want to display along with the other categories but I still would like to add products to it and have it linked to via the speed bar. Is this possible?
__________________
X-Cart Gold 4.19
Red Hat Enterprise Dedicated Linux
Apache 2.x
PHP 5.25
mySQL 5.023
MMP 3, Buy Together, 1 Page Checkout
Reply With Quote
  #2  
Old 07-30-2007, 12:14 AM
  scoobie's Avatar 
scoobie scoobie is offline
 

Advanced Member
  
Join Date: Dec 2006
Location: Sydney
Posts: 84
 

Default Re: Hiding category

In Categories Management, just change the enabled dropdown from yes to no for the category you wish to hide.
__________________
X-CART 4.1.8 (Add-Ons: onSale, CDSEO, AOM, Thickbox)
PHP 4.4.4
SQL 4.1.21
Linux O/S
Reply With Quote
  #3  
Old 07-30-2007, 04:41 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Hiding category

Not sure that will work...if you disable it, I don't think you can access it. There was a 'hidden categories' mod in the Custom Mods forum a while back...
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 07-30-2007, 02:54 PM
  DataViking's Avatar 
DataViking DataViking is offline
 

eXpert
  
Join Date: Jan 2003
Location: Las Vegas, NV
Posts: 361
 

Default Re: Hiding category

the category products list you should modify the "<xcart_dir>/skin1/customer/main/subcategories.tpl".

1) add the following code:

{if $subcat.categoryid ne 249 and $subcat.categoryid ne 250}

right after these strings:

<table cellspacing="0" cellpadding="5" width="100%"> {foreach from=$subcategories item=subcat}

where 249 and 250 are the category IDs which you need to hide.

If you want to hide only one category (i.e. Logos, its ID is 249) you should add this string:

{if $subcat.categoryid ne 249}

instaed of

{if $subcat.categoryid ne 249 and $subcat.categoryid ne 250}

2) add the following string:

{/if}

just before these strings:

{/foreach}
</table>
{/if}

If you have problems applying the modification, I can do it for you for you
__________________
Web Design Web Design and Custom X-Cart Projects

http://www.dataviking.com

Mention the forums for discounts!
x-cart Version 4.1.8
Reply With Quote
  #5  
Old 09-25-2007, 05:52 PM
 
LittleLizard LittleLizard is offline
 

Member
  
Join Date: Jun 2007
Location: Atlanta
Posts: 27
 

Default Re: Hiding category

I made this modification but the category is still showing in the menu. Is this just for subcategories? I have a primary category I want to hide in this fashion.
__________________
www.littlelizard.com
X-Cart version 4.1.8
Reply With Quote
  #6  
Old 02-07-2008, 11:56 PM
  LoveHurts's Avatar 
LoveHurts LoveHurts is offline
 

Advanced Member
  
Join Date: Mar 2007
Posts: 39
 

Default Re: Hiding category

Hello, i intrested to in this modification !!!!! (was possible in my old cartversion)
i've to clean up my categories.. there are full, i dont wanna loose some products en make them available for search.

but unfortunely; the guy answer for subcategories.. hehe

Maybe i can make an (/if) statement anywhere else? if that make sense?

somebody ? grt sensationrecords.com
__________________
Core version: 5.3.4.4
PHP: 5.6
Web server: Apache
---stll running a---
x-cart PRO 4.1.6 [unix] updated to 4.1.9
Belgium
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:00 PM.

   

 
X-Cart forums © 2001-2020