Low stock
Cart > Low stock > Show “Only 3 left” adds a line under cart and mini cart items when the stock is at or under the product’s low-stock amount.
The cart page also says items aren’t reserved until checkout.
Where the amount comes from#
- The product’s own Low stock threshold (Product data > Inventory), or
- The store-wide amount in WooCommerce > Settings > Products > Inventory.
It only works for products that track stock (Manage stock ticked).
For developers#
Change the amount with nbwt_low_stock_amount:
add_filter( 'nbwt_low_stock_amount', function ( $low, $product ) {
return 5;
}, 10, 2 );