=== Multi Step Booking for Zoho ===
Contributors: dyexperts
Tags: booking, zoho, multi-step, single form, zoho-integration
Tested up to: 6.8
Stable tag: 1.0
Requires at least: 6.0
Requires PHP: 7.2
Donate link:
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Easily display a dynamic multi-step or single-step booking form via shortcode.

== Description ==

**WP Multi Step Booking** is a powerful yet simple booking form plugin that allows users to:

- Use a multi-step or single-step booking flow
- Choose available dates and time slots
- Select from gift options
- Prevent duplicate bookings by email per date
- Display the booking form using a single shortcode
- Fully manage form settings from the admin dashboard

**Key Features:**

- Multi-step and single-step form toggle
- Time slot availability logic
- Eastern Time (EST) support
- Backend form settings
- AJAX-based submission
- Confirmation redirect

== Installation ==

1. Upload the plugin to the `/wp-content/plugins/` directory or install directly from WordPress admin.
2. Activate the plugin through the "Plugins" menu.
3. Go to **Settings > WP Multi Step Booking** to configure options:
   - API URL
   - Thank You URL
   - Form Type (multi-step or single)
   - Time slot values

== Usage ==

1. Use the shortcode `[wpmsb_booking]` anywhere in your post, page, or template to display the form.
2. The form will auto-render as **multi-step or single-step** based on your plugin settings.
3. Bookings will be submitted via AJAX and validated in real-time.
4. After a successful booking, users will be redirected to the **Thank You** page (configurable).

== Settings Explained ==

Go to **Settings > WP Multi Step Booking** to access the following:

- **API URL:** Create a API Function in ZOHO CRM and Paste the Function URL Here.
- **Thank You URL:** Redirect URL after successful submission.
- **Form Type:** Choose between `multi-step` or `single` to determine the frontend experience.
- **Available Slots:** Comma-separated list of time slot options (e.g., `9:00 AM,10:00 AM,11:00 AM`)

== Screenshots ==

1. Multi-step form flow screenshot-1.png

== Changelog ==

= 1.0 =
* Initial release with shortcode support
* Dynamic multi/single form loading
* Backend settings panel
* AJAX submission with error handling
* Date, time, and gift option fields

== Frequently Asked Questions ==

= Can I use the same shortcode for both forms? =
Yes! `[wpmsb_booking]` is the only shortcode you need. The plugin will load the appropriate form based on the selected setting.

= How does time slot filtering work? =
The form shows only the next 2 available weekdays (skipping weekends) and excludes the current hour if it's past the 29th minute.

= Can I prevent duplicate bookings? =
Yes, the plugin automatically blocks duplicate email submissions for the same booking date.

= How do I add the form in a template? =
Use the shortcode like this:
```php