Glossary Item Box

Squirrelcart v6.1.0

Rule Types

Overview

There are several different types of rules to check against specific types of information. Each rule type has different conditions available to it that fit with the type of rule chosen. They are used to designate the overall information the rule needs to look at. The type of rule is chosen using the Type field on the rule. Each rule type is described below, along with the conditions that are available for it.

Computer/Browser

This rule type allows you to match conditions against information specific to the customer's computer and browser. The available conditions include:

Customer

This rule type allows you to match conditions against information specific to the customer's user account. The user must be logged in for this rule to be able to check conditions. If the customer is not logged in, conditions on this rule type will fail. The available conditions include every field in the Customers table.

Date

This rule type allows you to match conditions against information specific to the current date and time. There is only one single condition available to this rule type "Current Date and Time", which can be matched in many different ways.

Order (last completed)

This rule type allows you to match conditions against information specific to the last order a logged in user has placed. This rule will check the user's last order, and return true if that order matches the conditions specified. The available conditions include:

Order (any completed)

This rule type allows you to match conditions against information specific to a single order previously placed. This rule will check all orders the logged in customer has placed, and return true if any single order matches all the conditions specified. The available conditions are exactly the same as shown above for the Order (last completed) rule type.

Order (in progress)

This rule type allows you to match conditions against information specific to the order currently in progress (in the cart). The available conditions include:

  • Category: Quantity From - this allows you to choose one or more categories, and specify the number of items that should be from those categories.
  • Coupon Code - this allows you to check coupon codes entered by the customer
  • Field: * (every field in the Orders table)
  • Product Quantity Total - this is the total number of units on an order. If they have 3 of Item A in the cart, and 2 of Item B, the "Product Quantity Total" would be 5.
  • Product: Quantity - this allows you to choose one or more products, and specify how many of those products must be in the order
    Orders (completed - cumulative)

    This rule type allows you to match conditions against cumulative information from all prior orders for the logged in customer. For example, to check the total spent on all orders to date. The available conditions include:

  • Category: Quantity From - this allows you to choose one or more categories, and specify the number of items that should be from those categories.
  • Field: * (every field in the Orders table that can be added together)
  • Number of Orders
  • Number of Products
  • Product: Quantity - this allows you to choose one or more products, and specify how many of those products must be in the order

     

    By default, the Orders (completed - cumulative) rule type will check against all prior orders for the logged in customer. If you wish to only check orders that match certain criteria, a Rule Filter may be used. See the Rule Filter topic in this section for more information. 

     

  •  

     


    © 2001-2017 Lighthouse Development. All Rights Reserved.