=== CookiePrime - Consent Management Platform ===
Contributors: samirprime
Tags: cookie consent, gdpr, cookie banner, google consent mode, ccpa, woocommerce, e-commerce, kvkk, pipeda, lgpd, pdpa, privacy, compliance, cmp, consent management
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Professional cookie consent with Google Consent Mode v2. GDPR, CCPA, KVKK compliant. 28 languages including Turkish, Arabic, Japanese, Korean, Indonesian, Thai, Hebrew. Full WooCommerce support.

== Description ==

CookiePrime adds a customizable cookie consent banner to your WordPress site. It helps you comply with all major privacy regulations including GDPR, CCPA, CPRA, KVKK (Turkey), PIPEDA (Canada), LGPD (Brazil), PDPA (Singapore/Thailand), and more.

**🌍 28 Languages Supported** - Auto-detects visitor's browser language:
- **European**: English, French, German, Spanish, Italian, Dutch, Portuguese, Swedish, Danish, Norwegian, Finnish, Greek, Polish, Czech, Hungarian, Romanian, Slovak, Slovenian, Bulgarian
- **Middle East**: 🇹🇷 Turkish, 🇸🇦 Arabic, 🇮🇱 Hebrew
- **Asia**: 🇯🇵 Japanese, 🇰🇷 Korean, 🇮🇩 Indonesian, 🇹🇭 Thai, 🇨🇳 Chinese (Simplified)

**🛒 WooCommerce Ready** - Full support for WooCommerce stores with HPOS compatibility

### Features

* **Google Consent Mode v2** - Fully compatible with Google Analytics and Google Ads
* **Compliance Ready** - GDPR, CCPA, CPRA, KVKK, PIPEDA, LGPD, PDPA compliant
* **28 Languages** - Auto-detects visitor's browser language
* **4 Banner Styles** - Modern, Classic, Minimal, and Premium designs
* **Automatic Cookie Scanning** - We detect and categorize cookies for you
* **Region-Aware** - Shows different options for EU, US, and other visitors
* **Floating Settings Button** - Lets visitors change their mind anytime
* **RTL Support** - Full support for Arabic, Hebrew, and other RTL languages
* **Works with Other Plugins** - Compatible with WP Consent API
* **🛒 WooCommerce Integration** - Full support for WooCommerce cookies and checkout
* **IAB TCF v2.2** - Google CMP Partner Program compliant
* **HPOS Compatible** - Full support for WooCommerce High-Performance Order Storage

### Compliance Frameworks

| Framework | Region | Status |
|-----------|--------|--------|
| **GDPR** | European Union | ✅ Fully compliant |
| **CCPA/CPRA** | California, USA | ✅ Fully compliant |
| **KVKK** | Turkey | ✅ Fully compliant |
| **PIPEDA** | Canada | ✅ Fully compliant |
| **LGPD** | Brazil | ✅ Fully compliant |
| **PDPA** | Singapore/Thailand | ✅ Fully compliant |

### WooCommerce Integration

CookiePrime automatically detects and manages all WooCommerce cookies:

✅ **Cart cookies** - `woocommerce_cart_hash`, `woocommerce_items_in_cart`
✅ **Session cookies** - `wp_woocommerce_session_*` 
✅ **Recently viewed** - `woocommerce_recently_viewed`
✅ **All categorized as "functional"** - Never blocked, always working
✅ **Consent recorded with orders** - Complete GDPR audit trail
✅ **Works with all WooCommerce extensions** - PayPal, Stripe, Subscriptions, and more
✅ **HPOS Compatible** - Full support for WooCommerce 8.0+ High-Performance Order Storage

No configuration needed. Just install and activate.

### How It Works

1. **Sign up** at cookieprime.com (free 10-day trial, no credit card)
2. **Add your domain** to your CookiePrime dashboard
3. **Install this plugin** and enter your API Key
4. **Customize your banner** at cookieprime.com/banner.html

That's it. The banner appears on your site immediately.

== External Services ==

This plugin relies on an external asset delivery network to serve the core consent banner engine efficiently to storefronts. 

