php-store-hours icon indicating copy to clipboard operation
php-store-hours copied to clipboard

Exception Messages

Open coryetzkorn opened this issue 10 years ago • 1 comments

I am playing around with your php store hours app from GitHub. I was wondering if there a way to have a special message (i.e.: Happy Mother’s Day) assigned to a date that would be display with that specific exception date. Ultimately it would be awesome to have something like this being pulled from the exception array:

  • We are open today from: 8am to 9pm Happy Mother’s Day

OR

  • We are open today from: 8am to 2pm Merry Christmas

Would you create another array for that specific date? Like: $exceptions = array( '12/25' => array( '8am - 2pm’, ‘Merry Christmas' ),

I think this would make it a more personal experience to the visitor.

coryetzkorn avatar Sep 08 '15 15:09 coryetzkorn

@coryetzkorn did you ever get anywhere with this suggestion? I'm looking to implement something like this. If I end up creating something functional, I'll submit it. No promises...haha!

alexsmacd avatar Nov 25 '19 15:11 alexsmacd