=== DZQCOD — Quick Order & COD Management for WooCommerce ===
Contributors: nibratechnology
Donate link: https://dzqcod.nibra.cloud
Tags: cod, quick order, cash on delivery, woocommerce, order form
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Stable tag: 3.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Complete COD e-commerce solution for WooCommerce — quick order forms, call center, shipping, printing, and more. Built for MENA & African markets.

== Description ==

**DZQCOD** is the all-in-one Cash on Delivery (COD) management plugin for WooCommerce. Designed for markets where COD is the primary payment method (MENA, Africa, South Asia), it replaces the default WooCommerce checkout with a fast, mobile-optimized quick order form.

= Key Features =

**Quick Order Form**
* One-page order form replaces WooCommerce checkout
* Mobile-first responsive design with RTL support
* Customizable fields, colors, fonts, and layout
* 14 pre-designed form templates
* Quantity-based pricing tiers
* Product variants (colors, sizes)
* Real-time shipping cost calculation

**Order Management**
* Custom order statuses (Confirmed, Callback, No Answer, Cancelled, Fake, Postponed, Duplicate)
* Built-in call center with click-to-call
* Order notes and status history
* Bulk status updates
* Print-ready delivery slips

**Shipping Integration**
* 19 international shipping providers
* Country-specific shipping zones
* Home delivery and desk pickup options
* Automatic shipping cost by region

**Smart Features**
* Abandoned cart recovery
* Fraud detection scoring
* Customer auto-account creation with phone lookup
* Phone number validation by country
* WhatsApp order notifications
* SMS integration (13 providers)
* Meta Pixel & TikTok CAPI integration

**Analytics & Reporting**
* Profit calculator with Excel export
* Campaign tracking
* Conversion analytics
* A/B testing for offers

**Payment Options**
* Cash on Delivery (default)
* Chargily Pay integration
* BaridiMob support
* Extensible payment gateway system

= Pro Features =

* Advanced form templates
* Priority shipping integrations
* Extended SMS providers
* Custom product configurator
* Sales boost tools (countdown, urgency, social proof)
* POS (Point of Sale)
* Workshop management
* Digital product delivery
* Multi-currency support

= Who Is This For? =

* E-commerce store owners in MENA & Africa
* COD-based businesses worldwide
* Dropshipping stores
* Any WooCommerce store wanting a faster checkout

== Installation ==

1. Upload the `dzqcod` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to **DZQCOD** in the admin sidebar to configure
4. Set your country, currency, and shipping options
5. The quick order form will automatically appear on product pages

= Minimum Requirements =

* WordPress 6.0 or greater
* WooCommerce 7.0 or greater
* PHP 7.4 or greater

== Frequently Asked Questions ==

= Does this plugin work with any WooCommerce theme? =

Yes, DZQCOD works with all standard WooCommerce-compatible themes. The quick order form automatically replaces the default WooCommerce add-to-cart on product pages.

= Can I keep the default WooCommerce checkout? =

Yes, you can disable the form replacement in Settings. You can also use the `[dzqcod_order]` shortcode to place the form anywhere.

= Does it support RTL languages? =

Yes, DZQCOD has full RTL support and comes with Arabic translations built-in. It supports Arabic fonts including Tajawal, Cairo, Almarai, and more.

= Is it GDPR compliant? =

DZQCOD stores order data within WooCommerce's standard order system. Analytics telemetry can be opted out in Settings.

= Can I use this for countries other than Algeria? =

Yes! While originally designed for Algeria, DZQCOD supports multiple countries with configurable currency, phone formats, and shipping providers.

== Screenshots ==

1. Quick order form on product page
2. Admin dashboard with order management
3. Call center interface
4. Shipping configuration
5. Form design customizer
6. Profit calculator

== Changelog ==
= 3.1.0 =
* Security: Fixed SQL injection in fraud_check() — uses $wpdb->prepare()
* Security: SSL verification enabled by default for License API
* Security: License key removed from telemetry, sends SHA-256 hash only
* Feature: OTP resend handler with rate limiting (max 3/hour)
* Feature: Telemetry opt-out option in Settings
* Feature: RBAC backend enforcement for admin menus
* Feature: Dark mode support for order form
* Feature: Complete TelegramBot with order notifications + status changes
* i18n: Translation support with load_plugin_textdomain()
* Code: HPOS + Legacy support in fraud check
* Code: CSS scoping to prevent theme conflicts
* API: Migrated to NIBRA License Server (productes.nibra.cloud)

= 3.0.8 =
* New: Form design system with layout options (stacked, inline, compact)
* New: Input styles (bordered, underline, filled)
* New: Font control with 6 Arabic font families
* New: Auto-account creation with phone lookup
* New: Profit calculator with Excel export
* New: NIBRA Admin Panel v3 for cloud management
* Fix: Payment settings page reorganized
* Fix: License page UI improvements
* Fix: PHP compatibility fixes for WordPress 6.7+

= 3.0.7 =
* New: Cloud addon store with remote installation
* New: 13 SMS provider integrations
* New: International shipping with 19 providers
* New: Multi-currency support
* New: Settings reorganization with tabbed interface
* New: Digital product delivery system
* New: Cost price and profit tracking

= 3.0.4 =
* New: POS (Point of Sale) system
* New: Workshop management
* New: Telemetry and error reporting
* New: A/B testing for offers
* Improved: Order detail page redesign
* Improved: Bulk actions performance

= 3.0.0 =
* Complete rewrite with modular architecture
* New: Call center module
* New: Campaign management
* New: Fraud detection
* New: Sales boost tools
* New: Custom product configurator

== Upgrade Notice ==

= 3.0.8 =
This version includes important bug fixes for PHP 8.x compatibility and WordPress 6.7+. Update recommended.

== Additional Info ==

For documentation, support, and premium plans, visit [dzqcod.nibra.cloud](https://dzqcod.nibra.cloud).
