On the project homepage, there is a link for a use case for changing opening hours in advance, but the link is WSOD.
http://blog.hsl.virginia.edu/drupalpress/scheduling-opening-hours-in-advance/
We would like to be able to create weekly hours in advance, and have them publish based on the week date (possibly via a view).
Is this information what we need? http://drupalsun.com/vp/2013/11/26/scheduling-opening-hours-advance
Or is there another solution we should consider?
I have developed a solution using view EVA display to have a separate content type (hours) display on our store pages (we have multiple stores). If I continue with this solution, I'm wondering how I would have the current hours display on the homepage. The new content type (hours) is displayed within the existing content type (store), and the hours content type can be set to display based on a separate date range field (so we can create hours in advance). As the dates change, the next hours content is displayed on each store. How would I leverage the hours content type on my homepage where I am displaying information about each store (with the currently open or closed info)? Hmm.
Thank you.
Comments
Comment #2
thalemn commentedComment #3
johnvPlease see https://www.drupal.org/project/office_hours/issues/1743366.
Until a definite feature is built, I would use a filed collections or Inline Entity Form, to Add multiple Office hours to an entity.
then, in your view, select the line you wish.
Comment #4
thalemn commentedThanks @johnv.
Here's the solution that I'm planning to develop with a multi-store situation:
Create content type named hours
Fields to display 'teaser' info on homepage (displayed via a view)
Teaser info: field if open or closed (hours)
Link field to link directly to the store landing page (store content type)
Address/phone fields
Opt image field
Added special hours text field (to add info about closed on holidays, etc). This will display only on the Store content type below
Create content type named store
Using EVA module, insert a view with hours content type for each store
This was helpful for using term reference to relate hours and store
Display all hours
Display special hours note (if any)
Have all other fields needed (address, telephone, google map, store info, etc)
Going forward, hours content can be created for future weeks, using a date field to display hours content type based on start-end dates.
Also, we're using the node clone module to quickly create new hours content, then they only need to tweak the hours and start-end dates.
Hope this is helpful for others.
Comment #5
johnvI guess you dont want to create a New version of the entity, and schedule the publication of that?
Comment #6
johnvComment #7
johnvSee also #1743366: [Season Meta] Add "Seasonal Hours / Duration" feature
Comment #8
johnvWe are in D8-D10 days, now.
But perhaps you are still/again interested in participating in #1743366: [Season Meta] Add "Seasonal Hours / Duration" feature
Your idea to have several scheduled version is a nice approach.
ITNT, we have exception days. Mentioned issue handles 'seasons'. For this, we need to change the data model.
Comment #9
thalemn commentedHi,
We are migrating to D9 now and plan to have two date entities: Normal store hours and Special store hours. The Normal hours will be the default displayed, then when we need Special hours, we'll develop a boolean solution to toggle Normal off and Special on. The Special hours will be modified as needed, whereas the Normal hours will never change. Does that make sense? Any thoughts or suggestions are welcomed!
Comment #10
johnvAt this moment, I am working on #1743366: [Season Meta] Add "Seasonal Hours / Duration" feature, including
#3336378: [Season] Add season widgets and
#3336385: [Season] Add Seasonal formatter
Please check them and give your comments. I think that might solve your puzzle.
I am not working on the formatter, yet, so it is uncertain how to hide unwanted 'seasons' and when to change the formatter to a special season.
Comment #11
johnvHi Tom, the new season formatter is now stable.
Please review, and give your feedback and wishes.
Comment #12
johnvLet us continue the conversation here #3370722: Replace today's hours with Exception hours in Week Formatter.
Now that seasons are implemented, we can merge all seasons and exceptions into one weekly refreshed week formatter.
Comment #13
johnv