Announcement

Collapse
No announcement yet.

Conditional Help for Search Results

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

    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.

    #2
    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>


    Gary

    [email protected]
    www.icCommerce.com

    Comment


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

      Bruce Golub
      Phosphor Media - "Your Success is our Business"

      Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
      phosphormedia.com

      Comment

      Working...
      X