- Added
craft\storehours\data\FieldData::getGroupedRanges()
.
- Added the “Start Day” field setting. (#43)
- Added
craft\storehours\data\FieldData::getIsOpen()
. (#37) - Store Hours fields now get clock icons.
- Fixed a PHP error that could occur when editing an element with a Store Hours field.
- Store Hours now requires Craft 5.0.0-beta.1 or later.
- Added GraphQL support. (#55)
- Added
craft\storehours\gql\types\Day
. - Added
craft\storehours\gql\types\generators\DayType
.
- Added Craft 4 compatibility
- 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)
- 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)
- 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.
- Fixed a bug where older Store Hours data could get lost when upgrading to v2.1.
- 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()
.
- Loosened the Craft CMS version requirement to allow any 3.x version.
- Fixed some bugs.
- Craft 3 Beta 20 compatibility.
- Fixed a deprecation error.
- Fixed a bug where the plugin wasn’t updating Store Hours fields that had been created in Craft 2.x.
- Added a Dutch translation. (#13)
- Changed the Store Hours field class from
craft\storehours\fields\StoreHoursField
tocraft\storehours\Field
. - Fixed an error that occurred when adding a Store Hours field to a global set. (#14)
- Fixed the changelog and download URLs.
- Added support for Craft 3.
- 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)
- Fixed a PHP error that occurred if the current user’s Week Start Day setting was set to Sunday. (#12)
- Store Hours fields now respect users’ Week Start Day settings. (#11)
- 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)
- Initial release.