Raheel Stock Value Report for WooCommerce

By Raheel

0+ active installationsVersion 1.4.5

View current WooCommerce inventory quantities, prices and potential retail stock value, then export the filtered report to CSV.

Description

Raheel Stock Value Report for WooCommerce adds a read-only inventory report under Products > Stock Value Report.

The report recalculates from current WooCommerce product data every time it loads. It supports simple products, variable products and variations, parent-managed variable stock, negative stock, unmanaged stock and sale prices.

Features include:

  • Current or regular price basis.
  • Category, product type and combined product search filters.
  • Separate options for products without quantities, zero stock and negative stock.
  • Memory-conscious report pagination.
  • Optional Product ID and SKU columns.
  • CSV export using the same filters as the visible report.
  • Zero retail value for zero or negative inventory.
  • Minimum-to-maximum estimates when parent-managed variable stock has different variation prices.
  • Compatibility declaration for WooCommerce High-Performance Order Storage (HPOS).
  • No tracking, external requests or stored plugin data.

Important valuation note

The plugin calculates potential retail value from WooCommerce product prices. It does not calculate purchase cost, wholesale cost, profit, tax liability or an accounting inventory valuation.

The report uses catalog prices as stored by WooCommerce and does not add or remove taxes. Tax treatment therefore follows the store price-entry configuration.

When a variable product manages one stock quantity on its parent and its variations have different prices, the report displays a minimum-to-maximum estimate. WooCommerce does not identify how many parent-managed units belong to each variation.

Privacy

This plugin does not collect, transmit or store personal data. It reads WooCommerce product and inventory data only for authorized administrators viewing or exporting the report.

This plugin is not affiliated with or endorsed by WooCommerce. WooCommerce is a trademark of Automattic Inc.

Installation

  1. Install and activate WooCommerce.
  2. Upload the plugin folder to /wp-content/plugins/, or install the ZIP from Plugins > Add New > Upload Plugin.
  3. Activate Raheel Stock Value Report for WooCommerce.
  4. Open Products > Stock Value Report.
  5. Select filters and click Apply filters, or click Download CSV to export the current filtered report.

FAQ

Does the report update automatically?

Yes. The plugin reads current WooCommerce inventory whenever the report page loads or a CSV is generated. Checkbox options apply automatically when selected or cleared. Use Apply filters after changing the search, category, product type, price basis or rows-per-page controls. A normal browser refresh also retrieves the latest values.

Why is negative stock valued at zero?

A negative quantity should not create a negative potential retail value. The quantity remains visible when the appropriate stock filter is selected, but its calculated value is zero.

Is this an accounting inventory valuation?

No. It is a potential retail value report based on WooCommerce selling or regular prices. It does not know the merchant’s product acquisition costs.

Are taxes included in the reported value?

The plugin does not add or remove tax. It multiplies stock quantities by the catalog prices stored by WooCommerce, so the tax treatment follows whether the store enters product prices inclusive or exclusive of tax.

Why does a variable product display a price range?

When stock is managed on the variable parent, WooCommerce stores one shared quantity rather than quantities per variation. If the variations have different prices, the plugin shows the possible minimum and maximum retail values instead of assuming every unit has the lowest price.

Who can access the report?

Only users with the WooCommerce manage_woocommerce capability can view or export it.

Does the plugin change inventory?

No. The report is read-only and does not modify products, prices or quantities.

Changelog

1.4.5

  • Set the Author URI to the author’s WordPress.org profile.

1.4.4

  • Fixed product links on variation rows, which now open the parent product’s edit screen.
  • Fixed searches containing &, # or + being cut short on later report pages and in the CSV export.
  • CSV headers and cell text are no longer HTML-escaped.
  • Invalid or expired report links now stop before the admin page renders.
  • Permission errors now return HTTP 403.

1.4.3

  • Updated the display name to Raheel Stock Value Report for WooCommerce. Author, contributor, text domain and proposed slug are unchanged.

1.4.2

  • Renamed the plugin with the distinctive rahee00l identifier and matching text domain.
  • Aligned the author and contributor with the submitting WordPress.org account.
  • Removed the former company author and website metadata.
  • Added session-bound nonce checks to submitted filters and pagination, retaining separate export protection and capability checks.
  • Rejected malformed array parameters before sanitizing report inputs.

1.4.1

  • Updated the WordPress compatibility header through WordPress 7.1.
  • Removed direct fwrite() and fclose() stream calls flagged by Plugin Check while preserving streamed CSV downloads.

1.4.0

  • Updated declared compatibility through WooCommerce 11.0.
  • Made CSV generation explicit and compatible with PHP 8.4 deprecation requirements.
  • Clarified how the store’s tax configuration affects reported catalog prices.
  • Removed the redundant Refresh report button because every page load already recalculates the report.
  • Refined the documentation for WordPress.org publication.

1.3.2

  • Moved Apply filters into the primary filter row.
  • Added automatic report refresh when any inventory or optional-column checkbox changes.
  • Kept Refresh report, Download CSV and Reset together on the secondary row.

1.3.1

  • Fixed all category, search and combined filters returning no products after submission.
  • Kept the currency symbol and potential retail value amount on the same line.

1.3.0

  • Redesigned the inventory totals as prominent summary cards.
  • Combined product search and report filters into one control panel.
  • Replaced the technical stock-management dropdown with clear inclusion options.
  • Added independent controls for products without quantities, zero stock and negative stock.
  • Added a one-click filter reset and improved responsive admin styling.

1.2.0

  • Prepared the plugin for public distribution.
  • Added secure, normalized report inputs and formula-safe CSV output.
  • Added category, type, stock and search filters.
  • Added report pagination and streaming CSV generation.
  • Added optional Product ID and SKU columns.
  • Added variable-parent minimum-to-maximum valuation ranges.
  • Clarified that reported values represent potential retail value.
  • Added WooCommerce dependency and HPOS compatibility declarations.
  • Added complete translatable strings, documentation and licensing.