I have a 2 meals for £11 promotion, the guest can choose 2 items from a selection and get any 2 for £11.
I created a Product Tag
“2for11 Deal” and those products that are part of the promotion contain 1
in that tag.
I am then checking Order Added to Ticket
, updating order state and triggering an automation command to check for promotions on a ticket.
When the automation command is executed, I am checking {ORDER STATE QUANTITY TOTAL:Promo1}
to see if a multiple of 2 of the promotional items are on the ticket, and if so, then use Add Order
to add an order with the promotional discount.
Now, what I want to happen is whenever the automation command is executed, it also checks if any promotion is already added to the ticket, and if so, remove it, then recalculate the discount again based on the total promotion orders on the ticket.
For example, if 4 promotional items are added, the ticket now contains 2x 2 meals for £11 promotions (which will equal £22). I only want to maintain one order item “2 meals for £11” to show the total discount.
I am struggling to delete (cancel) the previous “2 meals for £11” order. I have tried using Cancel Order
(I am not sure what to use for the Group Tag
and have tried multiple things to no success) and also tried Select Order
to select the existing “2 meals for £11” order then attempt to cancel it, but I can’t get that working.
If it’s easier I am also happy to have multiple “2 meals for £11” orders (one for each promotion of 2 items) but I felt that is going to be difficult to keep track of, and remove if one or more of the promotion items are cancelled or voided. That’s why I went with the approach to constantly recalculate the promotion and therefore I would be enforcing the rules on every ticket change.
Any suggestions on what I can do?