Welcome to Vortx Community Forum, where you can ask questions and receive answers from the staff at Vortx and other members of the community.

If you had a user account on our previous forums website, you will need to register a new account here.

Learn more about...


Limit search results to main product - don't show variants

Has anyone figured a way to limit the search results to show only the parent item and not return all the variants? My guess would be to change the query or stored procedure. Has anyone had any experience with this that would be willing to share thier solution?? Thanks
asked Nov 11, 2014 in MultiStore by tmurphy (340 points)

1 Answer

0 votes
If you haven't changed much out of the box (and I'm guessing you're on a 9.nnn), the search should be using the XML package page.search.xml.config.  In that XML package you'll see a call to a stored procedure, and in the list of parameters for it you'll see "@ViewType = 0".  Change that to "@ViewType = 1" and it should not return all the variants, just the default one.
answered Dec 3, 2014 by Vortx Joe (550 points)