Linux 软件免费装
Banner图

Bookings Calendar for WooCommerce

开发者 moiseh
更新时间 2026年11月27日 03:44
PHP版本: 7.3 及以上
WordPress版本: 7.2
版权: GPLv2 or later
版权网址: 版权信息

标签

booking calendar availability calendar woocommerce bookings time slots bookings calendar

下载

1.2.0 1.0.1 1.0.10 1.0.20 1.0.21 1.0.39 1.0.14 1.0.15 1.0.16 1.0.22 1.0.23 1.0.31 1.0.33 1.0.34 1.0.4 1.0.7 1.0.8 1.0.12 1.0.19 1.0.11 1.0.2 1.0.28 1.0.30 1.1.1 1.0.38 1.0.9 1.0.24 1.0.25 1.0.26 1.0.3 1.0.32 1.0.36 1.0.37 1.0.13 1.0.27 1.0.35 1.0.41 1.0.5 1.0.6 1.0.18 1.0.29 1.0.42 1.1.0 1.2.1

详情介绍:

Bookings Calendar for WooCommerce shows the free and the taken slots of your WooCommerce Bookings products on one calendar, so your customers see what is open at a glance — how many spots are left, what is sold out, when the next free slot is — and book it in a click. Add it with the Bookings Calendar block, in the editor and in block themes, or with the [wbc-calendar] shortcode. Attention: this plugin is an add-on for the official WooCommerce Bookings extension. It provides the calendar on your pages, not the booking functionality or the bookable product types. Premium version ($35 one-time, a year of updates): your customers book straight from the calendar, a list of the upcoming free slots, the price on each slot, and filters by category — see the Premium version. [youtube https://www.youtube.com/watch?v=m5WRnFfFejw] Free features: Premium version features: Get the PRO version here. [youtube https://www.youtube.com/watch?v=EC6d-2Kel6w]

安装:

  1. Upload woo-bookings-calendar.zip to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. It's done. Now you can go to the Settings to configure what you want

屏幕截图:

  • The Bookings Calendar block in the editor — its view, products, categories and start date in the sidebar
  • The month view
  • The information tooltip on a slot: the product, its price (Premium) and the spots left
  • On a phone the calendar shows as a list of the coming slots
  • The settings: the spots left, the first free day, the list on phones, the tooltip, the slots cache — and the Premium features beside them, locked
  • Premium: book from the calendar — the booking window opens over it with the clicked slot chosen and its cost worked out
  • Premium: the next free slots in a short list, each with a Book button (the Upcoming Bookable Slots block or `[wbc-upcoming]`)

常见问题:

Does it need WooCommerce Bookings?

Yes. The calendar shows the slots of the products of the official WooCommerce Bookings extension, which makes products bookable and takes the bookings. Without it the calendar stays empty, and the plugin says so in your admin.

Why is my calendar empty?

Check that WooCommerce Bookings is active, that you have at least one published bookable product, and that its availability has free slots in the days shown. The calendar opens on the first day with a free slot, and its "Next available" button jumps to the next one.

Does it work with page caching?

Yes. The page can be cached: the calendar loads its slots from the server when it shows, so a cached page still shows the current slots. Those slots are kept a few minutes ("Keep the calendar slots for this many minutes", 5 by default) and worked out again as soon as a booking comes in or a bookable product changes.

Can a page show several calendars?

Yes, since 1.2.0 — each Bookings Calendar block or [wbc-calendar] shortcode draws its own, for example one per product with [wbc-calendar product="12"].

The calendar is slow to load. What can I do?

The slots are kept for a few minutes, so only the first visit of a week or a month works them out. When even that is slow, it is usually the month view of products booked in short blocks (minutes or hours), where WooCommerce Bookings works out every block: use longer booking blocks, or open the calendar on the week or the list view (Settings › Calendar view, or the block's opening view).

What does the Premium version add, and what does it cost?

Booking straight from the calendar (a booking window opens with the clicked slot chosen), the "Upcoming Bookable Slots" block, the price on each slot, filters by category, a colour per product, a calendar widget, a calendar of the taken slots and a live search. It is $35, paid once, with a year of updates and support and a 7-day money-back guarantee — see it here.

Developer hooks

PHP filters (add_filter):

  • wbc_fullcalendar_options — the FullCalendar 6 options (array)
  • wbc_calendar_start_date — the date the calendar opens on (Y-m-d)
  • wbc_event_row — one event before it goes to the calendar ($event, $post, $product, $availables)
  • wbc_build_events_array — all the events of one request ($events, $products, $start, $end)
  • wbc_booking_products_args — the query of the products the calendar lists
  • wbc_bookable_product_types — the product types it lists (default array( 'booking' )) — since 1.0.42
  • wbc_available_colors — the colours of the available slots, one per product ($colors, $product) — since 1.0.42
  • wbc_color_available / wbc_color_unavailable — one product's colour ($product; return a CSS colour)
  • wbc_calendar_class — the calendar element's CSS classes
  • wbc_shortcode_html — the calendar's HTML ($html, and since 1.0.42 the shortcode's $atts)
  • shortcode_atts_wbc-calendar — WordPress's own filter of the [wbc-calendar] attributes — since 1.0.42
  • wbc_frontend_vars — the values handed to the calendar script (WBCVARS)
  • wbc_pre_build_events_array — return an array of events to answer a calendar's request with it, before its free slots are worked out (null, $products, $start, $end) — since 1.2.0
  • wbc_cache_key_fields — the POST fields of the events request that make its cache key (add one a wbc_events_request handler sends) — since 1.2.0
  • wbc_max_request_days — how many days one events request may cover (42) — since 1.2.0
JavaScript events (jQuery, on document):
  • wbc_calendar_options (options, $el) — the FullCalendar options, before the calendar is created: callbacks go here — since 1.0.42
  • wbc_events_request (postData, info) — the AJAX request for the events, before it is sent — since 1.0.42
  • wbc_events_loaded (events, info) — the events the server sent, before they are drawn — since 1.0.42
  • wbc_calendar_loaded ($el, calendar) — the calendar is drawn; it is also window.wbcCalendar
  • wbc_event_click (event, jsEvent), and wbc_event_render (event, $element) on document.body

更新日志:

1.2.1 1.2.0 1.1.1 1.1.0 1.0.42 1.0.41 1.0.39 1.0.38 1.0.37 1.0.36 1.0.35 1.0.34 1.0.33 1.0.32 1.0.31 1.0.30 1.0.29 1.0.28 1.0.27 1.0.26 1.0.25 1.0.24 1.0.23 1.0.22 1.0.21 1.0.20 1.0.19 1.0.18 1.0.17 1.0.16 1.0.15 1.0.14 1.0.13 1.0.12 1.0.11 1.0.10