=== Controlled COD Restriction ===
Contributors: anythingmakers
Tags: woocommerce, cod, cash on delivery, payment restriction, category restriction
Requires at least: 5.8
Tested up to: 6.8
Stable tag: 1.1.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A smart WooCommerce plugin that gives you total control over Cash on Delivery (COD) payments — restrict by category, limit by order's total, and more!

== Description ==

**Controlled COD Restriction** is a lightweight yet powerful WooCommerce plugin that helps store owners manage and optimize **Cash on Delivery (COD)** orders with precision.

Tired of unwanted COD orders or fake cancellations? This plugin empowers you to **control when, how, and for whom COD is available**.

### 🎯 Key Features
- ✅ **Restrict COD by Category** – Allow COD only for specific product categories.  
- 💰 **Set Maximum COD Order Value** – Limit COD availability based on total order amount.   
- 🔒 **Advanced Controls Available** – Extend functionality for additional rules and fees if desired.

### 💎 Paid Features
- Auto Block and Unblock Users who violate COD and do not receive order  
- A dedicated shortcode to display Categories on which COD is available  
- COD Tax/Fee implementation    

Built for performance, **Controlled COD Restriction** works seamlessly with your existing WooCommerce setup — no bloat, no conflicts, just **clean functionality that delivers**.

### 💡 Why Choose Controlled COD Restriction?
- No complex setup — install, configure, and start controlling COD in minutes.  
- 100% compatible with the **latest WordPress & WooCommerce versions**.  
- Built with security and scalability in mind.

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/controlled-cod-restriction/`, or install directly from the WordPress Plugin Directory.  
2. Activate the plugin through the **Plugins** screen in WordPress.  
3. Navigate to **WooCommerce → Settings → Payments → Controlled COD Restriction** to enable it.
4. Configure additional options from the plugin’s dedicated **Admin Menu** in your WordPress dashboard.

== Frequently Asked Questions ==

= Does this plugin affect other payment methods? =
No. Controlled COD Restriction only manages the Cash on Delivery (COD) payment option. All other payment methods remain unaffected.

= How can I allow COD for all product categories? =
Leave the “Category Restriction” field empty to make COD available for all products.

= Can I Skip Order total based restriction? =
Yes, you can. Just leave the order total field empty and the order total based restriction will not be applied.

= Will this plugin slow down my website? =
Not at all. The plugin is optimized for performance and follows WordPress coding standards.

== Changelog ==

= 1.1.0 =
* Added support for WooCommerce Block Checkout pages.
* Declared compatibility with WooCommerce High-Performance Order Storage (HPOS).
* Improved script enqueue logic for block checkout support.
* General code cleanup and performance improvements.
* Select2 Integration for category selector

= 1.0.0 =
Intial Release


== Credits ==
Developed with ⚡ passion by Anything Makers Team
