Jump to content

Avoid products in parent category


Recommended Posts

Hi,

 

I have a shop with many categories and subcategories.

 

I think I am missing something and even googling I could not find a solution for a very simple problem:

 

How do I avoid that products in a subcategory are also displayed in the parent category? I assume the answer is simple...

 

Thanks in advance for your replies,

 

Jeroen

Link to comment
Share on other sites

To really avoid, you probably need to recode some files. If your list of categories is quite static, maybe it's easier to create some SQL query and periodically check in your database if you make that error.

 

I once needed the opposite: I wanted to find subcategories, where their products were NOT in it's main category. I came to something like this:

 

http://www.prestashop.com/forums/topic/219351-need-to-find-all-products-without-main-category/

 

(N.B. This quesry expects only 2 layers of categories

Home

-Main category ('top' level)

- - subcategory (sub level 1)

 

If you have some SQL experience, you might be able to create from this what you need.

 

 

My 2 cents,

pascal

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...