Testing a Promotion

In the Enterprise version of KonaKart a promotion can be put in test mode so that it can be tested in a live system by a predefined group of users. The test mode users are defined using a customer tag called PROMOTION_TESTER.

After a default installation of KonaKart, an expression is installed called PromotionTester which evaluates to true for all customers with the PROMOTION_TESTER tag set to true.

When in test mode, a promotion is only active for the set of test users that have the PROMOTION_TESTER tag set to true. The way that it works is that when a promotion is put in test mode, the PromotionTester expression rule is automatically added to the promotion.

In order to enable, disable or put a promotion in test mode, you can use the State drop list shown above. When a promotion is in test mode, the state in the array of promotions is displayed as an amber dot. An active promotion has a green dot and a disabled promotion has a red dot.

The name of the expression used to determine test users is defined by a configuration variable which can be set in the Admin App under Configuration >> Customer Details . The default expression is called PromotionTester but this may be changed to the name of any existing expression in order to use that expression for determining test users based on any of their tag values.