Setting up Validation Rules

Validation rules allow you to set rules for how a voucher can be used. See below for some common validation rules. You can either create a validation rule while making a voucher in step 3 (Discount value), or you can set up validation rules before you create a voucher. The instructions below are for setting up validation rules before you create the voucher.

Want the voucher to be used for orders above $50 only? How about specific items or categories? Validation Rule's are the 🔑! You can set up validation rules on the Discount Value step during the creation or editing of a voucher.

Before you dive in with Validation Rules, here are some notes that you need before proceeding.

There are 2 modes:

  • Basic Builder - You are most likely to use the basic builder for basic operations. Filtering or allowing orders only with specifics like minimum amount, 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.
If there is a rule you are trying to set up that isn't detailed below, please email product@mryum.com
Most data inputs are case sensitive, so make sure you enter it exactly as it appears.

Setting up a validation rule prior to creating a voucher

These instructions show you how to setup a validation rule seperate to creating a voucher.

  1. Select Validation Rules in the left-hand menu
  2. Select the + icon in the top left-hand corner
  3. Give the validation rule a name
  4. Choose between Basic or Advanced.
  5. Add your validation rules.
Choose from the validation rules below.
  1. 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

  1. Select Order volume
  2. Tick Total amount
  3. 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

  1. Select Order
  2. 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.
For $10 minimum spend, you should enter is more than with a value of $9.99.

Valid only at a specific venue or venues

Advanced

  1. Select Order structure
  2. Tick Order Metadata
  3. Enter venueSlug in Select property and enter the venues slug in Value
    1. 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.
  4. Select Add

Basic

  1. Select Attributes match
  2. Under Order Metadata enter venueSlug in Select property and enter the venue slug in Value
    1. 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.
  3. Select Add

Discount items only in a specific category, menu category or section.

Category refers to the item category, ie food, drink or other. Menu category refers to the categories the customer sees after the select an ordering type.
  1. Select Basic type
  2. Select the Next step button
  3. Select Attributes Match icon
  4. Select Product Metadata
  5. 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
    1. For a menu category enter the following
      1. Select Property - menuCategorySlug
      2. Value - the slug of the menu category
    2. For a menu section enter the following
      1. Select Property - section
      2. Value - section name
      3. For an item category enter the following
        1. Select property - category
        2. Value - item category type (food, drink or other)
  6. Press Next Step and then Save

Discount specific menu items

You need to make sure you have added the products to Boomerang first. Learn how to do this here

Ecampl

  1. Select Basic type
  2. Select the Next step button
  3. Click Discounted products
  4. Under Find product, select the item you want the discount to apply to and press Add. Add as many items as you would like.
  5. Press Next Step and then Save

 

Don't discount special and items with price override

  1. Select Advanced type
  2. Select the Next step button
  3. Click Order Structure
  4. Tick Any order item's product metadata satisfy, Product metadata satisfy and Discount applicable to related products
  5. Under Product metadata satisfy enter hasPriceOverride in Select property and false in Value
  6. Press Next Step and then Save

 

Valid only for a specific ordering type

 

  1. Select Basic type
  2. Select the Next step button
  3. Attributes Match, then select order metadata
  4. Add property orderingType
    1. For single values use IS and enter the ordering type in Value
    2. For multiple values use IN and enter the ordering types in Value
  5. Click Add button
  6. Save and done

 

Limit to ordering type

  1. Select create validation rule
  2. Select Attributes Match, then select order metadata
  3. 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 senstive.
  4. Select Add button