Setting up Validation Rules

Daragh Updated by Daragh

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.

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.
  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. Follow the instructions below for the type of validation rule you would like to create.
  5. Press Next Step and then Save

Valid only if the customers spends a certain amount

  1. Select Basic type
  2. Select the Next step button
  3. Select Order
  4. 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 $9.99

Valid only at a specific venue

  1. Select Basic type
  2. Select the Next step button
  3. Select Attributes match
  4. Under Order Metadata enter venueSlug in Select property and enter the venue 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.
  5. Select Add
  6. Select Next Step and then Save

Orders above $X

  1. Select Basic type
  2. Select the Next step button
  3. Click Order icon
  4. Next to Total amount you can add the minimum order value you would like the voucher to be valid for.
  5. Press Next Step and then Save

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 - menuCategory
      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
  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

How did we do?

How to add a product to Boomerang

Linking vouchers to mobile numbers

Contact