Show only subcategories on category page OpenCart 2.0 free module

We make another free module today “Show only subcategories on category page OpenCart 2.0 free module” when enabled to category page then you will be able to see sub-categories of the active Category as a heading.

Download “Show only subcategories on category page OpenCart 2.0 free module” from the link below:
Download Show only subcategories on category page OpenCart 2.0 free module
Download Show only subcategories on category page OpenCart 2.2 free module

The module will look like below:

Only Sub Categories at Product Page
Only Sub Categories at Product Page

Admin section will look like:

Only Sub Categories at Category Page admin
Only Sub Categories at Category Page admin

This is an extension for opencart 2.0 and 2.2 that I modify the Category module so it only displays the current top-level category page’s sub-categories. For example, if I am on the “Laptops & Desktops” category page, the sidebar module would only list the sub-categories associated with “Laptops & Desktops” category, such as “Macs” and “PCs” with the main heading “Laptops & Desktops” (And not list or show any of the other top-level categories).

Installation:

  1. Unzip the downloaded folder.
  2. Upload the files in the root folder to your server, no file is overwritten.
  3. Then activate the Only Sub-Categories module.

Activating the Only Sub-Categories module:

  1. After uploading files to servers, it’s time to install Only Sub-Categories module
  2. We are showing the Only Sub-Categories module at the right or left column of the Category page (Category Layout).
  3. Go to Admin section
  4. Then click on Extensions on the left menu
  5. After that Click Modules and go to Only Sub-Categories in the modules list
  6. Then click the Green button for the Only Sub-Categories to install the module (see the image below)
  7. Then click blue edit button
  8. After that, you will see the form which has the status field, select Enabled and then click the Save button.
  9. Your module is active and is ready to use in the layout.

Setup layout for the sidebar Only Sub-Categories module at the left column of category page:

  1. From the admin section go to System >> Design >> Layouts.
  2. You will see a list of layouts, from which edit the Category layout.
  3. Then click Blue add the button to add rows at the module section which is shown in the image below:
  4. Second, you choose the Only Sub-Categories in module column and Column left in the Position column and insert the sort order as required.
  5. Then click save button

Your custom category page is ready with the Only Sub-Categories module in the left column.

Previous articleRegex to find the four sequential characters in PHP
Next articleHow can we remove index.php?route= in OpenCart for contact, home and other
Author of three Opencart book. The recent Opencart 4 book is at https://amzn.to/4dOlbOR

21 COMMENTS

    • Yes it is comapatible with Opencart 2.0.1.1
      I am not sure about specific theme, if your theme support default modules then it works.
      But if they customize the module for their use then we need to change the catalog/view/theme/default/module/onlysubcategories.tpl file to match the design.

      functionality it works, only problems may be with design.

      Thanks

  1. Hello,
    HI see this error

    Cannot find language file ‘…/2015/catalog/language/english/module/onlysubcategories.php’ in …/2015/system/engine/factory.php on line 551

    whats wrong?

  2. Notice: Error: Could not load template D:/wamp/www/catalog/view/theme/default/template/default/template/module/onlysubcategories.tpl! in D:\wamp\www\system\library\template\basic.php on line 26

    • Hi,

      Someone is using “ASD” name and commenting uselessly in Hindi.
      He does not describes his problem, just saying this module is not working and I am faking it.

      Whomever is this?
      Can you please describe your problems and errors that you are getting so that we can solve it?

      As you can see I have showed you images how this works and shown you similar ways to install module.

      Please keep in mind, I am providing this for free and have tried to solve everyone problems. If you want full support then please go with commercial one 🙂

      I will keep on posting module thinking that it will be helpful for someone.

      Thanks
      Rupak

  3. Hello Rupak,

    I am new in opencart. Please tell me how to solve the 404-page error. This page is not call in my opencart website.
    The accordion is not work in the left category.

  4. Hi.

    I have been using this extension in OC 2.0.3.1 and its great. Are there any plans to release it for 2.3.0.2.
    Have tried the 2.2 version to see if it would work but i get a permission error when i try to enable it.

    Many thanks
    Malc.

  5. Hi,

    I hope you can help me because I really want this to work! I keep getting the same error after installing and double checking the files are where they should be:

    Notice: Error: Could not load template /var/www/vhosts/89/283358/webspace/httpdocs/pressanykeyincorporated.nl/catalog/view/theme/default/template/default/template/module/onlysubcategories.tpl! in /var/www/vhosts/89/283358/webspace/httpdocs/pressanykeyincorporated.nl/vqmod/vqcache/vq2-system_storage_modification_system_library_template_basic.php on line 26

    Can you tell me what is causing this? Thanks!

    Laure

  6. Question:

    I created the category as follows:
    “Category” :- “List of Shops” :- “Vinod Furniture Shop”

    Now I want to create a “User” with rights of editing/uploading products only placed under the subcategory “Vinod Furniture Shop”.

    If this is possible to create an extension for following?

  7. Question:

    I created the category as follows:
    “Category” :- “List of Shops” :- “Vinod Furniture Shop”

    Now I want to create a “User” with rights of editing/uploading products only placed under the subcategory “Vinod Furniture Shop”.

    If this is possible to create an extension for following?

  8. Hello,
    thanks a lot for this usefull module. Just one problem for me is that module no display od sub – sub category, only on parent or first category. How can I fix it, please?
    Milo

  9. Hello,
    thanks a lot for this usefull module. Just one problem for me is that module no display od sub – sub category, only on parent or first category. How can I fix it, please?
    Milo

LEAVE A REPLY

Please enter your comment!
Please enter your name here