In this tutorial, my goal is to show the “stock availability” under each product in the shop, category and archive pages.
This follows exactly the same settings as the stock display of the single product page. Go to /wp-admin/admin.php?page=wc-settings&tab=products§ion=inventory to manage “Stock display format”. Enjoy!

PHP Snippet: Display Stock Quantity / Status @ WooCommerce Shop Page
/**
* @snippet Stock Availability @ WooCommerce Shop Page
* @how-to Get CustomizeWoo.com FREE
* @author Rodolfo Melogli
* @compatible WooCommerce 7
* @donate $9 https://businessbloomer.com/bloomer-armada/
*/
add_action( 'woocommerce_after_shop_loop_item', 'bbloomer_show_stock_shop', 10 );
function bbloomer_show_stock_shop() {
global $product;
echo wc_get_stock_html( $product );
}
Mini-Plugin: Business Bloomer WooCommerce Display Stock Availability On The Shop Page
You don’t feel confident with coding? You need customers to see the stock availability on the Shop, Category and Archive pages as well? You don’t want to purchase yet another bloated, expensive plugin? Great!
Business Bloomer WooCommerce Display Stock Availability On The Shop Page is a mini WooCommerce plugin, without the usual hassles. One feature. Lifetime license. No annoying subscriptions. 1 plugin file. A few lines of code. No banners. No up-sells. No WP notifications. Use it on as many websites as you like. Lifetime support. 1-page documentation. A simple settings dashboard.
Screenshot of the settings:
Quick demo:
As you can see the plugin is pretty straight forward. Install it. Optionally change the position of the stock availability message display. See the magic happen. Simple!