Conditions

Screenshot_2020-04-29_at_19.12.41.png Getting started

This article will teach you about conditions, their types, and how to configure them. Conditions are used to determine whether a customer is eligible to get a promotion.

Conditions can be found in the

Promotions > Conditions / list

At the Conditions / list window Filters (1) can be found which will help search for a specific type of conditions, and the list of Conditions (2) itself, which allows for searching conditions by name, editing, deleting, and adding new ones. 

Screenshot_2022-09-14_154342.png
Visualization of the Promotions, Conditions / list

 

info2.svg  RememberConditions and Actions are integral to Promotion Rules. All three can't be used individually. You can learn more about actions and rules in the Actions and Rules articles

Table of contents:

  1. Conditions / list
    1. Filters
    2. Conditions
  2. Creating new condition
  3. Condition types
    1. Discount code in cart
    2. Discount code is empty in cart
    3. Order value
    4. Check if SKU(s) exist
    5. Active alt shop
    6. Sum of quantities from SKU list
    7. Prima port ID in cart
    8. Count of orders
    9. Days from last order
    10. Voucher in cart
    11. Empty gift of choice in the cart
    12. Delivery method
    13. Payment method
    14. Customer title
    15. Regular account
    16. Order items count
    17. Promotion rules active in cart

 


Screenshot_2020-04-29_at_19.12.41.png Conditions / list

Filters

Filters are the first tab in Conditions / list. It is used to narrow the results in the Conditions list.

(1) Is active? - Shows only active or inactive conditions.

(2) Type - Shows only active or inactive conditions.

(3) Two buttons:

Screenshot_2022-09-14_161027.png
Visualization of Filters, Conditions / list

 

Conditions

The conditions list is the main tab in this module. Here new conditions can be added (1), bellow there is a search field (2) that will filter out conditions names to typed letters. The table list itself (3) contains several columns, these are:

Screenshot_2022-09-14_163202.png
Visualization of Filters, Conditions / list

 


Screenshot_2020-04-29_at_19.12.41.png Creating new condition

The condition has three fixed options that will stay the same (1), these are:

There are also two (2) configurable options that determine its behavior, these are:

Screenshot_2022-09-15_152600.png
Visualization of Filters, Conditions / list

 

info2.svg  RememberJSON is a light-weighted format to exchange data. More about this format you can learn from here.

 

Screenshot_2020-04-29_at_19.12.41.png Condition types

The type of condition defines what it's supposed to look for when calculating cart items and values. Here are described all types of conditions and their parameters

 

Discount code in cart

This condition checks if there is a discount code in the cart (more about discount codes can be found in the Discount codes article).

info2.svg  Remember
Since this condition type is so general and lacks any parameters. There is usually one of this type in the environment.

 

Discount code is empty in cart

This condition checks if there isn't a discount code in the cart.

info2.svg  RememberSince this condition type is so general and lacks any parameters. There is usually one of this type in the environment.

 

Order value

This condition checks the current cart value.

 

Check if SKU(s) exist

This condition checks if the product SKUs from the selected array are present in the cart.

 

Active alt shop

This condition checks the altshop. This type is deprecated and unused. Promotion rules already are able to filter altshops.

 

Sum of quantities from SKU list

This type sums up all pieces from the SKU list set in the parameters.

 

Prima port ID in cart

This type of condition is no longer supported since Prima port is no longer used.

 

Count of orders

This type count the number of orders in the customer account.

 

Days from last order

This condition count passed days from the last order.

caution.svg  Warning  If there are no order-matching rules defined by parameters, the condition will return 999 days. We strongly recommend pairing this condition with "Count of closed orders > 0"

 

Voucher in the cart

This condition verifies whether there is applied promotion code in the cart.

 

Empty gift of choice in cart

This condition will check if the customer chooses a certain, empty gift from the Gift of choice action type. You can learn more about actions in the Actions article.

 

Delivery method

This type checks chosen delivery method.

 

Payment method

This type checks chosen payment method.

 

Customer title

This type checks current customer title.

 

Regular account

This type checks if a customer is logged in to a registered account (not one-time).

 

Orders item count

This type checks the number of items in the cart.

 

Promotion rules active in cart

This type checks if a set of rules is active in a cart. A rule is considered an active one when its conditions are met. A rule with no conditions is always considered as active. It is important to remember to set a sort order in a rule with this condition to a high value, so it is read last by the promotion module.


Revision #2
Created 27 November 2024 21:06:21 by Tau Ceti
Updated 27 November 2024 21:28:23 by Tau Ceti