Page 1 of 1

Hide Sub categories

Posted: Sat Jul 11, 2015 12:19 am
by mteverest
In my store, there are main categories with sub categories. I want to make all categories accessible via main menu only. At present, when visitor click on a category from main menu, OpenCart displays a page with its sub categories links at the top and available products just below that. I want to show only products not the links of sub category.

Can someone please advise which file i need to modify to achieve this.

Any suggestion is highly appreciated.

Thanks in advance.

Re: Hide Sub categories

Posted: Sat Jul 11, 2015 1:23 pm
by agatha65
To make your subcategories main categories you have to remove their parent links in the admin and to display them in the menu you have to check the checkbox top and save. This way all your categories will be top level categories.

But if you want to remove only the subcategory links in the category template you have to change the template code, even better controller code too, to speed up the page loading. This is very strange because the sub categories will be inaccessible.