Post by mteverest » Sat Jul 11, 2015 12:19 am

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.

User avatar
Newbie

Posts

Joined
Sat May 17, 2008 8:46 am
Location - Dhulikhel, Nepal

Post by agatha65 » Sat Jul 11, 2015 1:23 pm

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.

Suppliers Module - XML, CSV, XLS Product Feed Import and Update
Rich Snippets | Facebook Open Graph Meta Tags | WebP Images
Image


User avatar
Active Member

Posts

Joined
Fri Mar 16, 2012 10:18 am
Location - Canada, QC
Who is online

Users browsing this forum: No registered users and 65 guests