I don't think that the products array natively contains a category reference, you'd have to first use something like CategoryList_Load_Offset_Product_Assigned() (And that returns all categories.) The safe way would be to populate a custom field or perhaps test for canonical_category.
Announcement
Collapse
No announcement yet.
Conditional Help for Search Results
Collapse
X
-
have you tried something like,
<mvt:foreach iterator="product" array="search_results:products">
<mvt:if expr="l.settings:category:code">
normal Search Results Layout code for the search_results:products array
<mvt:else>
</mvt:if>
</mvt:foreach>
Leave a comment:
-
Conditional Help for Search Results
I wonder if there is a conditional to use where search results would only display products that have a category assigned.Tags: None
Leave a comment: