help with else statement
-
Hi,
So I want to use this excellent plugin for my opening times. However, some shops are open twice a day and it’s getting messy. The main point is though I want it to be able to check all opening times and if open display open text and if not display a closed text. this is a sample of what I have so far
[time-restrict-repeat type=”weekly” onday=”Monday” offday=”Monday” ontime=”11:30:00″ offtime=”14:00:00″]
We’re open – Order Now
[/time-restrict-repeat][time-restrict-repeat type=”weekly” onday=”Wednesday” offday=”Wednesday” ontime=”11:30:00″ offtime=”14:00:00″]
We’re open – Order Now
[/time-restrict-repeat][time-restrict-repeat type=”weekly” onday=”Wednesday” offday=”Wednesday” ontime=”19:00:00″ offtime=”21:00:00″]
We’re open – Order Now
[/time-restrict-repeat][time-restrict-repeat type=”weekly” onday=”Thursday” offday=”Thursday” ontime=”11:30:00″ offtime=”14:00:00″]
We’re open – Order Now
[/time-restrict-repeat][time-restrict-repeat type=”weekly” onday=”Thursday” offday=”Thursday” ontime=”19:00:00″ offtime=”21:00:00″]
We’re open – Order Now
[/time-restrict-repeat][time-restrict-repeat type=”weekly” onday=”Friday” offday=”Friday” ontime=”11:30:00″ offtime=”14:00:00″]
We’re open – Order Now
[/time-restrict-repeat]etc etc
how do I get it to display “Sorry we are closed” text if no conditions matched?
- The topic ‘help with else statement’ is closed to new replies.