=== Dokan Kits ===
Contributors: wpintegrity,tanvirh
Donate link: https://wpintegrity.com/donate
Tags: dokan, dokan pro, woocommerce, multivendor marketplace, vendor tools
Requires at least: 6.4.2
Tested up to: 6.8
Stable tag: 3.1.4
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Dokan Kits helps you customize Dokan and Dokan Pro marketplaces with focused vendor, product, cart, and shipping controls.

== Description ==

Dokan Kits is a lightweight enhancement plugin for WooCommerce + Dokan marketplaces. It gives marketplace admins practical controls for vendor registration, product form visibility, publishing flow, order handling, and cart behavior without editing theme or core plugin files.

Built for modern Dokan stores, Dokan Kits keeps compatibility with current Dokan updates and offers a clean settings dashboard so you can enable only what you need.

🚀 **Improve vendor experience and marketplace operations with focused Dokan tools.**

== Free Features ==

**✅ Vendor Management**

* Registration control and customization
* Become vendor button visibility control
* Self-purchase permission settings
* Vendor dashboard customization
* Default seller role assignment
* Dokan 5 compatible vendor capability controls

**✅ Product Management**

* Product type control (Variable, External, Grouped)
* Field visibility controls
* Add to cart button customization
* Direct product publishing workflow control
* Advanced feature restrictions

**✅ Order & Cart Management**

* Auto-complete digital orders
* Cart button customization
* Checkout optimization

**✅ Shipping Controls**

* Split shipping management
* Shipping calculation optimization

== 🚀 Premium Add-ons for Dokan ==

