We removed legacy options from the output of theme global variable:
While the full opening hours JSON contained within this variable are correct, there were two legacy options within the JSON object that were no longer of use. These were:
These options were created back when Easy Eatery website pages were not cached.
Since the introduction of caching, using these options could mean that the business is declared as open, when it could be closed.
We will be publishing a JS script that helps to this end our support portal shortly.
There is now an option within the JSON called 'next_open'.
This option returns a list for each day of the week that declares when the business is next open. This new option can help streamline the development of opening hours widgets within themes.