VIP & Happy Hour (or timed special) Discounts without Triggers

Actions

Now we’ll set up all of the Automation required to make this work… first, define the Actions…

Store current PriceList Indicator (optional)

This is a simple visual indicator that we can use in various areas of the program, and it is optional since it is not required by any of Rules or Constraints, but it is nice to have.

Action Type: Update Program Setting
Setting Name: PriceList
Setting Value: [:PriceList]
Update Type: Update
Is Local: False


###Store HH Day(s) and Start/Stop Times

We will use this action to set Happy Hour Day(s) and Start/Stop Times.

Action Type: Update Program Setting
Setting Name: [:HHname]
Setting Value: [:HHvalue]
Update Type: Update
Is Local: False


###Update Ticket State VIP

We will use this action to update the VIP State of the Ticket. If a VIP Customer is assigned to the Ticket, the VIP State will be Active. If there is no Customer assigned, or if the assigned Customer is not a VIP, the VIP State will be InActive.

Action Type: Update Ticket State
State Name: VIP
State: [:VIPState (Active or InActive)]


###Update Order State DiscountType

This action will be used to update the Order DiscountType State of HH, VIP, or ND (No Discount).

Action Type: Update Order State
State Name: DiscountType
State: [:DiscountType State]


###Tag Order Discount

This action will apply an Order Tag to set the Discount Amount for the Order, based on the Order DiscountType State.

Action Type: Tag Order
Order Tag Name: [:DiscountName]
Order Tag Value: [:DiscountType]
Order Tag Price: [:DiscountPrice]


###UnTag Order Discount

This action will remove an Order Tag to UNset the Discount Amount for the Order, based on the Order DiscountType State.

Action Type: Untag Order
Order Tag Name: [:DiscountName]
Order Tag Value: [:DiscountType]

1 Like