Version 4.2.0

July 28, 2024
  • Added craft\storehours\data\FieldData::getGroupedRanges().

Version 4.1.0

July 28, 2024
  • Added the “Start Day” field setting. (#43)
  • Added craft\storehours\data\FieldData::getIsOpen(). (#37)
  • Store Hours fields now get clock icons.

Version 4.0.1

March 18, 2024
  • Fixed a PHP error that could occur when editing an element with a Store Hours field.

Version 4.0.0

March 15, 2024
  • Store Hours now requires Craft 5.0.0-beta.1 or later.

Version 3.1.0

March 15, 2024
  • Added GraphQL support. (#55)
  • Added craft\storehours\gql\types\Day.
  • Added craft\storehours\gql\types\generators\DayType.

Version 3.0.0

May 3, 2022
  • Added Craft 4 compatibility

Version 2.2.0

April 10, 2022
  • Added craft\storehours\data\FieldData::getSun().
  • Added craft\storehours\data\FieldData::getMon().
  • Added craft\storehours\data\FieldData::getTue().
  • Added craft\storehours\data\FieldData::getWed().
  • Added craft\storehours\data\FieldData::getThu().
  • Added craft\storehours\data\FieldData::getFri().
  • Added craft\storehours\data\FieldData::getSat().
  • Added craft\storehours\data\FieldData::getSun().
  • Added craft\storehours\data\FieldData::getYesterday().
  • Added craft\storehours\data\FieldData::getTomorrow(). (#44)

Version 2.1.1.1

November 1, 2018
  • Fixed an error if you tried to access a time slot from a template from a custom custom column that had an empty value. (#31)

Version 2.1.1

September 3, 2018
  • It’s now possible to find out if all the time slots for all the days are blank via entry.<FieldHandle>.getIsAllBlank(). (#29)
  • Fixed a bug where required Store Hours fields wouldn’t get a validation error if none of the time slots were filled in.

Version 2.1.0.1

July 19, 2018
  • Fixed a bug where older Store Hours data could get lost when upgrading to v2.1.

Version 2.1.0

July 19, 2018
  • Added a new “Time Slots” field setting, which makes it possible to customize the available field columns. (#22)
  • It’s now possible to access today’s hours via entry.<FieldHandle>.getToday(). (#15)
  • It’s now possible to output weekday names via entry.<FieldHandle>[<DayIndex>].getName().
  • It’s now possible to access a custom range of days, or change which days comes first, via entry.<FieldHandle>.getRange().
  • It’s now possible to find out if all the time slots for a day are blank via entry.<FieldHandle>[<DayIndex>].getIsBlank().

Version 2.0.6

December 4, 2017
  • Loosened the Craft CMS version requirement to allow any 3.x version.

Version 2.0.5

November 9, 2017
  • Fixed some bugs.

Version 2.0.4

July 7, 2017
  • Craft 3 Beta 20 compatibility.

Version 2.0.3

May 15, 2017
  • Fixed a deprecation error.

Version 2.0.2

May 15, 2017
  • Fixed a bug where the plugin wasn’t updating Store Hours fields that had been created in Craft 2.x.

Version 2.0.1

May 15, 2017
  • Added a Dutch translation. (#13)
  • Changed the Store Hours field class from craft\storehours\fields\StoreHoursField to craft\storehours\Field.
  • Fixed an error that occurred when adding a Store Hours field to a global set. (#14)
  • Fixed the changelog and download URLs.

Version 2.0.0

May 10, 2017
  • Added support for Craft 3.

Version 1.2.2

November 9, 2017
  • Fixed a bug where looping through the field data on the front end could return the days out of order, if the user that saved it had a different Week Start Day than Sunday. (#19)

Version 1.2.1

April 21, 2017
  • Fixed a PHP error that occurred if the current user’s Week Start Day setting was set to Sunday. (#12)

Version 1.2.0

April 18, 2017
  • Store Hours fields now respect users’ Week Start Day settings. (#11)

Version 1.1.0

December 20, 2015
  • Updated to take advantage of new Craft 2.5 plugin features.
  • Fixed a bug where blank times were being saved as arrays.
  • Fixed a bug where times were not reflecting the system timezone. (#3)

Version 1.0.0

July 16, 2014
  • Initial release.