Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How can I remove Category names in the main window?

How can I remove Category names in the main window?

Locked

Views: 4,893

Results 1 to 20 of 29
This thread is locked. New replies are disabled.
13 May 2006, 6:02 AM
#1
tuckerm avatar

tuckerm

New Zenner

Join Date:
May 2006
Posts:
22
Plugin Contributions:
0

How can I remove Category names in the main window?

I've got a pic attached to illustrate what I mean. Ie.. when I click on a product category, in the main window the subcategories also display in the top area. Is there a way to disable this without modifying core code or if not, please advise me of how to remove this information (in illustration, the parts I don't want showing are circled.)

TIA,

Mike.

13 May 2006, 6:19 AM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: How can I remove Category names in the main window?

You can turn them off in

admin -> configuration -> layout settings -> Categories - Always Open to Show SubCategories

15 May 2006, 9:19 AM
#3
tuckerm avatar

tuckerm

New Zenner

Join Date:
May 2006
Posts:
22
Plugin Contributions:
0

Re: How can I remove Category names in the main window?

That step hides the categories from being displayed in the left menu, but not on the main page. Any other ideas?

15 May 2006, 9:53 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How can I remove Category names in the main window?

If I got your post correctly:

Go to your admin > configruation > layout settings > and set 'breadcrumbs' to "0" or off. Then the breadcrumbs will not display...

17 May 2006, 10:49 AM
#5
tuckerm avatar

tuckerm

New Zenner

Join Date:
May 2006
Posts:
22
Plugin Contributions:
0

Re: How can I remove Category names in the main window?

kobra:

If I got your post correctly:

Go to your admin > configruation > layout settings > and set 'breadcrumbs' to "0" or off. Then the breadcrumbs will not display...

Thanks for the reply, however that's not it. I've whacked an illustration (attatchment of my screen) in my first post and circled the areas I was meaning which is displaying regardless of yours or the original reply. I don't want to resort to cutting the code out of the file directly if I can help it.

Thanks,

Mike.

23 May 2006, 10:27 AM
#6
tuckerm avatar

tuckerm

New Zenner

Join Date:
May 2006
Posts:
22
Plugin Contributions:
0

Re: How can I remove Category names in the main window?

clydejones:

You can turn them off in

admin -> configuration -> layout settings -> Categories - Always Open to Show SubCategories

Still no solution to this. Dr Byte's suggestion disables categories in the categories bar on the left but not in the main window which I needed.

Further suggestions please. I've circled in my supplied illustration to show precisely what I mean, thanks.

Mike.

23 May 2006, 3:09 PM
#7
tuckerm avatar

tuckerm

New Zenner

Join Date:
May 2006
Posts:
22
Plugin Contributions:
0

Re: How can I remove Category names in the main window?

Got fed up with waiting forever and with people who cannot read clear English... Resulted to doing what I didn't want to do and deleting the crap direct from the code.

If you need something done in life, you need to do it yourself. It's free, yes, but the support is poor and the documentation Chinglish.:no: :no:

23 May 2006, 3:40 PM
#8
bryony avatar

bryony

Zen Follower

Join Date:
Dec 2005
Posts:
137
Plugin Contributions:
0

Re: How can I remove Category names in the main window?

There's no need to get shirty!

If you don't like what you get here for nothing, feel free to either make some positive changes for everyone's benefit or go and pay for your shopping cart elsewhere!

:smile:

26 May 2006, 9:58 PM
#9
pxsant avatar

pxsant

New Zenner

Join Date:
Feb 2006
Posts:
7
Plugin Contributions:
0

Re: How can I remove Category names in the main window?

I have exactly the same problem except the category shows twice. See the attached image. This is when you are displaying a product. In 1.2.7 the category does not display with the exact same settings.

27 May 2006, 2:21 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How can I remove Category names in the main window?

Images produce an ALT tag and the categories_name ...

In FireFox ... ALT tags on missing images will display as the categories_name and then display the categories_name ...

Hence the duplicates ...

You have the settings on the Product Info to show the Categories as well ...

27 May 2006, 8:43 AM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How can I remove Category names in the main window?

Original poster apparently solved his own problem, but was not community minded enough to share his solution.

So for anyone following this thread, here is a solution that you can use. I have tested it for just a couple of days so if you find a glitch please post it here.

