Exclude rules for product listing pages
Exclude rules for product listing pages
In the Product listings manager of the Coveo Merchandising Hub (CMH), merchandisers can define Exclude filter rules to hide specific products from Product listing pages (PLPs).
Exclude filter rules can apply to all product listing pages or to a specific product listing page only.
![Listing page exclude filter rule screenshot | Coveo](/en/assets/images/coveo-for-commerce/images/cmh/cmh-plp-exclude-rule.png)
Use case examples
Exclude filter rules can be used to address a variety of use cases. Here are a few examples:
-
You want to ensure that out-of-stock products aren’t displayed on PLPs. For example, you can create a rule to exclude products where the
in_stock
attribute value isFALSE
. -
You want to ensure that products with certain undesirable attributes aren’t shown on a PLP. For example, you can create a rule to exclude products where the
brand
attribute value isAcme
.
Prerequisites
To create rules, merchandisers must ensure they have properly configured their query pipeline and chosen the correct tracking ID to ensure that their changes impact the intended listing pages.
Create an include rule
To create a rule:
-
In the CMH, access the Product listings manager.
-
From the navigation tabs, select Filter rules.
-
Click Create filter rule, and then,
-
Depending on whether you want to apply the exclude rule to a specific listing page or to all listing pages, select the appropriate option.
-
-
Select the Locale for which the exclude rule will apply. By default, a rule applies to all available locales.
-
Select the Listing page to which the exclude rule will apply, and then click Done. Note that if you selected to apply the exclude rule to all listing pages, you won’t be able to select a listing page.
-
Under Choose an action, select Exclude.
-
Under Attribute, select the attribute on which you want to apply the exclude rule. For example, if you want to exclude products based on the
color
attribute, select color. -
Under Operator, select the operator that you want to use.
-
Under Value, select the attribute value that you want to use to filter products. For example, if you want to filter products based on the
color
attribute, enter the color value that you want to use as a filter, such as red. Note that you can select multiple values for the attribute. -
(Optional) If you want to add more attribute-value pairs to the exclude rule, click Add attribute and repeat the process.
-
Click Done.
Leading practiceYou can preview the effect of your rules by using the Preview panel on the right side of the page. You can use this panel to see how the rule affects the products on the listing page for a given locale.
-
Review your rule configuration, and then click Publish.
-
In the Publish now panel, enter a meaningful name for your rule, and then click Publish. The rule now applies.
Manage existing exclude rules
To manage an existing exclude rule:
-
In the CMH, access the Product listings manager.
-
From the navigation tabs, select Exclude rules.
-
Locate the rule you want to manage.
-
Click Modify. You can now decide to edit the rule or delete it.