=== Solvian Academy Connect ===
Contributors: itlegends
Tags: solvian, courses, booking, academy, training
Requires at least: 5.9
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your WordPress website directly to Solvian Academy for live course catalogs and online bookings.

== Description ==

Solvian Academy Connect integrates your WordPress website with the Solvian platform. After installation and configuration you get:

* Live course catalog sourced directly from Solvian
* Calendar with start dates per course
* Online booking form (private individuals, freelancers, and business)
* Waitlist when no dates are available
* Multi-course shopping cart
* Booking management in the WordPress admin panel
* Optional Mollie payment integration (iDEAL, creditcard, Bancontact, invoice)
* Optional Zitadel OIDC login for returning customers

= External Services =

This plugin communicates with the following external services:

* **Solvian API** (your own Solvian environment, e.g. `https://yourorg.solvian.nl`) — to fetch course catalog, availability, and submit bookings. [Solvian privacy policy](https://www.solvian.nl/privacy)
* **Mollie** (`https://api.mollie.com`) — optional, for online payment processing. Only used when payment is enabled and a Mollie API key is configured. [Mollie privacy policy](https://www.mollie.com/en/privacy)
* **Zitadel** (your own Zitadel instance) — optional, for customer login (OIDC). Only used when Zitadel login is enabled. [Zitadel privacy policy](https://zitadel.com/docs/legal/policies/privacy-policy)
No data is sent to these services without the site administrator explicitly entering API credentials.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`
2. Activate the plugin via **Plugins** in WordPress admin
3. Go to **Solvian → Settings** and enter:
   - Base URL (e.g. `https://yourorg.solvian.nl`)
   - Bearer token (obtain from Solvian or IT-Legends)
4. The required pages are created automatically on activation

= Shortcodes =

* `[solvac_courses]` — Course catalog page
* `[solvac_booking]` — Booking form
* `[solvac_my_page]` — Customer account page (requires Zitadel)
* `[solvac_cart]` — Shopping cart

== Frequently Asked Questions ==

= Do I need a Solvian account? =

Yes. You need an active Solvian Academy account and API credentials. Contact IT-Legends or Solvian to obtain these.

= Is Mollie required? =

No. Mollie integration is optional. Bookings can be submitted without payment (invoice flow). Enable Mollie in Settings → Payment when you want to offer online payment.

= Does the plugin store personal data? =

Yes. Booking data (name, email, company) is stored temporarily in a private WordPress custom post type. Enable debug mode only when troubleshooting — debug logs are stored for a maximum of 24 hours. See your privacy policy for details.

= What PHP version is required? =

PHP 7.4 or higher. Tested on PHP 8.1 and 8.2.

= How do I flush the course cache? =

Go to **Solvian → Settings** and click **Clear cache**, or run `wp solvian clear-cache` via WP-CLI.

== Screenshots ==

1. Course catalog with list and grid view
2. Course detail page with booking widget
3. Booking form with cart support
4. Admin settings panel

== Changelog ==

= 1.0.1 =
* Renamed shortcodes from solvian_* to solvac_* prefix per WordPress plugin guidelines
* Wrapped shortcode_booking output with wp_kses() to satisfy escaping requirements

= 1.0.0 =
* Initial release
* Live course catalog from Solvian API
* Online booking form
* Shopping cart for multi-course bookings
* Mollie payment integration (iDEAL, creditcard, Bancontact, invoice)
* Zitadel OIDC login integration
* Booking management in WordPress admin
* WP-CLI commands for cache management

== Upgrade Notice ==

= 1.0.0 =
Initial release.