This is only for version 1.3.x:

You should be using the override system and have a folder for your template files in the locations where you are altering files.

custom will be the folder for this example:

In your /includes/templates/custom/ folder create another folder named 'templates'

find the tpl_index_categories.php file located in the /includes/templates/template_default/templates/
folder and ftp it to your PC.

Use your editor, notepad or? and open the file and locate this code:

<!-- BOF: Display grid of available sub-categories, if any -->
<?php
/**
 * require the code to display the sub-categories-grid, if any exist
 */
   require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php');
?>
<!-- EOF: Display grid of available sub-categories -->

and delete all of this code from the BOF line to and including the EOF line.

Save it and FTP it to your custom folder: /includes/templates/custom/templates/

Now when you select a category, there will be no display of the sub-categories that reside under it. Use this only if you do not want them to display.

27 May 2006, 1:44 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How can I remove Category names in the main window?

Or ... to save pain and sorrow later for a quick fix ...

Just comment out this line in your override file ...

   // require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php');

This way you will know "what" you ripped out of the code in your override ... :smile:

3 Jun 2006, 12:04 PM
#13
tgs avatar

tgs

New Zenner

Join Date:
Jun 2006
Location:
Toronto,ON, Canada
Posts:
15
Plugin Contributions:
0

Re: How can I remove Category names in the main window?

To remove categories on the main page...

In the admin panel, go to Configuration>Layout Settings

Towards the lower middle, change "Categories - Always Show on Main Page"

3 Jun 2006, 1:49 PM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How can I remove Category names in the main window?

I believe this was a bit more indepth in that the categories were not wanted to display at all on the main page when a Category was selected from the Cat box ...

I could be mistaken ... this is but my first cup of coffee ... :unsure:

3 Jun 2006, 1:53 PM
#15
tgs avatar

tgs

New Zenner

Join Date:
Jun 2006
Location:
Toronto,ON, Canada
Posts:
15
Plugin Contributions:
0

Re: How can I remove Category names in the main window?

I may have misunderstood the issue at hand...

I am new to Zen and I found this post when I was trying to solve a problem I was having. I had the categories listing in the center area of the main entry page.

I'm just having my morning coffee :)

4 Jun 2006, 7:57 AM
#16
qisahn avatar

qisahn

New Zenner

Join Date:
Jun 2006
Posts:
28
Plugin Contributions:
0

Re: How can I remove Category names in the main window?

seriously, i give this guy credit that no one answered his qn..

however, there is no need to be so rude here.

Categories-Tabs Menu ON/OFF

that this the settings u shld have changed. a bit of try and error wld have given u the answer actually.

4 Jun 2006, 8:23 PM
#17
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How can I remove Category names in the main window?

Sorry, the Categories-Tabs Menu was not what the OP was talking about. The fix was posted above by Kobra.

24 Aug 2007, 2:39 PM
#18
ralphd avatar

ralphd

New Zenner

Join Date:
Oct 2005
Posts:
2
Plugin Contributions:
0

Re: How can I remove Category names in the main window?

This can be disabled in Admin>Product Listing>Show SubCategories on Main Page while navigating - set this to 0

24 Aug 2007, 3:03 PM
#19
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How can I remove Category names in the main window?

Good to have this update for the thread. I expect this option didn't exist a year and some ago or else Ajeh would have mentioned it... she writes the code, after all...

MMMM wait a minute - it's not the product listing the OP was talking about. Actually I don't understand the usefulness of what he wanted, but he wanted a category with subcats (and no immediate products) to not show the subcats when the top cat was selected. I guess he had a reason...

5 Aug 2010, 9:12 PM
#20
beep avatar

beep

New Zenner

Join Date:
Nov 2008
Location:
London
Posts:
94
Plugin Contributions:
0

Re: How can I remove Category names in the main window?

Ajeh:

Or ... to save pain and sorrow later for a quick fix ...

Just comment out this line in your override file ...

// require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php');

> 
> This way you will know "what" you ripped out of the code in your override ... :smile:

Hello,
Long ago this change was made to my site. I would like to know how to restore the ripped code so that subcategory names display once more and I can then just hide or unhide them at will or using css. 
I have searched in developer tool for the code changes you posted but couldn't find them. What other code might have been removed from which files? 

www. r a g a n d m a g p i e .co.uk