Validation rules allow you to set parameters for voucher redemptions. This is useful if you want the voucher to ONLY be validated on orders above $50, or on specific items.
So, you're ready to learn more about Validation Rules...
You can set up validation rules on the Discount Value step during the creation of a voucher, or you can set them up before hand. These instructions will guide you through the process of creating validation rules before creating a voucher.
Before you dive in with Validation Rules, there are a few things you need to know first.
There are 2 modes:
- Basic Builder - You are likely to use the basic builder for most operations. Filtering orders, minimum order rules, applying a discount to a specific item or allowing orders that are under a certain ordering type. It's more for determining which conditions allow the voucher. This DOES NOT include altering any cart items.
- Advance Builder - This type will be used when you want to alter the cart items such as discounting only a set of products be it under a section, category, menu category, or very specific products. It can also be used to exclude a certain range of products. If you are discounting a product, you should select the ITEMS first under the Apply discount to section (see below) then tick the Discount applicable to related product when filtering out a product by metadata.
Setting up a validation rule prior to creating a voucher
These instructions show you how to setup a validation rule separate from creating a voucher.
- Select Validation Rules in the left-hand menu
- Select the + icon in the top left-hand corner
- Give the validation rule a name
- Choose between Basic or Advanced.
- Add your validation rules.
- Press Next Step which will take you to the Summary page and then select Save.
Validation Rules
Valid only if the customer has a minimum cart value.
Use this if you want the voucher to only be valid if the customer spends a minimum amount.
Advanced
- Select Order Volume
- Tick Total Amount
- Set the condition as is more than, enter the minimum amount the customer needs to have in their cart for the voucher to be valid.
Basic
- Select Order
- Next to Total amount, set the condition as is more than, enter the minimum amount the customer needs to have in their cart for the voucher to be valid.
Valid only at a specific venue or venues
Advanced
- Select Order Structure
- Tick Order Metadata
- Enter venueSlug in Select property and enter the venues slug in Value
- To set up a validation rules for multiple venues, choose in as the condition and then in Value enter each venue slug and then hit enter.
- Select Add
Basic
- Select Attributes Match
- Under Order Metadata enter venueSlug in Select property and enter the venue slug in Value
- To set up a validation rule for multiple venues, choose in as the condition and then in Value enter the venue slug and then hit enter and repeat as many times as needed.
- Select Add
Discount items only in a specific category, menu category or section.
- Select Basic type
- Select the Next step button
- Select Attributes Match icon
- Select Product Metadata
- Under ANY item in cart has custom attributes (metadata) enter for the following information
For condition, use is for single values and in for multiple values
- For a menu category enter the following
- Select Property - menuCategorySlug
- Value - the slug of the menu category
- For a menu section enter the following
- Select Property - section
- Value - section name
- For an item category enter the following
- Select property - category
- Value - item category type (main, dessert, kid, etc)
- For a menu category enter the following
- Press Next Step and then Save
Discount specific menu items
Example
- Select Basic type
- Select the Next step button
- Click Discounted products
- Under Find product, select the item you want the discount to apply to and press Add. Add as many items as you would like.
- Press Next Step and then Save
Example using POS ID
- Select Advanced type
- Select Add Items and then + Select
- Select Find and Apply Filters
- Select Custom Attributes (metadata)
- Select Filter by New metadata attribute
- Set property to 'pos_id', condition as what is needed
- Add the POS ID to the value field.
Don't discount special and items with price override
- Select Advanced type
- Select the Next step button
- Click Order Structure
- Tick Any order item's product metadata satisfy, Product metadata satisfy and Discount applicable to related products
- Under Product metadata satisfy enter hasPriceOverride in Select property and false in Value
- Press Next Step and then Save
Valid only for a specific ordering type
- Select Basic type
- Select the Next step button
- Attributes Match, then select order metadata
- Add property orderingType. Ordering types are: dine-in, pick-up & delivery. Note these are case sensitive.
- For single values use IS and enter the ordering type in Value
- For multiple values use IN and enter the ordering types in Value
- Click Add button
- Save and done
Limit to ordering type
- Select create Validation rule
- Select Attributes Match, then select order metadata
- Add property orderingType and select IS for single or IN for multiple values
Ordering types are: dine-in, pick-up & delivery. Note these are case sensitive.
- Select Add button
Limit a voucher to one use per customer
- Select create Validation rule
- Select Basic type
- Select Budget
- Scroll down to Redemptions per customer and enter 1 after Per Code is less than or equal
Comments
0 comments
Please sign in to leave a comment.