Notice I ended up not using the Custom Tags as I mentioned because you wanted just a single item. If you were doing multiple items or wanted variable items per hour you could use custom tags and read that tag instead of the actual Menu Item Name.
This is a great way to do Happy Hour… and BTW @Gerlandog Using this method along with Custom Tags might solve your issue you had long time ago with a trigger initiated Happy Hour… If you were in middle of an order that started before happy hour but it crossed into happy hour before the order was finished… you could simply cancel the order and re-add it and it would have correct price keeping the current ticket and all other items in tact so you would have no need to close the ticket to load a price list.
PS In fact I think this would be the best approach for Happy Hour.
Great sample. I’m sure @gerlandog will love this idea as it allows to implement happy hour without using triggers and it immediately stop applying price tags if happy hour period ends in the middle of order adding process.
@emre the only way I could see to improve this is to add a Tag that could read the current Day. Maybe improve {DATE:X} so you can use it similar to {DATE:X}EqualsSaturday as a custom constraint? Or is this already available and I just have not figured it out yet?
Ok I was wrong lol that worked… Great thank you @emre.
So basically add {DATE:ddd} Equals Sat to make it run ONLY on Saturday. So in summary this method allows specific days and times of day to run a happy hour and it will react instantly in middle of an order… This is exactly what @gerlandog was wanting few months back I hope he sees this.
This would be a great way to run promotions too. I think I am going to really play with it some more. I could even use this.
My goodness I have been not paying attention lately. I see that @QMcKay basically did this same thing in a more robust way already in a previous post. Well @Hasa you have several methods to think about hahaha.
I remember that now. I am really not sure why we didnt catch on then. I guess it took a specific need and desire to build it and then the interest shifted. Although I would think @gerlandog would have been interested haha