=== SPP Cart Value Enforcer ===
Contributors: simpliplugin
Tags: woocommerce, cart, checkout, minimum order, cart value
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Enforce a minimum cart subtotal during WooCommerce checkout to protect operational margins.

== Description ==

SPP Cart Value Enforcer protects operational margins by enforcing baseline cart value restrictions on transactional tasks throughout active checkout runs.

When a customer attempts to checkout with a cart subtotal below your configured minimum, the plugin blocks processing and displays a localized warning message.

**Features:**

* Enforces minimum cart subtotal at checkout
* Validates during checkout processing via `woocommerce_checkout_process`
* Also validates cart items before checkout for early feedback
* Simple settings page under WooCommerce
* Fully translatable
* Compatible with WooCommerce High-Performance Order Storage (HPOS)

== Installation ==

1. Upload the `spp-cart-value-enforcer` folder to the `/wp-content/plugins/` directory, or install through the WordPress plugins screen.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Ensure WooCommerce is installed and active.
4. Go to **WooCommerce > Cart Value Enforcer** and set your minimum cart subtotal.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes. WooCommerce must be installed and active.

= What cart value is checked? =

The plugin checks `WC()->cart->subtotal`, which is the cart subtotal before taxes and shipping.

= How do I disable enforcement? =

Set the minimum subtotal to `0` in the settings page.

== Screenshots ==

1. Cart Value Enforcer settings page under WooCommerce.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