**🛍️ [Product Catalog Mode](https://wpintegrity.com/addons/product-catalog-mode/)**

* ✅ Admin-managed product catalog flow for Dokan stores
* ✅ Marketplace browsing without immediate checkout
* ✅ Better catalog control for wholesale and inquiry-driven stores

**🗂️ [Vendor Media Manager](https://wpintegrity.com/addons/vendor-media-manager/)**

* ✅ Dedicated media management screen for vendors
* ✅ Faster image selection and reuse in vendor workflow
* ✅ Cleaner product media handling for growing marketplaces

**💎 [Vendor Product Video Gallery](https://wpintegrity.com/addons/vendor-product-video-gallery/)**

* ✅ Self-hosted video uploads
* ✅ YouTube & Vimeo embedding
* ✅ Customizable video player
* ✅ Drag-and-drop uploads
* ✅ Video preview functionality
* ✅ File size restrictions
* ✅ REST API integration

**📸 [Vendor Product Image Upload Limit](https://wpintegrity.com/addons/vendor-product-image-upload-limit/)**

* ✅ Enforce exact image dimensions
* ✅ Set maximum file size limits
* ✅ Restrict number of images per product
* ✅ Client & server-side validation
* ✅ Vendor requirement notices

**🎁 [Vendor Product Bundles](https://wpintegrity.com/addons/vendor-product-bundle/)**

* ✅ Flexible product bundling
* ✅ Dynamic pricing options
* ✅ Intelligent stock management
* ✅ Multiple bundle types
* ✅ Percentage & fixed discounts

**💰 [Vendor Smart Coupons Display](https://wpintegrity.com/addons/vendor-smart-coupons-display/)**

* ✅ Display existing vendor coupons on product and cart pages
* ✅ One-click coupon application with real-time feedback
* ✅ Multiple layout options (list, checkbox, grid views)
* ✅ Smart filtering of applied and expired coupons
* ✅ REST API for retrieving vendor coupons
* ✅ Template override system for customization

== Installation ==

= Requirements =

* WordPress 6.4.2 or higher
* WooCommerce 9.8 or higher
* Dokan Lite 5.0.0 or higher
* PHP 7.4 or higher (8.0+ recommended)

= How to Install =
1. Upload the plugin files to the `/wp-content/plugins/dokan-kits` directory, or install the plugin through the WordPress plugins screen directly
2. Activate the plugin through the 'Plugins' screen in WordPress
3. Navigate to the Dokan Kits menu in your WordPress admin to configure settings

== Frequently Asked Questions ==

= Is Dokan Kits compatible with Dokan Pro? =

Yes, Dokan Kits is compatible with both Dokan Lite and Dokan Pro. Several feature controls are designed specifically for Dokan Pro modules.

= Will this plugin slow down my site? =

No, Dokan Kits is built with performance in mind. It uses modern development practices and only loads resources when needed.

= Can I control which features to enable? =

Yes, all features in Dokan Kits can be individually enabled or disabled according to your specific needs.

= Is this plugin translation-ready? =

Yes, Dokan Kits is fully translatable. You can translate it into your language using standard WordPress translation tools.

= Does it work with custom Dokan themes? =

Yes, Dokan Kits is designed to work with any theme that is compatible with Dokan.

== Screenshots ==

1. Main Dashboard - Overview of all Dokan Kits features and settings
2. Vendor Settings - Configure vendor management options
3. Product Settings - Control product features and restrictions
4. Shipping Controls - Manage shipping behavior across vendors

== Changelog ==

= 3.1.4 - Apr 30, 2026 =
* Compatibility: Updated Dokan 5 product editor integrations for feature visibility controls
* Compatibility: Added modern Dokan hook support for direct product publishing and own-product purchase behavior
* Changed: Removed obsolete feature toggles no longer needed with Dokan/Dokan Pro 5 workflows
* Added: Added Vendor Media Manager to About page premium add-ons section
* Improved: Refreshed readme content structure for clearer feature discovery and better SEO

= 3.1.3 - Apr 27, 2026 =
* Fixed: Ensure settings are created and saved by settings group to prevent save failures in multisite/fresh-site contexts

= 3.1.2 - Apr 25, 2026 =
* Changed: Updated contributor/developer listings

= 3.1.1 - Apr 25, 2026 =
* Changed: Added Product Catalog Mode to premium add-ons list
* Changed: Updated premium add-on links to the new WPIntegrity add-ons pages

= 3.1.0 - Apr 07, 2026 =
* Fixed: Fix settings save issue

= 3.0.9 - Oct 30, 2025 =
* Changed: Update webpack configuration to use single alias for src directory
* Changed: Replace fetch API calls with WordPress apiFetch for consistency
* Changed: Improve import paths across admin components
* Fixed: Resolve linting issues: unused variables, i18n translation errors, camelCase violations
* Fixed: Fix image loading issues in about page with fallback to local logo
* Fixed: Correct React hook dependencies in use-structure.js
* Fixed: Fix setting save issue from features page

= 3.0.8 - Sep 14, 2025 =
* Changed: Update plugin icons, banner, and screenshots for refreshed branding and improved visual clarity
* Changed: Bump plugin version to 3.0.8 and update documentation version markers across project

= 3.0.7 - Sep 14, 2025 =
* Changed: Bump plugin version to 3.0.7 and update documentation version markers across project
* Fix: Critical issue during plugin activation that could prevent proper initialization under certain dependency conditions

= 3.0.6 - Aug 09, 2025 =
* Fix: Remove caching logic from template manager and update exception types in settings element
* Fix: Remove unused cache group properties and simplify cache handling in data store classes
* Fix: Refactor settings retrieval to use SettingsDataStore for improved consistency and maintainability
* Fix: Refactor SettingsDataStore read method, improve validation, enhance exception handling, and add return type declarations
* Fix: Update PHPUnit configuration and IDE settings for improved test suite handling and compatibility
* Fix: Enhance SettingsDataStore validation and error handling, introduce specific exceptions, and improve code consistency
* Fix: Simplify callback usage in SettingsControllerTest to improve readability and reduce verbosity
* Fix: Improve CSS output for product fields by enhancing element identification and escaping logic
* Fix: Remove unused SettingsDataStore import from SettingsController
* Fix: Replace outdated Logger unit tests with Settings model tests, introduce enhanced validation, better error handling, and force cache bypass logic for Settings API
* Fix: Improve settings management by ensuring database consistency, adding validation, enhancing error handling, and introducing force cache bypass functionality
* Fix: Resolve critical issue in plugin dependency management

= 3.0.5 - Jul 28, 2025 =
* Fix: Resolve an critical issue on plugin dependency management.

= 3.0.4 - Jul 22, 2025 =
* Added support for card-select field components in admin interface
* Enhanced API extensibility with improved REST endpoint handling
* Integrated Freemius SDK for better licensing and analytics
* Migrated from Dashicons to Lucide React icons across admin interface
* Improved settings data store with enhanced group handling and type casting
* Added comprehensive GitHub Actions workflows for CI/CD automation
* Enhanced developer documentation and code standards
* Removed unused constants and cleaned up legacy code
* Updated dependency management and project configuration
* Improved error handling and debug mode functionality

= 3.0.3 - Jul 02, 2025 =
* Fixed settings save and retrieval issues

= 3.0.2 - June 30, 2025 =
* Improved UI for ErrorBoundary: centered Dashicon error icon, modern layout
* Refactored Not Found page for consistent, professional UI
* Updated Tools page with hero/title section and card-based layout
* Ensured Tools REST controller is registered and follows best practices
* General UI/UX consistency improvements across admin pages

= 3.0.1 - June 24, 2025 =
* Fixed a critical issue with setting data store

= 3.0.0 - June 23, 2025 =
* Complete rewrite with modern architecture
* New React-based admin interface
* Improved performance and security

= 2.0.2 =
* Update restriction only for vendors for the image upload dimensions and size

== Upgrade Notice ==

= 3.0.1 =
Fixed a critical issue with setting data store. Please update to ensure proper functionality.

= 3.0.0 =
Major update with modern architecture, new React-based interface, and many new features. Please back up before upgrading.
