- 04 May 2022
- 1 Minute to read
- DarkLight
Preventing product sales in a location
- Updated on 04 May 2022
- 1 Minute to read
- DarkLight
This validation rule will prevent any product sale in the specified location. Customers and admins alike won't be able to purchase any product available in this location's inventory.
You can find your Location reference via Settings > General settings on the Admin Panel.
Make sure you copy and save it before starting the rule setup
Log in to dashboard.nexudus.com if you aren't already.
Click Settings > Validation rules.
Click Add rule.
Click on Manual entry.
Name your rule.
Add a Description of the rule.
Enable the This rule is active toggle.
Select Product sale in the Record type drop-down list.
Add the Error message to display if the validation rule is not met.
Add the following snippet in the Formula field.
record.Business.Id <>
- Add your Location reference at the end of the Formula field.
Your validation rule should now look like the example below, with your own location ID instead of 123456 in the Formula.
Click the Save Changes button.
Your validation rule is now live. Customers and admins alike shouldn't be able to purchase any product from this location.