- 05 Sep 2022
- 1 Minute to read
- Print
- DarkLight
How can I prevent inactive Web Products to be found in Global Search?
- Updated on 05 Sep 2022
- 1 Minute to read
- Print
- DarkLight
Enterprise edition
In order to hide web products in the store when buyers should no longer be able order certain products they can be deactivated. This can be done by unchecking the Active field. In that case all OrderCentral components will prevent this product to be displayed and ordered. However users can still be able to find it through the global search. This article explains how to prevent this from happing.
The feature you can utilize for this is called Restriction rules. These can be found on the Web Product configuration when browsing to the Setup -> Object Manager -> Web Product -> Restriction Rules. Follow the next steps to create a new rule:
- Click New Rule
- Enter a Name, Full Name and Description
- Check Is Active
- In User Criteria select the criteria so that it matches all your shop users (profile id, user type, etc.)
- In Record Criteria enter the following details
- Criteria Type => Record field
- Field => Active
- Operator => Equals
- Type => Boolean
- Value => False
- Click Save
You can test the rule by deactivating one of the products, login to the shop and search for the specific product in the Global Search.
Ultimate edition
In order to hide web products in the store when buyers should no longer be able order certain products they can be deactivated. This can be done by unchecking the Active field. In that case all OrderCentral components will prevent this product to be displayed and ordered. However users can still be able to find it through the global search. This article explains how to prevent this from happing.
The feature you can utilize for this is called Scoping Rules. These can be found on the Web Product configuration when browsing to the Setup -> Object Manager -> Web Product -> Scoping Rules. Follow the next steps to create a new rule:
- Click New Rule
- Enter a Name, Full Name and Description
- Check Is Active
- In User Criteria select the criteria so that it matches all your shop users (profile id, user type, etc.)
- In Record Criteria enter the following details
- Criteria Type => Record field
- Field => Active
- Operator => Equals
- Type => Boolean
- Value => True
- Click Save
You can test the rule by deactivating one of the products, login to the shop and search for the specific product in the Global Search.