This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:redeeming_coupons [2013/09/15 21:29] admin [Canceling and Submitting Promotion Orders] |
en:redeeming_coupons [2013/09/16 04:47] (current) |
||
---|---|---|---|
Line 123: | Line 123: | ||
===== Creating Operator Feedbacks ===== | ===== Creating Operator Feedbacks ===== | ||
- | We’ll show a message to let operator understand why coupon code is not working. | + | We’ll show a message to let operator understand why coupon code is not working. Let's create a “Show Message” action. |
- | + | ||
- | We’ll start by creating a “Show Message” action. | + | |
+ | {{:en:promotions:coupons30.jpg?700|}} | ||
When we call this action it displays a modal message to user. We’ll set message text from rule so we’ll configure Message parameter as a variable. [:Message] syntax creates a new value named as message. | When we call this action it displays a modal message to user. We’ll set message text from rule so we’ll configure Message parameter as a variable. [:Message] syntax creates a new value named as message. | ||
+ | |||
Now we’ll create another rule to check Coupon Status and display a message if it is already scanned. We’ll use “Ticket Entity Changed” rule for this. | Now we’ll create another rule to check Coupon Status and display a message if it is already scanned. We’ll use “Ticket Entity Changed” rule for this. | ||
- | When Loaded coupon Redeem Status is “In Ticket” we’ll display a message. Before displaying the message we’ll also remove coupon from ticket header. | ||
- | Now we’ll create another rule to test if Coupon is already Redeemed. I’ll clone this rule and change related values. | ||
+ | {{:en:promotions:coupons31.jpg?700|}} | ||
+ | |||
+ | When Loaded coupon Redeem Status is ''In Ticket'' we’ll display a message. Before displaying the message we’ll also remove coupon from ticket header. | ||
+ | |||
+ | We need another rule to test if Coupon is already Redeemed. I’ll clone this rule and change related values. | ||
+ | |||
+ | {{:en:promotions:coupons32.jpg?700|}} | ||
+ | |||
+ | On Custom Constraints section we’re checking if selected entity is a Coupon and if yes we’re checking it’s status. If it is ''Yes'' we’ll display a message to warn user. | ||
+ | |||
+ | Now test it to see how it works. Since our previous coupon is already redeemed change it’s Redeemed value to No or create another one by selling a coupon. | ||
+ | |||
+ | You can test these cases: | ||
+ | - When we double scan a coupon code in a ticket we should see “Coupon already scanned” message. | ||
+ | - When we submit a coupon and scan it again it should display “Coupon already redeemed” message. | ||
+ | |||
+ | {{:en:promotions:coupons33.jpg?700|}} | ||
+ | |||
+ | Our Coupon Management System is ready. Now we can sell and give free items with coupons. | ||
+ | * Back to [[Promotion Coupons Documentation]] | ||
+ | * Next Topic > [[Printing Coupons]] |