WebPI: hide products with "searchExclude" attribute

This commit is contained in:
ruslanht 2012-12-18 12:40:06 +02:00
parent 06fa3d494f
commit 0817269e1b

View file

@ -219,6 +219,12 @@ namespace WebsitePanel.Server.Code
continue;
}
if (product.GetAttributeValue("searchExclude") != null)
{
// skip it, this is internal not visible product
continue;
}
if (string.IsNullOrEmpty(filter))
{
products.Add(product);