Remove WooCommerce "in stock" notice (out of stock / in stock, Available, Out of Stock hide)
Woocommerce In Stock Remove Stock Note Available Out Of Stock Shop Hide

If you have your own WooCommerce online shop, you will quickly find that the countless setting options also include some functions that unfortunately cannot be switched off directly with just one click. This includes, among other things, the display of "In stock" or "XX in stock". In addition to the setting in the WooCommerce options, the note text cannot be completely removed.

How to hide the "in stock" and "out of stock" in your WooCommerce online store

The often mentioned solution to hide it via CSS is unclean and rather to recommend!

Better in the functions.php of the template (preferably a child template)

// Remove variation stock data from product page display
function woocommerce_remove_variation_stock_display( $data ) {
unset( $data['availability_html'] );
return $data;
add_filter( 'woocommerce_available_variation', 'woocommerce_remove_variation_stock_display', 99 );

Recommendation in order not to have to work directly in the template and code -> WordPress plugin code snippets

Important setting in WooCommerce that also needs to be set:

There is the standard Woocommerce function: It specifies whether products should be displayed on the shop page, in the WooCommerce widgets, anywhere on the page despite being "Out of Stock", i.e. "not available / not available".

Only the individual product page shows "Out of Stock" instead of "Add to Cart".

Woocommerce In Stock Remove Stock Note Available Out Of Stock Shop Hide

To change this, follow the 3 steps below (see screenshot):

  • Go to Woocommerce → Settings and click on the Products tab
  • Click on the sub-link (tab) -> Warehouse above
  • Activate the option "Visibility for out of stock" -> Do not show out of stock products in the product catalogue

You can also choose when the inventory should be displayed.
Our recommendation: Show only when stocks are low to increase conversion.

pictibe advertising agency Florian Ibe owner of online marketing

Do you have questions about WooCommerce or need help? Your contact person:


Florian Ibe

The 5 best tips for WordPress
Register now and like 734 others these valuable ones kostenfrei Save tips!
Florian Ibe
Florian Ibe
is the founder and owner of pictibe. He describes himself as one of the lucky ones who were able to turn their hobby into a career. His daily task is to reduce complex relationships to the essentials and to develop a direct message for customers and employees.

No commentaries can be submitted.

partnerships and technologies Partnerships Technologies WooCommerce, WordPress, Proven Expert, Adobe, Google, Trusted Shops Qualified Expert Other partners, shop systems and content management systems: Shopware, JTL, JTL Shop, Oxid eSales, Joomla, Gambio, Contao, Typo 3
Send request