Boseat Booking
The Boseat Booking plugin allows you to easily embed the Boseat reservation widget into your WordPress site. You can display it as a modal, inline element, floating button, or direct iframe.
Key Features
- Easy integration with the
[boseat]shortcode - 4 display modes:
modal,inline,float,direct - Customizable parameters (tenant, workspace, seat, etc.)
- JavaScript event support for developers
- Avoid cookie-related redirect issues with direct iframe mode
Usage
Basic shortcode
`plaintext
[boseat] `
With custom parameters
`plaintext
[boseat tenant=”boseat” workspace=”test” seat=”test” button_text=”Book now” display=”modal”] `
If you do not provide a button_text, the plugin will use a localized default label (for example, "Réserver" in French).
Direct iframe display
`plaintext
[boseat display=”direct” width=”100%” height=”600px”] `
You can also force direct iframe mode via the shortcode attribute:
`plaintext
[boseat tenant=”boseat” workspace=”test” seat=”test” use_direct_iframe=”true” width=”100%” height=”600px”] `
Shortcode parameters
tenant– Tenant identifierworkspace– Workspace identifierseat– Seat identifierbutton_text– Button label (localized default if omitted)display– Display mode:modal,inline,floatordirectwidth– Widget width in inline or direct modeheight– Widget height in inline or direct modemode– Execution mode:liveortestuse_direct_iframe– Set to"true"/"1"to always use direct iframe mode (bypasses the JS widget and can help with cookie/redirect issues)
Development
Docker Setup
This repository includes a Docker Compose setup for local WordPress development.
Important: The Docker configuration mounts only the plugin file directly (read-only), protecting your repository from WordPress file operations.
To get started:
-
Start Docker containers:
bash cd compose docker-compose up -d -
Access WordPress:
- WordPress: http://localhost:8888
- Default admin credentials:
- Username:
admin - Password:
admin - Email:
admin@example.com
- Username:
These credentials are automatically set up on first run.
-
After making changes to the plugin: `bash
Sync updated plugin file to compose directory
compose/sync-plugin.sh
Restart WordPress to reload the plugin
cd compose docker-compose restart wordpress `
The plugin file is mounted read-only, so your repository remains safe from WordPress operations.
