I have a menu that I am building and there is a single item that has a different price from 6am-11am and then normal price anytime other then that. I figured I should aproach this by using a trigger to enter the discounted price mode then another to leave the discounted price mode.
I got the triggers done now I went into the actions and chose the execute automation command action type
Now for Automation Command Name I chose Default Change Price.
What would I insert into the command value and the Delay?
Dont worry we all are what I meant was we can probably define some custom tags for those products… in your case that single product. When it is added to the ticket we can read it via Order Added Rule and we can make it check some constraints for the Custom Tag and for Time etc to determine which price it should be.
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.