Skip to Content
Menu
This question has been flagged
1 Odpoveď
11654 Zobrazenia

I want to filter on ALL product that are in a category that are not a child of a category.

example : I have 6 categories: A , A/B, A/B/C, A/D, A/D/E. I want all product not in A/B category and sub-categories(like A/B/C). In clear I want A, A/D and A/D/E.

In this example I can list all the categories I want but in fact I've too much categories to list them.

How can I do?

Avatar
Zrušiť
Autor Best Answer

Sorry, I forgot the '!' domain operator , I use domain="['!',('categ_id','child_of',[5,25,37])]".

I've to read the doc before posting.

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
feb 24
13311
1
mar 15
5187
2
mar 24
1792
3
sep 25
624
1
sep 25
2010