It loads a remote JavaScript bundle from Google Cloud Storage:
* Service URL: https://storage.googleapis.com/cookieprime_bucket/public/loader.js
* Purpose: Delivers the live end-user cookie banner interface and execution logic seamlessly.
* Data transmitted: No personal identifiable information (PII) or customer data is tracked or transmitted to this storage bucket. It purely reads asset definitions.
* Terms & Privacy: This delivery framework operates under the CookiePrime architecture. You can review our Terms of Service (https://cookieprime.com/terms) and Privacy Policy (https://cookieprime.com/privacy).

== Installation ==

**Automatic Installation**

1. Go to Plugins > Add New
2. Search for "CookiePrime"
3. Click Install Now, then Activate
4. Go to Settings > CookiePrime and enter your API Key

**Manual Installation**

1. Download the plugin ZIP from cookieprime.com
2. Go to Plugins > Add New > Upload Plugin
3. Choose the ZIP file and click Install Now
4. Click Activate Plugin
5. Go to Settings > CookiePrime and enter your API Key

**Get your API Key:**
1. Create an account at cookieprime.com
2. Add your domain to your dashboard
3. Copy the API Key (Domain ID)

== Frequently Asked Questions ==

= What privacy regulations does CookiePrime support? =

CookiePrime supports all major privacy regulations including:
- **GDPR** (European Union)
- **CCPA/CPRA** (California, USA)
- **KVKK** (Turkey)
- **PIPEDA** (Canada)
- **LGPD** (Brazil)
- **PDPA** (Singapore, Thailand)

= Does CookiePrime support my language? =

CookiePrime supports 28 languages:
- **European**: English, French, German, Spanish, Italian, Dutch, Portuguese, Swedish, Danish, Norwegian, Finnish, Greek, Polish, Czech, Hungarian, Romanian, Slovak, Slovenian, Bulgarian
- **Middle East**: Turkish, Arabic, Hebrew (RTL support)
- **Asia**: Japanese, Korean, Indonesian, Thai, Chinese (Simplified)

The banner auto-detects your visitor's browser language.

= Does CookiePrime work with WooCommerce? =

Yes! CookiePrime 2.0+ includes full WooCommerce support. All WooCommerce cookies are automatically detected and categorized as "functional" (never blocked). Consent is also recorded with each order for GDPR compliance.

= Is CookiePrime compatible with WooCommerce 8.0+ and HPOS? =

Yes! CookiePrime 2.0+ is fully compatible with WooCommerce 8.0+ and High-Performance Order Storage (HPOS). The order consent meta box works correctly on both legacy and HPOS-enabled installations.

= Do I need to configure anything for WooCommerce? =

No. CookiePrime automatically detects WooCommerce when it's installed and handles everything. Just enter your API Key and you're ready.

= Will WooCommerce cookies be blocked? =

Never. WooCommerce cookies like `wp_woocommerce_session_*`, `woocommerce_cart_hash`, and `woocommerce_items_in_cart` are set as "functional" cookies. They are essential for your store to work and are never blocked.

= Is consent saved with WooCommerce orders? =

Yes. When a customer completes an order, their consent status is saved with the order metadata. This provides a complete GDPR audit trail. You can view this in the order admin screen under "Cookie Consent".

= Does it work with WooCommerce Subscriptions? =

Yes. CookiePrime works with all WooCommerce extensions including Subscriptions, Memberships, and payment gateways.

= Do I need technical skills? =

No. The basic setup takes less than 10 minutes. Choose a banner, copy your API Key, paste it in WordPress.

= How do I add my logo to the banner? =

Upload a file named `logo.png` (64x64 pixels) to the root of your website. For example: `https://yourdomain.com/logo.png`

= What's the difference between Standard and Advanced Mode? =

* **Standard Mode (Recommended):** Google tags are paused until the visitor accepts cookies.
* **Advanced Mode:** Google tags load immediately (turned off) and switch on when the visitor accepts.

= Is CookiePrime compatible with the Google CMP Partner Program? =

Yes. CookiePrime is fully compliant with Google Consent Mode v2 and the IAB TCF v2.2 framework.

= Will this work with my existing plugins? =

Yes. CookiePrime is compatible with the WP Consent API, so other plugins that support it will respect your visitor's choices.

= How long does the free trial last? =

10 days. No credit card required.

= What happens after the trial? =

You can choose a paid plan or your account will be paused. The banner will stop appearing until you subscribe.

== Screenshots ==

1. The CookiePrime settings page in your WordPress admin
2. The cookie banner as it appears on your website
3. The preferences drawer where visitors can change their choices
4. The Google Consent Mode configuration options
5. WooCommerce integration settings and cookie detection
6. Language selection showing 28 supported languages
7. Order consent meta box in WooCommerce order admin

== Changelog ==

= 2.0.0 =
* 🛒 **WooCommerce Integration** - Full support for WooCommerce cookies and checkout
* ✅ Automatic detection of all WooCommerce cookies
* 📝 Consent recorded with WooCommerce orders for GDPR audit
* 🎨 New WooCommerce settings card in admin
* 🔒 All WooCommerce cookies set as "functional" (never blocked)
* 📊 WooCommerce cookie status display in admin
* 🌍 28 languages supported including Turkish, Arabic, Japanese, Korean, Indonesian, Thai, Hebrew
* 📋 Full compliance: GDPR, CCPA, KVKK, PIPEDA, LGPD, PDPA
* 🇸🇦 RTL language support for Arabic and Hebrew
* 🔧 HPOS (High-Performance Order Storage) compatibility
* 🐛 Fixed: HPOS meta box crash on order details screen
* 🐛 Fixed: Infinite filter hook memory leak
* 🐛 Fixed: WooCommerce 8.0+ compatibility issues
* ⚡ Performance improvements for cookie blocking
* 📖 Updated documentation with WooCommerce integration guide

= 1.0.0 =
* Initial release
* Google Consent Mode v2 support
* 4 banner styles
* WP Consent API integration
* Floating settings button
* European language support

== Upgrade Notice ==

= 2.0.0 =
This major update adds full WooCommerce integration, HPOS compatibility, 28 languages including Turkish, Arabic, Japanese, Korean, Indonesian, Thai, and Hebrew, plus full compliance with GDPR, CCPA, KVKK, PIPEDA, LGPD, and PDPA. All WooCommerce cookies are automatically managed as "functional" cookies and consent is recorded with orders for complete audit trails. This version is fully compatible with WooCommerce 8.0+ and HPOS.

= 1.0.0 =
Initial release with Google Consent Mode v2, 4 banner styles, WP Consent API integration, and floating settings button.