BookingWP WooCommerce Appointments

BookingWP WooCommerce Appointments 5.3.7

No permission to download
* Improvement - Admin calendar: on expired nonce/session (REST 401/403), show an expiry banner with reload link instead of failing silently after long idle periods.
* Improvement - Admin appointment panel: create/edit success step uses a light success-tinted circular badge for the checkmark (aligned with other success affordances), not a plain large icon.
* Improvement - Update translations (+2 strings, −11 strings removed).
* Dev - Removed deprecated per-product `customer_timezones`; timezone support is site-wide. `has_timezones()` now reads `wc_appointments_timezone_support_enabled` (default `true`). Removed `get_customer_timezones` / `set_customer_timezones`, related data store mapping, admin and REST fields, and WCML/Polylang sync for that setting.
* Fix - Admin timezone display: `appointments_time_zone` cookie no longer applies in admin/REST. Only staff (providers) may use profile timezone in admin; admins and shop managers always see site timezone. Remote staff can still set profile timezone.
* Fix - Admin create flow, existing order: order number no longer appears twice in Select2 and the selected chip—both prefixed `#` + internal ID onto labels that already included the display order number.
* Fix - Legacy calendar staff view: staffed appointments no longer also list under Unassigned—`$is_creator` matched `creator_id === 0` because `(int) 'unassigned' === 0`; creator shortcut now requires non-zero `creator_id`.
* Fix - Manual appointment on existing order (admin AJAX): line meta used public `appointment_id`, so emails/item meta showed an extra row. New rows use `_appointment_id` only (checkout parity); formatted order item meta strips legacy public `appointment_id` for display.
* Fix - Admin browse day slots: discounted `price.display` (`<del>` / `<ins>`) was React-escaped; `.wca-slot-price` now renders with `dangerouslySetInnerHTML` (same as panel footer).
* Fix - Recurring `time:range`: same-day windows ending at **`00:00`** were misclassified as overnight (**string** order: **`00:00` < `08:00`**, **`24:00` < `08:00`**). `WC_Product_Appointment_Rule_Manager` / `WC_Appointment_Slots_Rule_Minutes` now use minute-based wrap helpers (`is_wrap_midnight_hhmm_pair` / `is_wrap_midnight_time_pair`); `evaluate_rule_for_timestamp` shares the same bounds. Availability cache indexing aligns with slot rules for **`00:00`** end-of-day, maps **`24:00` → 1440**, and sets same-day **`eff_to_min = 1440`** when needed. **`time:range` overnight** at midnight merges evening (**from–24:00**) with morning (**00:00–to**) when the prior day is in range (**`RuleMinutesMidnightWrapTest`**).
* Fix - Unified slots + `woocommerce_appointments_slots_display_pricing`: `WC_Appointment_Slots_Pricing::compute_slot_price_raw()` returns the full filtered slot price when the filter runs (not only when below default). `WC_Appointment_Slots_Collection::serialize_slots()` writes `price_data.display` / `price_formatted` HTML; the lazy formatter had read a non-array `price` from `jsonSerialize()`, so strikethrough/sale never reached unified JSON.
* Fix - Availability rules: changing `range_type` (e.g. Date range with time → Days) clears unused `from_date` / `to_date` via `apply_json_rule_to_availability()` (`time:range`, `custom:daterange`, `store_availability` still keep dates), so weekly/monthly rules are not skewed by stale columns.
* Fix - Indexed availability cache: indexer ignores stray `from_date` / `to_date` on **`days`**, **`months`**, **`weeks`** (same as recurring `time` / `time:N`), so corrupt rows no longer shrink the cache window until re-saved.
* Fix - Admin appointment save (`WC_Appointment_Meta_Box_Data::meta_box_save`): failed start/end validation now sets `self::$saved_meta_box` before return (matches success path), avoiding duplicate admin errors or extra `save_post` work in the same request.
* Fix - Day-unit products when add-ons (or `appointment_form_posted_total_duration`) extend past base duration: `WC_Appointments_Controller::get_exact_available_capacity_for_slot()` no longer uses the multi-day “start row only” shortcut (it skipped later days) or `get_extended_range_available_capacity()` for that span (UTC civil-day mismatch caused false unavailability). Added `get_addon_extended_day_span_capacity()` (same UTC keys as `get_multi_day_available_capacity()`, min capacity across span days). Minute/hour add-on extension unchanged.
* Improvement - What's New admin screen (`html-wc-appointments-whats-new.php`): **admin appointment panel** behavior is now described and illustrated clearly—by default the panel **anchors beside the selected calendar appointment** (prefers right, then left, centers only when neither side fits), with backdrop and roadmap/changelog wording aligned. This replaces misleading “side panel” / generic sidebar copy and SVGs that did not show the panel next to the trigger event.
* Fix - Admin appointment save (`WC_Appointment_Meta_Box_Data::meta_box_save`): blank or invalid start/end date (or missing time when not all-day) no longer calls `mktime()` with non-integer parts (PHP 8+ TypeError / fatal). Invalid input shows a WooCommerce admin error and the appointment object is not updated on that request.
Improvements
Unified Slots Standardization (part 1): WC_Appointment_Slot embeds projected business/display TZ metadata, wall times, formatted labels, status/bookable, and selection helpers so storefronts render slots without extra timezone math.
Slots provider/engine accept optional display_timezone; WC_Appointment_Slot:😛roject_display_fields() centralizes projection; resolve_display_timezone() pins day/month and non-timezone products to business TZ and validates IANA zones for timed products.
WC_Appointment_Slots_Collection::get_day_summaries_by_display() groups by display_day; calendar AJAX includes display_day_summaries while legacy scheduled_days remains for compatibility.
WC_Appointment_Day_Summary JSON adds display_day, display_date_formatted, selectable, and first/last slot hints sourced from projected slots.
Fixes
Bundled Product Add-Ons integration JS: strip esbuild's top "use strict" in build-js-addons; initialize window.WC_PAO; declare quickview product_price; broaden PaoValidation minify post-replace for renamed locals.
Slots engine: time-slot start step again uses the product interval (base) when it differs from duration (e.g. 90 min service every 2 hours). 5.3.4.1’s min(duration, interval) grid for all minute/hour products had caused starts every 90m instead of every 120m in that case; duration only defines block length, not the cadence between start times.
Fixes
Day-duration availability and checkout validation are now timezone-agnostic across both negative and positive UTC offsets by aligning day-key generation and matching in slot display, indexed capacity lookup, and multi-day fallback validation.
Rule capacity evaluation now correctly returns zero for non-appointable matches in capacity mode, preventing disabled all-day dates from appearing available when global and product-level rules overlap.
Availability rule sorting now applies time-rule specificity only when comparing two time-family rules, so date-specific unavailability (custom/date-range) no longer gets overridden by weekday time rules on the same day.
Indexed availability: availability rules saved while the indexed cache is disabled are queued and processed when indexing is turned back on (bounded synchronous pass for the first batch, Action Scheduler for overflow), avoiding empty or stale cache after long periods with indexing off.
Indexed availability: custom rules that only store YYYY-MM-DD bounds in from_range/to_range (with empty from_date/to_date) now anchor the indexer to that window so far-future custom blocks are not skipped on the first bounded pass.
Indexed availability: open-ended recurring non-RRULE rules (weekday time:*, days, months) prime through the cache horizon on a cold first pass instead of only the per-pass day chunk, so recurring weekdays do not disappear until background continuation runs.
Admin create success message now uses canonical server-provided schedule text to prevent date shifts caused by client-side timezone reformatting.
Multiple appointment_form shortcodes/blocks on the same page now keep datepicker state isolated per form; with auto-select enabled, one form no longer shifts another form's calendar month/year.
PHP 7.4 compatibility: removed PHP 8.0+ union return types from several methods (e.g. string|false, WP_REST_Response|WP_Error) that caused parse errors on PHP 7.4; @return PHPDoc preserved so behavior and tooling contracts stay documented.
PHP 7.4 compatibility: slots subsystem (value objects, collection, engine, provider, legacy bridge, REST v2 slots) no longer uses PHP 8.0+ syntax that failed to parse on PHP 7.4 — readonly typed properties, named arguments in WC_Appointment_Slot construction, trailing commas in function parameter lists, and match (replaced with equivalent switch / conditionals). Runtime slot math and responses are unchanged.
PHP 7.4 compatibility: Google Calendar (WC_Appointments_GCal) and the appointment product model (WC_Product_Appointment) no longer declare PHP 8.0+ union types on properties (int|false, string|false, int|string|false); types are documented in PHPDoc and values/behavior stay the same.
* Fix - REST API v1: Fixed critical bug in Products controller where appointment-specific fields (duration, interval, staff assignments, etc.) could not be updated via PATCH/PUT requests due to incorrect use of array_keys() in the update loop.
* Fix - Timezone display setting now only controls timezone UI/selection by context (frontend/admin/all); when disabled, timezone picker behavior is suppressed and booking/slot/cost calculations consistently fall back to site timezone.
* Fix - Google Calendar: Importing or restoring synced availability rules (including backup restores) no longer triggers rule sync to Google Calendar.
* Improvement - Clear date, time, addons and cost on month/year switching on the date picker.
* Improvement - Remove all transient caching from the slot generation, actually slows down loading with indexing enabled.
* Improvement - Add a fail-safe approach to "woocommerce_appointments_time_slots" filter by adding back the 10th arg.
* Fix - all-day appointments are timezone agnostic, treat them like that in admin calendar and elsewhere.
* Fix - edge case when indexing is disabled, indexing rules and appointments should not add them to the cache table.
* Fix - Failed Schedule Action wc-appointment-reminder (Twilio SMS connection). Issue #1305.
* Fix - Rule priority order should be respected from DB query. Issue #1306.
* Fix - When timezones are disabled for frontend do not account for the timezone cookie, which might remain from previous state.
* Fix - Admin datepicker header navigation SCSS is slightly off.
* Fix - Recurring time rule lasting till midnight does not show day as available on the calendar.
* Feature - Staff permissions: Rules set by staff now sectioned into minimal, standard and full, staff doesn't need that many options.
* Improvement - ICS export not working for other calendars (only works for gCal). Issue #970.
* Improvement - Updated all translations. Staff permission settings missing translations.
* Improvement - Appointments edited in admin calendar should instantly sync to the Google calendar, when connected.
* Improvement - Appointment creation modal now has slightly polised UX, less autoclosing/autoopening, better timing and spacing.
* Improvement - Appointment creation modal and viewing modal should have a simple link to appointment edit page, no fancy redirects.
* Fix - Staff permission for editing and creating products not working, but should grant staff access to all products.
* Fix - Automatically assigned staff together issue when no staff assigned. Issue #1292.
* Fix - Patch non-indexed path where showing sold out slots could trigger fatal error through filter.
* Fix - Minimal CSS patch to prevent transition effect (added elsewhere) on datepicker back/forward buttons.
* Fix - Patch to show status drodown correctly on appointment viewing modal when statuses have long translations.
* Fix - Timezone change to UTC on frontend not working. Issue #1294.
* Fix - Timezone text on frontend not changing when selecting default. Issue #1295.
* Fix - Timezone overnight change not reflected on the calendar date picker. Issue #438.
* Fix - Appointment vierwing modal shows wrong duration for daily or monthly duration types. Issue #1296.
* Fix - Timezone should also be added to daily and monthly durations during creation or editing in admin calendar. Issue #1296.
* Fix - When product is selected in modal, end date/time is not adjusted based on product duration.
* Fix - When staff creates appointment in modal, they should be assigned to the product, not any other staff member.
* Fix - When staff is logged in, admin calendar should server preload appointment for the staff, but loads the via API (slower).
* Fix - Fix get_slots_availability to expand DB query range by padding. Issue #1256.
* Fix - Fix indexed path to include padded range more strictly. Issue #1256.
* Feature - Staff dashboard: Migrated from custom submenu page to native WordPress dashboard widgets using wp_add_dashboard_widget().
* Feature - Staff dashboard: 8 individual widgets — Overview, Appointment Trends, Upcoming Appointments, Insights, This Week, Monthly Schedule, Top Products, Quick Actions.
* Feature - Staff dashboard: 3-column layout with automatic widget placement for staff users on first visit.
* Feature - Staff dashboard: Pending appointments alert rendered as native WP admin notice at the top of the dashboard.
* Feature - Refactored email timezone approach so each recipient will receive appointment times in separate email in their own timezone.
* Feature - Refactored admin calendar filtering system to work much better.
* Improvement - Staff dashboard: Removed forced redirect from WP dashboard (index.php) to custom page — staff now land on the native dashboard.
* Improvement - Staff dashboard: WordPress Dashboard menu item now visible for staff users.
* Improvement - Staff dashboard: Admin bar "Dashboard" link points to WP dashboard instead of old custom page.
* Improvement - Staff dashboard: Default WP/WooCommerce widgets removed for staff to keep dashboard focused on appointments.
* Improvement - Staff dashboard: Split monolithic template into 8 widget partials in views/dashboard-widgets/.
* Improvement - Remove extra week addded to month view in admin as it adds confusion.
* Improvement - Missed cached/indexed path are now patched: slots API, availability widget and block, finding default date.
* Improvement - Add timezone in my-account, so customer always know which timezone appointment time is displayed in.
* Improvement - Update all translations. Fixed mistranslated strings.
* Improvement - When panel in admin modal for creating appointments is toggled gently scroll to the content if outside the viewport.
* Improvement - Make past appointments faded, but not semi-transparent.
* Improvement - Faster product preload for appointment creation modal.
* Improvement - Add a legend to the footer of admin calendar, indicating stripped background meaning.
* Improvement - Timezone setting for staff should include current timezone suggestion, same as customer setting does in my-account on frontend.
* Improvement - Add appointment ID to toast messages in admin calendar.
* Improvement - Staff dashboard should align more with the profile color scheme staff selects.
* Cleanup - Staff dashboard: Removed old html-staff-dashboard.php template, add_dashboard_page(), render_dashboard(), and redirect_staff_dashboard() methods.
* Cleanup - Staff dashboard: Updated all references from old page slug (wca-staff-dashboard) to admin_url('index.php').
* Fix - Staff can create appointments with any product if permission allows it, otherwise not.
* Fix - Staff control panel live update/refresh does not work.
* Fix - Availability check in modal wrongly allowed manually entered time that wasn't available with selected staff.
* Fix - Are you sure not translatable in admin modal prompt.
* Fix - When product is selected in admin calendar filter, preselect it when creating appointment from calendar with name set, not just ID.
* Fix - Current week widget for staff did not account for timezone.
* Fix - Admin modal for creating appointments has slightly bigger font now, 13->14px.
* Fix - DST adjustments on all levels, use wall-clock-based conversion instead of offset, time conversion should follow exact date as well.
* Fix - Email order summary timezone conversion not working for admin and staff and still shows times in customers timezone.
* Fix - Some email templates are falsely flagged as not-admin email types, but they are, timezone conversion suffers in some cases.
* Fix - "appointment_time_from" validates input incorrectly inside modal for creating appointments.
* Fix - Toast message in admin calendar should only appear once for single action.
* Fix - Current time and day in week and day view should also be timezone aware in admin calendar.
* Fix - Invalidate cache selectively in admin calendar when appointments change to update stale cache and prevent double rendering.
* Fix - Recurring rules display also needs to account for the timezone of user.
* Fix - When admin is editing staff profile, edit in admin's timezone, but still show what timezone staff has set.
* Feature - Admin calendar toast notifications: Real-time updates when appointments are created, updated, cancelled, or rescheduled via SSE.
* Improvement - Customer contact icons in appointment modal: Email and phone icons appear on hover with click-to-action (mailto/tel).
* Improvement - Appointment needs to use staff_ids as single source of truth, added comprehensive checks to ensure this.
* Improvement - Guest appointment that leaves name/surname should display it in admin calendar even if not registered.
* Improvement - Update all translations.
* Improvement - Show Guest name in Calendar view + change default calendar view. Issue #1271.
* Improvement - Appointment modal has all content filterable through React/JS.
* Improvement - Ensure plugin installation does not happen too early and everything hooks after 'init' call to avoid potential issues.
* Improvement - Deposits with one full and one part payment appointment in the same order. Issue #1270.
* Fix - Resolved double notification issue when cancelling appointments by improving SSE event deduplication.
* Fix - SSE not updating admin calendar for appointments created via shortcode checkout (deduplication was blocking status change events in same request).
* Fix - Fix NL translation.
* Fix - Staff 2-way sync doesn't work fine with multiple calendars sync (staff + global). Issue #1268.
* Fix - Sync issue: when parent recurring event was deleted, modified instance availability rules remained orphaned. Issue #1216.
* Improvement - Updated What's New admin page with better styling and to include clear roadmap, updates with improved release notes.
* Improvement - Refining admin calendar hover effects, turn past appointments grayscale and unavailable time ranges into stripes.
* Fix - Non-recurring rules could expire same day, before the 30 days grace period. Issue #1261.
* Fix - Cart persistence: Rewrote cart_loaded_from_session with whitelist approach to prevent premature cart clearing with any payment plugin.
* Fix - Only removes items from cart when order is definitively paid (processing/completed/partial-payment).
* Fix - Removed delete_in_cart_appointments_before_empty method as it was too unpredictable.
Top