=== QuickTools for WooCommerce ===
Contributors: hmbashar
Tags: total sold, ecommerce, woocommerce, orders, product sales
Requires at least: 5.0
Requires PHP: 7.4
Tested up to: 7.1.3
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

QuickTools for WooCommerce adds sales insights on products and previous-order badges on the orders list for faster store management.

== Description ==

QuickTools for WooCommerce enhances your WooCommerce admin and storefront with lightweight sales tools. Use the Control Center under WooCommerce → QuickTools to enable or disable each feature independently.

== Key Features ==

* **Control Center:** Modern admin panel to toggle every feature on or off.
* **Sold column (Products):** Sortable units-sold badge column on the Products list.
* **Total Sold (Storefront):** Premium Total Sold UI on shop/archive loops and single product pages (separately toggleable).
* **Previous Orders column (Orders):** Previous-order status badges matched by billing phone (with/without country code). Works with classic orders and HPOS.
* **Performance-minded:** Disabled features are not loaded; CSS/JS enqueue only on relevant screens.

== Installation ==

1. Upload the `quicktools-for-woocommerce` directory to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Ensure that WooCommerce is installed and activated to use this plugin.

== Frequently Asked Questions ==

= What is the purpose of this plugin? =
It adds product sales visibility (admin + storefront) and previous-order status badges on the orders list, matched by billing phone.

= Is WooCommerce required? =
Yes. QuickTools for WooCommerce requires WooCommerce to be installed and activated.

= Does it support High-Performance Order Storage (HPOS)? =
Yes. The Previous Orders column registers on both the classic and HPOS orders screens and reads billing phone from HPOS address tables when enabled.

= Can I disable individual features? =
Yes. Go to WooCommerce → QuickTools and toggle each feature. Disabled features are not loaded.

= How can I report a bug or request a feature? =
Open an issue on the plugin's [GitHub repository](https://github.com/hmbashar/QuickTools-for-WooCommerce).

== Screenshots ==

1. Control Center — enable or disable each QuickTools feature from WooCommerce → QuickTools.
2. Total Sold metric card on the single product page.
3. Previous Orders status badges on the orders list.
4. Sold column badges with tooltips on the products list.

== Changelog ==


= 1.1.0 =
* Added QuickTools Control Center (WooCommerce → QuickTools) with per-feature enable/disable toggles.
* Premium Total Sold UI for admin and storefront.
* Disabled features are not loaded; assets load only when needed.
* Settings saved via the WordPress Settings API with capability and sanitize checks.

= 1.0.0 =
* Initial release.
* Total Sold on products list, shop loop, and single product.
* Previous Orders column (billing phone) with legacy + HPOS support.
* Security and performance hardening: capability checks, escaped output, request-level query cache, conditional asset loading.

== Upgrade Notice ==

= 1.1.0 =
Adds a Control Center to enable/disable each feature securely.
