內容簡介
INTS Tour Service Date Selector 是一款專為 WooCommerce 設計的外掛,提供靈活的預訂日期和時間選擇功能,無需使用分類、標籤或第三方選項外掛,讓產品預訂更加便利。
【主要功能】
• 支援開放日期、僅日期或日期與時間選擇
• 每週時間表設定,輕鬆管理可用性
• 變數產品可覆蓋父產品的服務類型
• 購物車和結帳頁面顯示選擇的日期與時間
• 內建 Flatpickr 日期/時間選擇器
外掛標籤
開發者團隊
② 後台搜尋「INTS Tour Service Date Selector」→ 直接安裝(推薦)
原文外掛簡介
INTS Tour Service Date Selector adds a flexible booking date and time picker to any WooCommerce simple or variable product without requiring categories, tags, or third-party option plugins.
Service Types
Open Dated — Works like a normal WooCommerce product; no date or time fields displayed.
Just Date, No Time — Displays an inline Flatpickr calendar; customer must select a date before purchasing.
Date and Time — Displays both an inline calendar and a time-slot selector driven by your weekly operating schedule.
Weekly Schedule
For each product you can configure per-weekday availability with start and end times. Unavailable days are automatically greyed out in the calendar. Time slots are generated in 15-minute intervals within the configured range.
Variable Product Support
Each product variation can override the parent’s service type and schedule. The booking fields update instantly when a shopper selects a variation.
Security
Every add-to-cart request is validated on the server with nonce verification, sanitization, and escaping. Checkout validation runs a second pass to reject manipulated cart items.
Booking Data
Selected date and time appear in:
* Cart and checkout
* Admin order screen
* Customer confirmation emails
* My Account order history
Third-Party Libraries
This plugin bundles the following third-party library locally (no external/CDN requests are made):
Flatpickr 4.6.13 — lightweight date/time picker. License: MIT.
Included as assets/vendor/flatpickr/flatpickr.min.js and assets/vendor/flatpickr/flatpickr.min.css.
Unminified source is available upstream at https://github.com/flatpickr/flatpickr/tree/v4.6.13 (npm: [email protected]).
