I am a novice at PHP, but I know that this should be pretty simple. I would greatly appreciate any help!
I am working on an online ordering system for a pizzeria, and I need the ordering system to be automatically hidden after business hours. Basically I just have content on pages that I want to show during business hours, and show something else during off hours.
The basic IF statements would be like this since I don’t really speak PHP.
If time = Monday through Saturday from 11am to 9pm or Sunday 11am to 8pm, show the online ordering content as usual.
If time = outside of business hours, hide all that content and replace with “Our Restaurant is currently closed. Try again later.” or something of that nature.
I do speak HTML, so I am capable of altering the content within this snippet to suit my needs. If I had a template of this snippet, I could easily switch out numbers and text and stuff like that so it is correct. I’m just not capable of writing the correct syntax in PHP.
I’m sure this would be a snap for someone who knows what they are doing. Obviously I would love free advice, but I am willing to pay a little bit for this little snippet because I plan on using it on many projects.
THANKS!!!
Greg