Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Moran 285 posts 934 karma points
    Jun 28, 2013 @ 08:00
    Moran
    0

    Searching multiple product types

    I am using 3 different product type in my store, but I see the search function is only for type "Product".

    string ProductTypeName = "Product";

    Is there a way to make the search compatible for multiple product types? without making the user choose the product type before searching?

    I am using tea-commerce version 3.0 based on umbraco 6.02  

  • Rune Grønkjær 1372 posts 3103 karma points
    Jun 28, 2013 @ 08:30
    Rune Grønkjær
    0

    Hi Moran,

    It's just regular Umbraco Examine and razor. You can just remove the ProductTypeName part of the search razor file and then it will display other types.

    You will also need to look at the examine config settings. Here's a nice walkthrough on how to use examine:

    http://umbraco.com/follow-us/blog-archive/2011/9/16/examining-examine.aspx

    Hope that helps

    /Rune

  • Moran 285 posts 934 karma points
    Jun 28, 2013 @ 08:59
    Moran
    0

    If I will comment out all the parts related to the "ProductTypeName" pameter ,doing it carefully of course, the default behavior will be to search all of the products?

  • Moran 285 posts 934 karma points
    Jun 28, 2013 @ 10:58
    Moran
    0

    Tahnks :)

    I did some adjustments to the code and in the "ExamineIndex.coinfig" file I have added the following

     <IndexSet SetName="ProductIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/ProductIndexSet/">
        <IncludeNodeTypes>
          <add Name="Product"/>
          <add Name="CarProduct"/>
          <add Name="MarineProduct"/>
        </IncludeNodeTypes>
      </IndexSet>
  • Rune Grønkjær 1372 posts 3103 karma points
    Jun 28, 2013 @ 11:03
    Rune Grønkjær
    0

    Yes. That was exactly what you needed to do :)

    /Rune

Please Sign in or register to post replies

Write your reply to:

Draft