Skip to main content
All CollectionsGlow Settings & Configuration
How can I setup custom order rules?
How can I setup custom order rules?
Brandon Swift avatar
Written by Brandon Swift
Updated over 3 years ago

You may find that awarding points based on the amount spent on an order doesn't fit the model exactly for how you'd like to run your loyalty program. For instance, if you only wanted to award points for orders over $50. Or perhaps you wanted to prevent customers with a specific email domain or to use a specific discount code from earning points; you can do that with custom order rules.

Order Rules can be accessed by navigating to "Rewards > Order Rules."

 

Here you can set-up specific conditions that, when met, will override the points a member would have normally received for their order. 


Here's an explanation on what each setting means:

Data Field - This is the field in "order information" that Glow will compare to your supplied value.

Operator - This tells Glow how to compare the two values

Value - This is a custom value which you supply (IE $50)

Points - This is the number of points awarded for the order if the conditions are met.

Example Configurations:

Award no points for orders under $50:

Data Field: Order Total
Operator: is less than
Value: 50
Points: 0

Award no points for orders with google.com in the email address:

Data Field: Customer Email
Operator: contains
Value: gmail.com
Points: 0

Award no points for discount codes with the prefix 'ABC-':

Data Field: Discount Code
Operator: contains
Value: ABC
Points: 0

Award 100 points for any order over $500:

Data Field: Order Total
Operator: is greater than
Value: 500
Points: 100

 Caveats and Considerations

  • Order rules are processed in the order which they are displayed on the Rewards > Order Rules screen

If a customer has a VIP multiplier set greater than one, it will be used when awarding points. So if the customer's multiplier is set to 2, and you have order rules set to award 100 points for an order, then that customer would receive 200 points.

Order Properties used for Order Rules

1. Order Total

Data Field: Order Total

Property: order.total_price

The sum of all line item prices, discounts, shipping, taxes, and tips in the shop currency. Must be positive.

2. Discount Code

Data field: Discount Code

Property: order.discount_codes[last].code

When the associated discount application is of type code, this property returns the discount code that was entered at checkout. Otherwise, this property returns the title of the discount that was applied.

3. Total Discounted Amount

Data Field: Total Discounted Amount

Property: order.total_discounts

The total discounts applied to the price of the order in the shop currency.

4. Gateway

Data field: Gateway

Property: order.gateway

5. Source Name

Data field: Source Name

Property: order.source_name

Values: web, pos, shopify_draft_order, iphone, and android

Orders created via the API can be assigned any other string of your choice. If unspecified, then new orders are assigned the value of your app's ID.

6. Customer Email Address

Data field: Customer Email Address

Property: order.customer.email

7. Customer State

Data field: Customer State

Property: order.customer.state

Values: disabled, invited, enabled, declined

8. Customer Tags

Data Field: Customer Tags

Property: order.cutomer.tags

Tags that the shop owner has attached to the customer, formatted as a string of comma-separated values. A customer can have up to 250 tags. Each tag can have up to 255 characters.

9. Customer Note

Data field: Customer Note

Property: order.customer.note

A note about the customer (String)

10. Customer Order Count

Data field: Customer Order Count

Property: order.customer.orders_count

The number of orders associated with this customer. (Number)

11. Customer Total Spent

Data field: Customer Total Spent

Property: order.customer.total_spent

The total amount of money that the customer has spent across their order history. (Number)

Related Articles 

Please let us know if you have any questions. 

Sincerely,
The Glow Team

Did this answer your question?