{"id":287,"date":"2021-04-21T08:56:16","date_gmt":"2021-04-21T08:56:16","guid":{"rendered":"https:\/\/utillz.com\/docs\/brikk\/listing\/listing-action\/action-type-open-hours\/"},"modified":"2024-05-20T07:31:20","modified_gmt":"2024-05-20T07:31:20","slug":"action-type-open-hours","status":"publish","type":"page","link":"https:\/\/utillz.com\/docs\/brikk\/listing\/action\/action-type-open-hours\/","title":{"rendered":"Action type open hours"},"content":{"rendered":"<p>The open hours action type will display a list of time ranges. If your local time based on the timezone maches the range, a label `Open now` will appear. It is using your WordPress timezone configuration to calculate the ranges.<\/p>\n<p>Also, you need to add field of type `Open Hours` in order to be able to add the time ranges. Just navigate to <strong>Listing <i class=\"material-icon-arrow_right_alt __arrow\"><\/i> Fields<\/strong>, add <strong>Open Hours<\/strong> field add save the changes.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-289\" src=\"https:\/\/utillz.com\/docs\/brikk\/wp-content\/uploads\/sites\/4\/2021\/09\/Edit-Listing-Type-\u2039-Booking-\u2014-WordPress-1.png\" alt=\"\" width=\"1387\" height=\"425\" srcset=\"https:\/\/utillz.com\/docs\/brikk\/wp-content\/uploads\/sites\/4\/2021\/09\/Edit-Listing-Type-\u2039-Booking-\u2014-WordPress-1.png 1387w, https:\/\/utillz.com\/docs\/brikk\/wp-content\/uploads\/sites\/4\/2021\/09\/Edit-Listing-Type-\u2039-Booking-\u2014-WordPress-1-300x92.png 300w, https:\/\/utillz.com\/docs\/brikk\/wp-content\/uploads\/sites\/4\/2021\/09\/Edit-Listing-Type-\u2039-Booking-\u2014-WordPress-1-1024x314.png 1024w, https:\/\/utillz.com\/docs\/brikk\/wp-content\/uploads\/sites\/4\/2021\/09\/Edit-Listing-Type-\u2039-Booking-\u2014-WordPress-1-768x235.png 768w\" sizes=\"(max-width: 1387px) 100vw, 1387px\" \/><\/p>\n<p>Then edit a listing from that same listing type and you will see the field output:<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-290\" src=\"https:\/\/utillz.com\/docs\/brikk\/wp-content\/uploads\/sites\/4\/2021\/09\/open-hours-options.png\" alt=\"\" width=\"947\" height=\"567\" srcset=\"https:\/\/utillz.com\/docs\/brikk\/wp-content\/uploads\/sites\/4\/2021\/09\/open-hours-options.png 947w, https:\/\/utillz.com\/docs\/brikk\/wp-content\/uploads\/sites\/4\/2021\/09\/open-hours-options-300x180.png 300w, https:\/\/utillz.com\/docs\/brikk\/wp-content\/uploads\/sites\/4\/2021\/09\/open-hours-options-768x460.png 768w\" sizes=\"(max-width: 947px) 100vw, 947px\" \/><\/p>\n<p>As a next step, you need to render the action type in your sidebar as well, please edit the listing type and navigate to <strong>Listing <i class=\"material-icon-arrow_right_alt __arrow\"><\/i> Action<\/strong>, then add <strong>Open Hours<\/strong> action type and save the changes.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-288\" src=\"https:\/\/utillz.com\/docs\/brikk\/wp-content\/uploads\/sites\/4\/2021\/09\/Edit-Listing-Type-\u2039-Booking-\u2014-WordPress-1-1.png\" alt=\"\" width=\"1387\" height=\"318\" srcset=\"https:\/\/utillz.com\/docs\/brikk\/wp-content\/uploads\/sites\/4\/2021\/09\/Edit-Listing-Type-\u2039-Booking-\u2014-WordPress-1-1.png 1387w, https:\/\/utillz.com\/docs\/brikk\/wp-content\/uploads\/sites\/4\/2021\/09\/Edit-Listing-Type-\u2039-Booking-\u2014-WordPress-1-1-300x69.png 300w, https:\/\/utillz.com\/docs\/brikk\/wp-content\/uploads\/sites\/4\/2021\/09\/Edit-Listing-Type-\u2039-Booking-\u2014-WordPress-1-1-1024x235.png 1024w, https:\/\/utillz.com\/docs\/brikk\/wp-content\/uploads\/sites\/4\/2021\/09\/Edit-Listing-Type-\u2039-Booking-\u2014-WordPress-1-1-768x176.png 768w\" sizes=\"(max-width: 1387px) 100vw, 1387px\" \/><\/p>\n<p>If you have entered any listing open hours, you should be able to see it in the front-end:<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-291\" src=\"https:\/\/utillz.com\/docs\/brikk\/wp-content\/uploads\/sites\/4\/2021\/09\/action-open-hours.png\" alt=\"\" width=\"485\" height=\"400\" srcset=\"https:\/\/utillz.com\/docs\/brikk\/wp-content\/uploads\/sites\/4\/2021\/09\/action-open-hours.png 485w, https:\/\/utillz.com\/docs\/brikk\/wp-content\/uploads\/sites\/4\/2021\/09\/action-open-hours-300x247.png 300w\" sizes=\"(max-width: 485px) 100vw, 485px\" \/><\/p>\n<div class=\"row\">\n<div class=\"container\">\n<div class=\"content\">\n<div>\n<p>It will use your WordPress time format, so you can easily switch between 24 hour time format and gmt.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The open hours action type will display a list of time ranges. If your local time based on the timezone maches the range, a label &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":118,"menu_order":37,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/utillz.com\/docs\/brikk\/wp-json\/wp\/v2\/pages\/287"}],"collection":[{"href":"https:\/\/utillz.com\/docs\/brikk\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/utillz.com\/docs\/brikk\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/utillz.com\/docs\/brikk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/utillz.com\/docs\/brikk\/wp-json\/wp\/v2\/comments?post=287"}],"version-history":[{"count":0,"href":"https:\/\/utillz.com\/docs\/brikk\/wp-json\/wp\/v2\/pages\/287\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/utillz.com\/docs\/brikk\/wp-json\/wp\/v2\/pages\/118"}],"wp:attachment":[{"href":"https:\/\/utillz.com\/docs\/brikk\/wp-json\/wp\/v2\/media?parent=287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}