=== BookingMachine – Booking, Quotes & Payments for Service Businesses ===
Contributors: quotelab
Tags: booking, appointments, quotes, scheduling, local business
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Instant quotes, online booking, and payments for local service businesses. Customers get a price, pick a time, and book in under 60 seconds.

== Description ==

[BookingMachine](https://bookingmachine.io) is a quote-first booking engine for local service businesses - car detailing, pool cleaning, pressure washing, lawn care, house cleaning, pest control, and more.

This plugin lets you embed your BookingMachine booking widget on any WordPress page using shortcodes, Gutenberg blocks, Elementor, or WPBakery. Your customers can:

* Browse your services
* Get an instant price quote
* Pick a date and time
* Book and pay online

= Why BookingMachine? =

* Customers see pricing instantly (no forms, no waiting)
* Higher conversion rates vs traditional booking forms
* Built for service businesses that price based on job size, not fixed slots

**No booking logic runs in WordPress.** The plugin loads a lightweight (~5KB) script that renders the BookingMachine hosted booking widget. All pricing, availability, and payment processing happens on BookingMachine servers.

= Features =

* **3 Gutenberg blocks** - Booking Widget, Reviews Widget, and Pricing Table with live preview in the editor
* **Elementor widget** - drag-and-drop BookingMachine widget for Elementor page builder
* **WPBakery element** - native integration for WPBakery Page Builder
* **Shortcodes** - `[bookingmachine]` for booking widget, `[bookingmachine_reviews]` for reviews display
* **Floating widget** - show a site-wide "Book Now" button on every page
* **Setup wizard** - guided configuration that connects your BookingMachine account and places the widget in one flow
* **Dashboard stats widget** - see booking stats at a glance from your WordPress dashboard
* **Auto-generated service pages** - creates SEO-friendly pages for each of your services
* **SEO schema markup** - automatic LocalBusiness and Service structured data on pages with the widget
* **Analytics bridge** - forwards widget events to Google Analytics 4, Google Tag Manager, and Facebook Pixel
* **Source tracking** - bookings from WordPress are tagged so you can track conversions
* **Multiple widgets** - configure different widgets for different pages
* **Zero dependencies** - no npm packages, no build step, lightweight plugin

= Requirements =

* A BookingMachine account at [bookingmachine.io](https://bookingmachine.io)
* An API key generated from your BookingMachine dashboard

== Installation ==

1. Upload the `quotelab-io` folder to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' menu
3. Go to Settings → BookingMachine
4. Paste your API key from [bookingmachine.io/dashboard/settings](https://bookingmachine.io/dashboard/settings?tab=integrations)
5. Enter your business slug and click "Verify Connection"
6. Add `[bookingmachine]` to any page where you want the booking widget

== Frequently Asked Questions ==

= Do I need a BookingMachine account? =

Yes. Create a free account at [bookingmachine.io](https://bookingmachine.io) and set up your services and pricing.

= Does this plugin process payments? =

No. All payment processing happens on BookingMachine's servers via Stripe. The plugin only embeds the widget.

= Can I use multiple widgets on different pages? =

Yes. Use the `widget` attribute: `[bookingmachine widget="exterior-detail"]`

= Does the widget affect my page speed? =

Minimal impact. The loader script is ~5KB and loads asynchronously. The full widget only loads when needed.

== External Services ==

This plugin connects to **[bookingmachine.io](https://bookingmachine.io)** to load booking widgets and fetch business data.

* Widget scripts are loaded from `https://bookingmachine.io/embed.js`
* Business configuration is fetched from `https://bookingmachine.io/api/v1/public/businesses/{slug}/config`
* Integration stats are fetched from `https://bookingmachine.io/api/v1/integrations/stats`

By using this plugin, you agree to BookingMachine's:

* [Terms of Service](https://bookingmachine.io/terms)
* [Privacy Policy](https://bookingmachine.io/privacy)

== Screenshots ==

1. Settings page - connect your BookingMachine account
2. Booking widget embedded on a page
3. Floating "Book Now" button

== Changelog ==

= 1.0.0 =
* Initial release
* [bookingmachine] shortcode for booking widget
* [bookingmachine_reviews] shortcode for reviews
* Floating widget option
* Settings page with connection verification
* Source tracking (bookings tagged as "wordpress")

== Upgrade Notice ==

= 1.0.0 =
Initial release.
