=== RT Stock Manager – Bulk Stock, Inventory & CSV Import/Export for WooCommerce === Tags: woocommerce stock, inventory management, csv import export, bulk edit, low stock Requires at least: 6.6 Tested up to: 7.1 Requires PHP: 7.4 Stable tag: 2.1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Bulk-edit WooCommerce stock and variations from one fast screen with advanced filters, SKU search, CSV import/export, and a full activity log. == Description == **RT Stock Manager for WooCommerce** is a fast, modern **WooCommerce stock management** and **inventory control** tool. It replaces the slow, one-product-at-a-time WooCommerce editing flow with a single React-powered screen where you can search, filter, and **bulk edit stock quantities** for hundreds of products — including every variation of your variable products — and save them all in one click. Built on the WordPress REST API and the official WordPress component library, the interface is instant: no page reloads, inline editing, and clear highlighting of unsaved changes. Whether you run a small shop or manage thousands of SKUs, RT Stock Manager gives you a spreadsheet-like **bulk stock editor** right inside your WordPress admin. = Why use RT Stock Manager? = * **Save hours of manual work** — update stock for many products at once instead of opening each product. * **Manage variation stock easily** — expand any variable product and edit each variation's quantity inline. * **Find products instantly** — live **search by product name or SKU**. * **Stay on top of inventory** — filter to low-stock items and fix them before you sell out. * **Move data in and out** — **CSV import and export** for fast stock updates and reporting. * **Keep an audit trail** — a complete **activity log** of every stock change, who made it, and when. = Key features = * **Bulk stock editor** — edit stock quantities inline and save only the rows you changed. * **Variation stock management** — expand variable products to manage each variation's stock. * **Search by name or SKU** — quickly locate any product or variation, including SKUs on variations. * **Advanced filters** — filter by product type, category, stock status, "manages stock", and low-stock-only, with flexible sorting. * **CSV import** — bulk update stock from a CSV file, matching products by ID or SKU. * **CSV export** — export the products in your current view (variations included) for backups or reporting. * **Activity log** — searchable, filterable history of every stock change, with CSV export and one-click clear. * **Bulk apply** — set the same quantity across all selected products in one action. * **Low-stock highlighting** — at-a-glance badges so nothing slips out of stock unnoticed. * **Fast React admin** — no page reloads, powered by the WordPress REST API. * **Translation ready** — all strings are internationalized. = Who is it for? = Store owners, shop managers, and developers who need a reliable **WooCommerce inventory manager** to handle **bulk stock updates**, **stock control**, and **warehouse-style inventory management** without third-party services or slow page reloads. == Installation == 1. Upload the plugin folder to `/wp-content/plugins/rt-stock-manager-for-woocommerce`, or install it through the **Plugins → Add New** screen in WordPress. 2. Activate the plugin through the **Plugins** screen in WordPress. 3. Make sure **WooCommerce** is installed and active. 4. Open the **Stock Manager** menu in your WordPress admin to start managing stock. == Frequently Asked Questions == = Does this plugin require WooCommerce? = Yes. RT Stock Manager extends WooCommerce, so WooCommerce must be installed and active. You'll see a notice if it isn't. = Can I search products by SKU? = Yes. The search box matches both product names and SKUs. If a SKU belongs to a variation, the parent product appears in the list so you can expand it and edit that variation. = Can I edit stock for variable products and their variations? = Yes. Variable products show a variation count and an expand control. Expanding a product loads its variations as editable rows so you can update each variation's stock directly. = How does the CSV import work? = Upload a CSV that includes an `id` or `sku` column plus a `stock_quantity` column. The plugin matches each row to a product (by ID first, then SKU) and updates the stock. You'll get a summary of how many rows were updated, not found, or skipped. Files created by the CSV export can be edited and re-imported as-is. = What does the CSV export include? = The export contains all products that match your current filters, with variations included as their own rows: ID, parent ID, type, name, SKU, stock status, manage-stock flag, and stock quantity. = Does it keep a record of stock changes? = Yes. Every change made through the plugin — manual edits, bulk apply, and CSV imports — is recorded in an activity log with the product, SKU, old and new quantity, status, source, user, and timestamp. You can search, filter by date or source, export the log to CSV, and clear it. = Will it work with a large catalog? = Yes. The product list is paginated and searches are scoped, so the admin stays responsive. CSV export gathers all matching products at once, which is best suited to typical catalogs. = Do I need to build or compile anything? = No. The compiled React app ships in the `build/` directory, so it works out of the box. Developers who want to customize the interface can rebuild it with `npm install && npm run build` (see DEVELOPMENT.md). = Who can access the Stock Manager? = Users with the `manage_woocommerce` capability (typically shop managers and administrators). All REST endpoints enforce this capability and a security nonce. = Can I bulk update stock quantities from a spreadsheet? = Yes. Export your current view to CSV, edit the `stock_quantity` column in a spreadsheet, and re-import the same file. The plugin matches rows by product ID or SKU and updates each one. = Can I quickly find products that are low on stock? = Yes. Use the low-stock-only filter to show just the products (and variations) that need restocking, so nothing sells out unnoticed. == Screenshots == 1. The bulk stock manager with inline editing, search by name or SKU, and unsaved-change highlighting. 2. Advanced filters: product type, category, stock status, manages-stock, and low-stock-only. 3. Expanding a variable product to edit each variation's stock. 4. CSV import dialog with a preview and import summary. 5. The activity log of stock changes with filters and CSV export. == Changelog == = 2.1.0 = * New: search products by name or SKU (including SKUs on variations). * New: variation stock editing — expand variable products to edit each variation inline. * New: advanced filters (product type, category, manages-stock, low-stock-only, sorting). * New: CSV import (match by ID or SKU) and CSV export that respects the active filters. * New: activity log recording every stock change, with filters, CSV export, and clear. * New: REST endpoints under rtsm/v1 for variations, import, export, filters, and logs. * Logs are stored in a dedicated table created on activation and on upgrade. = 2.0.0 = * Rewrote the admin screen as a React single-page application. * Added a REST API (rtsm/v1) replacing the legacy admin-ajax handler. * Added live search, stock-status filtering, bulk apply, and dirty-row tracking. = 1.1 = * Maintenance release. = 1.0 = * Initial release. == Upgrade Notice == = 2.1.0 = Adds SKU search, variation stock editing, advanced filters, CSV import/export, and an activity log. The log table is created automatically on upgrade.