-
1 Attachment(s)
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.
-
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
-
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?
-
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...
-
Re: How can I remove Category names in the main window?
Quote:
Originally Posted by 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.
-
Re: How can I remove Category names in the main window?
Quote:
Originally Posted by 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.
-
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:
-
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:
-
1 Attachment(s)
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.
-
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 ...
-
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:
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.
-
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 ...
Code:
// 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:
-
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"
-
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:
-
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 :)
-
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.
-
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.
-
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
-
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...
-
Re: How can I remove Category names in the main window?
Quote:
Originally Posted by
Ajeh
Or ... to save pain and sorrow later for a quick fix ...
Just comment out this line in your override file ...
Code:
// 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
-
Re: How can I remove Category names in the main window?
// require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php');
change back to:
require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php');
Vger
-
Re: How can I remove Category names in the main window?
Quote:
Originally Posted by
Vger
// require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php');
change back to:
require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php');
Vger
Thank you, however, I searched for this in developer tool and there was no result so I check the files for the same code without the // and this code active not commented out. Is there something else which could be missing?
-
Re: How can I remove Category names in the main window?
Could you try a search, in the Developers Tool Kit, for:
category_row
Are you finding anything commented out?
-
Re: How can I remove Category names in the main window?
Nope, 6 page results but nothing commented out. This leads be to beleive something was removed rather than commended out.
-
Re: How can I remove Category names in the main window?
I figured it out! I had forgotten I had made a custom copy of the file with this section of code completely removed. To fix it I just deleted the custom file.
:smile: Beep
-
Re: How can I remove Category names in the main window?
I have just the opposite problem. I want the sub-categories to show up on the main page when I click the main category.
I am on version 1.3.9g
I have set "show categories on main page" set to 1
I have Show Sub-categories also set to show and they show up in the Category box.
When I click on the main category I see the sub-category in the side box but they do not show up on the main page. I checked the code referenced above and all seems well.
I know that it is something simple, i have hda two cups of coffee and I can not find it.
Help!
-
Re: How can I remove Category names in the main window?
Check the setting in the Configuration ... Index Listing ...
Quote:
Show SubCategories on Main Page while navigating
Show Sub-Categories on Main Page while navigating through Categories
0= off
1= on
-
Re: How can I remove Category names in the main window?
Hi Linda.
Thanks for replying. I was not able to locate either of those setting in the config/index listing but I was able to figure out what was wrong!
I was moving categories and had placed a subcategory into a category with product while I was working on it. I had not yet finished and that what was causing the subcategories from not showing. As soon as I moved the rest of the product out of the main category and into the new category it was fixed. It was one of those wacky goofy things that happen when you put a subcategory into a category containing product!!
-
Re: How can I remove Category names in the main window?
Thanks for the update that you resolved the problem and for pointing out an issue with what happens if you try to have Products and Categories in a Category ... :smile: