By Bill Smith on
I'm looking for a module or code snippet that could check a table showing the hours a business was open each day of the week and then display a message showing "now open" or "opens at x hour on y day."
Have searched forums and module listings with no success.
Any suggestions?
Comments
Something like this?
The queries would depend on the table structure, of course, but lets say you had a simple table called hoursofop with three columns (dayofweek, opentime, closetime) and seven rows (one for each day of the week)
Don't know if there's a module out there that would do it.
Let me know if you need a hand with that, or if I completely misunderstood what you're going for...
Personal: justinstanley.net
Nerdly: nerdliness.com
re: Open/Closed Hours
I'm in the process of trying to figure this out now too, but to throw a curveball into the equation, what would one do if there were multiple opening and closing times each day for a particular business, like some restaurants are open just for lunch hours and then close and then are open again for dinner hours. Otherwise your example would have helped me greatly, not sure how to pull it off.