Hide Out of Stock Products on Website Shop

Hide out of stock products from the eCommerce shop and search with one switch per website, without unpublishing them.

Price
$9.99
Odoo versions
  • 16.0
  • 17.0
  • 18.0
  • 19.0
  • 20.0
Technical name
tamadoo_shop_hide_out_of_stock
License
OPL-1

Text and screenshots below are from the Odoo 20.0 version of this module.

Keep sold-out products out of your shop and search, without unpublishing them.

What it does

A shop grid full of products nobody can buy costs you sales. Turn on one switch and storable products with nothing left to sell disappear from the shop.

  • One switch per website, in the eCommerce settings.
  • Applies to the shop, category pages, the shop search and the search autocomplete.
  • Also applies to the dynamic Products snippets (newest, recently sold, recently viewed, accessories, alternatives) on any page.
  • Respects Sell when Out-of-Stock: products you keep selling stay listed.
  • Variant aware: a product stays listed while at least one variant is available.
  • Uses the free quantity of the website's warehouse (all warehouses when none is set).
  • Services and non-tracked goods are never hidden.
  • Non-destructive: products stay published, their page and sitemap entry keep working, and they return to the grid as soon as stock arrives. Zero JS — pure Python.

Why not the built-in "Unpublish out-of-stock products"? That switch is global and takes the product page offline, breaking existing links. This module is per website, follows each website's warehouse, and only removes the product from the listing and the search.

How to use

1. Enable the setting

Website > Configuration > Settings > eCommerce > Hide out-of-stock products.

Setting

2. Before: sold-out products are in the grid

Shop before

3. After: only products that can be bought remain

Shop after

Requirements

  • Odoo 20 — eCommerce with Inventory (website_sale_stock).

Tamadoo · tama.odoo@gmail.com

Get Hide Out of Stock Products on Website Shop

Questions before buying? Write to tama.odoo@gmail.com.