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)
-   -   Hiding category (https://forum.x-cart.com/showthread.php?t=32875)

ponyboy 07-29-2007 04:57 PM

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?

scoobie 07-30-2007 12:14 AM

Re: Hiding category
 
In Categories Management, just change the enabled dropdown from yes to no for the category you wish to hide.

balinor 07-30-2007 04:41 AM

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...

DataViking 07-30-2007 02:54 PM

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

LittleLizard 09-25-2007 05:52 PM

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.

LoveHurts 02-07-2008 11:56 PM

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


All times are GMT -8. The time now is 02:36 PM.

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