How to add time rule on product?

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.

You can not use Matches all because it can not be both after 5:30 and before 3:00 at the same time that is impossible.

You would need two rules one for after 5:30 and one for Before 3:00 and matches all for the time and item name.

if Matches used for

> Time Before 3:00
> Time After 5:30
> Menu item name Equals Soda

That will mean…

(Time Before 3:00 OR Time After 5:30) AND Menu Item Equals Soda.

Matches operator groups constraints by left side. Groups compared inside with OR and against other groups with AND. So Two Time left side values compared with or and Menu Item Name compared with and

… but I think this is a formatting issue. We can try HHmm formatting and use numeric comparison instead.

HHmm converts…

3.30 PM to 1530

(1530 < 1500 OR 1530 > 1730) AND MenuItem is Soda. That won’t cancel

7.00 PM to 1900

(1900 < 1500 OR 1900 > 1730) AND MenuItem is Soda. That will cancel.

what @Jesse posted is true that is where i was wrong and @emre thankyou for the detail concept.

so i have to use matches