Jump to content

(SOLVED) How to show only subcategories & hidding the main category?


Recommended Posts

Hello Sir/Madam,

Can somebody teach me how to show only subcategories & hiding the main category? For example:

Women:
Bag
Cloth
Jean
Short

=> to only

Bag
Cloth
Jean
Short


I am using PS1.3.6. Please advice and help, I have tried to search around the forum, but I still cannot find a suitable solution for this problem. Please give me a help, thanks a lot and much appreciated.

Link to comment
Share on other sites

Hi,

I would be interested in this solution too!

I'm completely new to Prestashop and using 1.4. I tried to solve my problem with using the suggestion of this thread:

here

...but it didn't work - pehaps because of newer version??

Thank you for any help.

Link to comment
Share on other sites

I changed this by edit the blockcategories.php

function getTree($resultParents, $resultIds, $maxDepth, $id_category = 1, $currentDepth = 0)

to

function getTree($resultParents, $resultIds, $maxDepth, $id_category = 45, $currentDepth = 0)

45 is the category id which is all my targeted subcategories are located inside.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...