I am currently wrangling with facets. Getting facets to display on the SRCH, CGTY and PLST is a piece of cake, but now what I want to do:
If a parent category has a subcategory listing, but no products listed/assigned to that parent category, I want the category tree to display, and not the facets. I only want facets to display if there are products listed/assigned to that category. Sorry if this is boggled...that's where my mind is at. This is my latest attempt:
But I get nothing listed. No category tree/no facets on categories with no products.
What am I doing wrong? Tried several different ways to do this and am not getting there.
Jamie
If a parent category has a subcategory listing, but no products listed/assigned to that parent category, I want the category tree to display, and not the facets. I only want facets to display if there are products listed/assigned to that category. Sorry if this is boggled...that's where my mind is at. This is my latest attempt:
Code:
<mvt:if expr="'|'$toupper(g.screen)$'|' IN '|SRCH|PLST|CTGY|' AND 'l.settings:product_count GT 0'"> <mvt:item name="facets" /> <mvt:else> <mvt:item name="category_tree" /> </mvt:if>
What am I doing wrong? Tried several different ways to do this and am not getting there.
Jamie
Comment