=== RSWPThemes Update Cart on Checkout for WooCommerce ===
Contributors: rswpthemes
Tags: woocommerce, checkout, cart, quantity, ajax
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 8.0
Stable tag: 1.0.2
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
WC requires at least: 3.0.0
WC tested up to: 10.3.5

Update product quantities and remove items directly on the WooCommerce checkout page using AJAX, without any page reloads.

== Description ==

**RSWPThemes Update Cart on Checkout for WooCommerce** enhances the WooCommerce checkout experience by allowing customers to modify cart item quantities and remove items directly on the checkout page without reloading[cite: 39]. This plugin uses AJAX for seamless updates, ensuring a smooth and efficient user experience[cite: 40].

By default, WooCommerce requires customers to go back to the cart page to make changes. This plugin eliminates that extra step, reducing cart abandonment and improving user satisfaction[cite: 47]. It integrates seamlessly with WooCommerce and requires minimal configuration[cite: 48].

### 🔥 Key Features
* **Update Quantities on Checkout**: Customers can adjust product quantities using intuitive increment (+/-) buttons or by entering values manually[cite: 41].
* **Remove Items**: Option to remove items from the cart directly on the checkout page[cite: 42].
* **Category-Specific Control**: Restrict quantity updates to specific product categories via admin settings[cite: 43].
* **Customizable Delete Button**: Choose to hide the delete button or customize its icon (e.g., ×, 🗑️, or HTML)[cite: 44].
* **AJAX-Powered Updates**: Real-time cart updates without page reloads[cite: 45].
* **High-Performance Order Storage (HPOS) Compatible**: Fully compatible with WooCommerce’s modern order storage system[cite: 45].
* **Secure and Lightweight**: Built with WordPress best practices, including nonce verification and input sanitization[cite: 46].

== Documentation & How to Use ==

After installation, go to your WordPress Dashboard and click on **RSWP UCOC** in the sidebar to configure the plugin[cite: 2, 49].

### ⚙️ Plugin Settings Guide

**1. Enable Quantity Field on Checkout:**
Activate or deactivate the quantity update functionality[cite: 11]. When enabled, customers will see quantity input fields (+/-) on the checkout page.

**2. Hide Delete Button:**
Hide the delete button for products on checkout[cite: 13]. Enable this if you do not want customers to remove items at the final step.

**3. Allowed Product Categories:**
Select categories where quantity fields should appear. Leave empty to apply to all products[cite: 15]. Hold `Ctrl` (Windows) or `Cmd` (Mac) to select multiple categories.

**4. Delete Button Icon:**
Enter the delete button icon (e.g., ×, 🗑️, or HTML code)[cite: 17]. The default is the '×' symbol[cite: 18].

== Installation ==

= From your WordPress dashboard =
1. Visit 'Plugins > Add New'[cite: 48].
2. Search for 'RS WP THEMES Update Cart On Checkout For WooCommerce'[cite: 48].
3. Activate RS WP THEMES Update Cart On Checkout For WooCommerce from the Plugins page[cite: 48].
4. Ensure WooCommerce is installed and active, as this plugin requires it[cite: 48].
5. Go to **Dashboard > RSWP UCOC** in the WordPress admin to configure settings (e.g., enable quantity fields, hide delete button, or select allowed categories)[cite: 49].

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =
Yes, this plugin requires WooCommerce to be installed and active[cite: 50]. It will automatically deactivate if WooCommerce is not detected[cite: 51].

= Can I restrict quantity updates to specific product categories? =
Yes, you can select specific product categories in the plugin settings to limit where quantity fields appear[cite: 52]. If no categories are selected, the feature applies to all products[cite: 53].

= How do I customize the delete button? =
In the plugin settings (Dashboard > RSWP UCOC), you can choose to hide the delete button or specify a custom icon (e.g., ×, 🗑️, or HTML code)[cite: 54].

= Is this plugin compatible with WooCommerce HPOS? =
Yes, the plugin is fully compatible with WooCommerce’s High-Performance Order Storage (HPOS)[cite: 55].

= Does it support AJAX updates? =
Yes, all cart updates (quantity changes and item removals) are handled via AJAX for a seamless user experience[cite: 56].

== Screenshots ==

1. **Checkout Updates:** Customers updating their cart quantities seamlessly on the checkout page.
2. **Settings Panel:** The simple configuration dashboard under 'RSWP UCOC'.

== Changelog ==

= 1.0.2 - Nov 24, 2025 =
* Fully sanitized and validated all $_POST, $_GET, and request data[cite: 57].
* Escaped all echoed variables and translated strings using proper esc_*() functions[cite: 58].
* Replaced _e() and _ex() with secure escaping alternatives[cite: 59].
* Removed code that modified activation status of other plugins[cite: 59].
* Implemented WordPress Plugin Dependencies (WP 6.5+) where required[cite: 60].
* Added unique and consistent prefix to all functions, classes, constants, and options to prevent conflicts[cite: 60].
* Refactored admin markup to meet WordPress escaping guidelines[cite: 61].
* Cleaned up codebase to align with WordPress Plugin Review Team requirements[cite: 61].
* Improved overall plugin security, maintainability, and compatibility[cite: 62].

= 1.0.1 - Jun 15, 2025 =
* Solved Text Domain Issue[cite: 62].
* Added ABSPATH[cite: 62].

= 1.0.0 - May 24, 2025 =
* Initial release[cite: 62].