How to add time rule on product?

i want to achieve this if a certain product from menu is selected check if it doesnot fall in certain time range then cancel product from order

i am trying this but i think i calling a wrong event

i think you need to use order added to ticket rule not order cancelled

i have try that also not working

ill try that to see if its working for me

working just fine for me


Eg>Impossible To order soda from 21:00 to 22:00

I think you made a mistake
You did
Before 15:30
After 17:30
You need
after 15:30
Before 17:30

ok will try this way

no not working

note your condition is matches and mine condition is matches all

I checked it works Whatever the case

I checked it works Whatever the case

You are trying to prevent the sale of Hitea between
15:00 to 17:30???

ya i have try with matches only then its working
i tried this its working


but dont know why the matches all constraint not working

if You are trying to prevent the sale of Hitea between
15:00 to 17:30
You need
after 15:30
Before 17:30
and You did
Before 15:30
After 17:30

fix this and try…
edit:i can see you fix dhis now
matches all will work also now

i am trying to have the sale between 3 to 5:30
if the time is not in this range then cancel

ahhhhh ok
after 17:30
before 15:30
should work

i tried it also didnt work

as i said it i put “not matches any” its working but not “not matches all” or if i put this way it is also working

try
i have the sale between 15:00 to 17:30 if the time is not in this range then its cancel

I did not understand the problem if its working on matches
you need to sale this item only between 15:00 to 17:30
its what you wanted right?

@madiha as I can see from your system clock you are using AM/PM formatted time. As it receives time format from system that may not work.

Try {DATE:HHmm} instead of {TIME}. You can find an example on this screenshot.