• Do you have any plans of making an option to show upcoming Holidays and special opening hours and closing days?

    I understand that you can make a code similar to this:

    [open class="hours-right closed-bold" day_format="full_date_month_nos" regular=false start="2022/12/23" end="2023/01/03"]

    However, with the above option you’d need to enter such a code some time prior to the exception and or holiday.
    I’d like to see a more ‘automated’ way to see upcoming Exceptions or Holidays.

    Perhaps it could be combined with an option where you group some dates entered as Exceptions or Holidays and name them (i.e. Easter, Christmas, etc.)
    These can then be used to show upcoming exceptions and/or holidays and a text like i.e. Please remember the Easter holidays from April X to April Y.

    It would be nice if you could enter the number of days or weeks prior to the dates, where the upcoming holidays should be shown to customers.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Design Extreme

    (@designextreme)

    Thanks @kimfrederik for the feature request.

    You’re right about using the parameter: regular=false along with a date range. You can use a relative day here rather than a date (so it shows all special hours from today with X days in view).

    [open regular=false start=0 end=31]

    I’ll see what I can do to extend this – perhaps with an enclosure that will only show it’s content if it’s true, something like this:

    [open_special start=0 end=180]We have our holiday opening hours coming up:
    [open sentence regular=false start=0 end=180]
    [/open_special]

    As this is a feature request, I will be able to add a response when this feature is added. I do think it is a good idea and I’ve wanted to do this within my own websites (as I mentioned before in this forum).

    Plugin Author Design Extreme

    (@designextreme)

    With the named dates, this is something else that has come up before… The current structure of the code does make it a little tricky to introduce the word replacements to the full dates (or days). There are weekday name replacements already in play, but these only work to replace the words: “Monday”, “Tuesday”, … (in the current language).

    I will look into this again at some point.

    Brian

    (@briansedero)

    Bumping this as I also would love to see the named dates implemented!

    Plugin Author Design Extreme

    (@designextreme)

    Thanks for your addition, @briansedero . I will look into this feature soon.

    I would like to see the ability to add your own holiday schedule for whatever period of time you like and select whether you are open for business on a given holiday (and specific hours if different from regular hours). To elaborate, say you close early on Christmas Eve, instead of the open widget showing:

    Monday | 9am – 5pm
    Tuesday | 9am – 5pm
    Wednesday | 9am – 5pm
    Thursday | 9am – 5pm

    Instead it would show something like this:

    Monday | 9am – 5pm
    Christmas Eve | 9am – 12pm
    Christmas Day | Closed
    Thursday | Closed

    I would think a form similar in layout to the following could give you the “inputs”:

    Holiday Open-Time Close-Time Date ClassName
    Christmas Eve 9:00am 12:00pm 12-24-2023 xmase
    Christmas Day Closed 12-25-2023 xmas

    Leave the holiday name empty to display the regular day name – so as above that would be “Thursday”. Obviously the syntax of the date/time formats used are illustrative. Theoretically the “calendar” could be loaded up for several years in advance.

    Also the ClassName field would be so you could target certain elements (holidayName / holidayHours) with css to make them stand out in the display:
    /* OPEN HOURS CUSTOM HOLIDAYS CSS */
    .day-name.xmas {color: green;}
    .day-name.xmase{color:red}
    .hours.xmas,.hours.xmase {background-color:green;color:white;}

    And that would appear in the widget output like so:

    <th class=”day-name xmase”>Tuesday</th>
    <td class=”hours xmase”>9am – 1pm</td>

    If this could be stored, read and cached from a text file at the server with an expiry value for cache to expire and reload, I would think this could be a valuable feature.

    • This reply was modified 1 year, 8 months ago by obewanz.
    Plugin Author Design Extreme

    (@designextreme)

    @obewanz This is a great idea and I’ll be implementing something very similar. I will use the custom day names as the source of its class name (with letter replacements). This will allow you to add your own styling.

    I could also just have a new class included such as “date-2023-03-08” which would offer the same options, albeit more generic.

    @designextreme I’m not exactly sure how you would implement those custom day names, and maybe we are saying the same thing, but on the off chance we are not, here is my logic behind what I stated above:

    If you allow the admin to assign their own className, css would be very straightforward, you already have to read the custom day name anyway so not a big deal to grab that className at the same time, and what that does is allows every holiday to have it’s own color (or even background field) customization based on very specific selectors to any given holiday, either grouped together – as in ALL xmas gets the same styling regardless of year – OR – you can assign xmas23 and xmas24 so that both years could have different presentations but similar scheme. If you use only the custom day name and or add random letters – it becomes much more difficult to manage. As a business owner who manages my own website – it’s very important to me to keep maintenance needs of the site to a minimum. Since my scheduled hours don’t really change all that much, I’d be better off to use a custom html widget and just format a table of hours and list my closed holidays below. Your plugin allows me to present a dynamic presentation that I find useful – but there is a limit on how much time I can or am willing to spend on the whole issue.

    That said, here is a link to an example of what could be accomplished using the schema I presented in my previous post. I didn’t bother to change the day names from say “Tuesday” to “Christmas” – but I think everyone can see the possibilities here. To further elaborate on the idea of what could be done more simply with this approach would be using a css background and position style to place a graphic behind the text – such as a somewhat transparent Santa and Sleigh or Holly Leaves behind the word “Christmas” – by targeting the day-name class plus the custom className (day-name xmas), or a Turkey for Turkey day, Pumpkin or Spider Web for Halloween, etc. Whatever the business wants to do. All very simple if you incorporate that custom class name for the styling, please you can retain specificity in the selectors.

    https://media.groundworxpros.com/public/lms-page-capture_exp-were-open-custom.jpg

    Using something like “date-2023-03-08” would get cumbersome and unwieldy very fast in my opinion. I don’t always remember what date Memorial Day or Labor Day falls on, trying to target those classes using the date in a stylesheet could quickly require too much effort for my taste. I’d much rather say “labor-day” or “memorial-day” or “thxgiving” in my stylesheet to target those classes for customization.

    Remember, customizing the stylesheet is a secondary step – visually removed from the holiday entry itself. And if I want to come back later to tweek the css – now I have to remember what dates go to what holidays, etc. Why should I have to handle the translation – computers are far better (and more efficient) at matching stuff up than I am.

    • This reply was modified 1 year, 8 months ago by obewanz. Reason: clarifying
    • This reply was modified 1 year, 8 months ago by obewanz.
    Plugin Author Design Extreme

    (@designextreme)

    @obewanz I do understand the concept and I’ll include more classes for such days. I’m just aware that adding more text boxes to the Manage Opening Hours page could impede its usability. In any case, this may be well-suited to a Shortcode parameter.

    My previous suggestion would be: “New Year’s Eve” will have the generated class: “new-years-eve”. This would save the need to add individual classes and keep it closely linked to the custom label.

    “My previous suggestion would be: “New Year’s Eve” will have the generated class: “new-years-eve”. This would save the need to add individual classes and keep it closely linked to the custom label.”

    That would work…

    Plugin Author Design Extreme

    (@designextreme)

    @obewanz @kimfrederik I’ve added named dates (or labelling) into version 1.48. Please download this to get started.

    Thread Starter KimFrederik

    (@kimfrederik)

    @designextreme Thanks a lot for this.
    It sure looks good and will be a great help!

    Next task will be the “Upcoming” days off.

    Plugin Author Design Extreme

    (@designextreme)

    @obewanz @kimfrederik I’ve updated the plugin (version 1.52) to have conditional special opening hours.

    I realised this was a feature that was needed with one of my own websites and it seemed like a common-sense addition to the plugin’s functionality.

    To see this in action, please view the demonstration website.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Feature request – Upcoming Holidays’ is closed to new replies.