Announcement

Collapse
No announcement yet.

Conditional Help for Search Results

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bruce - PhosphorMedia
    replied
    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.

    Leave a comment:


  • gsam
    replied
    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:


  • greggc
    started a topic Conditional Help for Search Results

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

This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

Accept