Requirements
The WordPress, WooCommerce and PHP versions Stockline needs, and the themes and store setups it works with.
- WordPress 6.5 or later (tested up to 7.1)
- WooCommerce 8.2 or later (tested up to 11.1), active; WordPress won't activate Stockline without it
- PHP 7.4 or later
What it works with
- Classic themes and block themes. Stockline changes the stock line that WooCommerce itself builds, which both kinds of theme show on the product page. In block themes that's the Add to Cart with Options block (called Add to Cart Form in older WooCommerce versions), which shows the stock line above the quantity and button.
- Simple and variable products. On a variable product, the stock line changes as shoppers pick options, following each variation's own stock.
- High-Performance Order Storage (HPOS) and the block-based cart and checkout. Stockline doesn't touch orders, the cart or the checkout, and declares itself compatible with both.
- Your theme's styling. The stock line keeps WooCommerce's own
stock,in-stock,out-of-stockandavailable-on-backorderclasses, so CSS written for them still applies.
Where the stock line appears
Stockline changes the stock line wherever WooCommerce shows it: on single product pages, including the line that appears when a shopper picks a variation. WooCommerce doesn't show stock in shop and category listings, the cart or the checkout, so neither does Stockline.
If you show a product somewhere else, such as a Single Product block on a landing page, the message appears there too, but Stockline's small stylesheet only loads on product pages by default. See Troubleshooting for the one-line fix.
Nothing else to set up
Stockline adds no database tables, scheduled tasks or external requests. Its settings are a handful of WordPress options, and it reads stock from WooCommerce as it is.