Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 6 of 6

Thread: Show Multi-Variant Product Only Once in Search Results

  1. #1
    sspmurphy is offline Member
    Join Date
    Feb 2007
    Posts
    86

    Default Show Multi-Variant Product Only Once in Search Results

    Anyone know how to show a product that has multiple variants only once in search results?

    Currently, if I have a product with six variants, the product will show up six times in search results (duplicate results linked to the product page). I only want it to show up once.

    Thanks!

  2. #2
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    You will need to modify the page.search.xml.config or the page.searchadv.xml.config, if you're using the advanced search feature...

  3. #3
    sspmurphy is offline Member
    Join Date
    Feb 2007
    Posts
    86

    Default

    Hey Jao,

    Could you provide a snippet/methodology for doing this?

    Thanks

  4. #4
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    On the page.search.xml.config, comment out the highlighted parts of the following section on the Product template:
    Code:
                      <xsl:value-of select="$pName"  disable-output-escaping="yes" />
                      <xsl:if test="vName!=''">
                        <xsl:value-of select="$vName" />
                      </xsl:if>

  5. #5
    matts8008 is offline Junior Member
    Join Date
    Nov 2009
    Posts
    10

    Default

    Just tried this and it didnt work.

    What does work is changing @ViewType in page.search.xml.config to 1.

  6. #6
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    Well, yes, because the ViewType actually toggles the result to show all the variants or a specific (one) variant only.