WebPI: hide products with "searchExclude" attribute
This commit is contained in:
parent
06fa3d494f
commit
0817269e1b
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue