=== VINACLES API Shop ===
Contributors: Vinacles
Requires at least: 6.0  
Tested up to: 6.9  
Requires PHP: 8.3  
Stable tag: 3.1.0
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Connect your shop to an external API with Mollie payment, multilingual support, and custom checkout.

== Description ==

**Vinacles API Shop** allows you to create and manage products inside WordPress, and connects seamlessly to an external Laravel-based API for order processing. It features:

- Mollie payment integration
- Multilingual product support (EN/NL)
- Admin interface for order history
- Custom checkout experience
- PDF generation and downloads
- Order filtering (status, date, ID)
- Auth0 integration for secure API authentication

Built using modern technologies such as Tailwind CSS and Vite, it offers a clean admin UI and optimized frontend rendering.

== Installation ==

1. Upload the plugin ZIP file to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' screen in WordPress
3. Go to **Settings → API Shop** to configure your environment

You'll need:

- Auth0 domain, client ID, client secret
- External API URL (e.g., `https://api.vinacles.com/shop/v1.0`)
- External API token
- Mollie API key

Once configured, you can start adding products via the admin menu and customers will be able to order them via the frontend.

== Screenshots ==

1. **General Settings panel**
2. **Order History view with filters**
3. **Custom product edit form**
4. **Frontend product list with multilingual support**

Screenshots and directory assets are managed in the WordPress.org SVN `assets/` directory after plugin approval.

== Frequently Asked Questions ==

= Does it work with WooCommerce? =  
No, this is a standalone solution tailored for external API integration.

= Can I change the payment provider? =  
Currently, only Mollie is supported.

= Does it support digital and physical products? =  
Yes. It conditionally handles shipping address fields based on product type.

== Changelog ==

= 3.1.0 =
* Release 3.1.0



= 2.9.1 =
* Fixed Plugin Check input warnings
* Escape JSON output and harden inline runtime data
* Sanitize file and translation input paths
* Store plugin config in options instead of files
* Fixed plugin path and URL resolution
* Updated docs and pipelines to use vinacles-api-shop slug

= 2.9.0 =
* Renamed Exportshop to Webshop and updated company branding to Vinacles
* Gate shop display until admin settings are validated
* Added nonce verification for REST order endpoint, admin product actions, and AJAX order fetch
* Added capability check (manage_options) for admin product actions
* Replaced hardcoded asset tags with WordPress enqueue system
* Added ABSPATH guards to all PHP files and extracted inline admin script
* Refreshed admin UI with reusable component styles (cards, buttons, status pills, tables)
* Settings page now shows validation status badge and last validation timestamp
* Removed "Powered by Vinacles" banner from frontend templates
* Updated .distignore to exclude WordPress.org directory assets and bundled CA cert
* Fixed start date select styling inconsistency across product pages
* Fixed chassis number validation error translation

= 2.8.3 =
* Added ABSPATH direct access protection to all PHP files
* Fixed variable prefixing with wpas_ per WordPress coding standards
* Fixed PHP namespace declaration order in admin controllers
* Fixed lazy loading for OrderFetchService to prevent activation errors
* Fixed undefined variable errors in templates
* Fixed HTML rendering in settings validation messages
* Updated dependencies and fixed npm security vulnerabilities

= 2.8.2 =
* Fixed Plugin Check compliance with output escaping
* Removed external resource loading for WordPress.org submission

= 2.8.1 =
* update deploy pipeline trigger for tags

= 2.8.0 =
* Added CI/CD pipeline for automated WordPress.org releases
* Added tag-based release workflow (push v* tag to deploy)
* Added Conventional Commits support with auto-changelog generation
* Added version bump and changelog generation scripts
* Added .distignore for clean distribution builds
* Added Azure DevOps variable group setup script
* Improved build pipeline with Vite frontend asset compilation

= 2.7.0 =
* Added image map display in admin modal
* PDF loop and rendering improvements
* Tailwind design refinements
* Seeder ID alignment with Laravel backend
* Order history filtering expanded
* Improved checkout form (billing + shipping)

= 2.6.0 =
* Initial version with multilingual products and Mollie integration

== Upgrade Notice ==

= 2.7.0 =
Major feature upgrade: if you're using an older version, we recommend backing up your settings before upgrading.

== License ==

This plugin is licensed under the GPLv3 or later.

GPLv3 provides strong copyleft protection, explicit patent rights, and improved international compatibility. See https://www.gnu.org/licenses/gpl-3.0.html for details.
