BACK TO DIRECTORY

LONDOM – Out of Stock Alternatives

by Domenico Longo

0.0
(0 ratings)

Keep customers shopping when a WooCommerce product is out of stock.
When a customer lands on an out-of-stock product page, LONDOM – Out of Stock Alternatives shows a box of available alternatives at the top of the page, above the product, so they can pick another product instead of leaving.

The box lists up to 4 products (filterable):

  1. Your upsells first – the upsell products you set in the product’s Linked Products tab, if they are in stock.
  2. Then products from the most specific category – if there is room left, in-stock products from the most specific category assigned to the product, ordered by sales. A broad parent category (for example “Men”) is ignored when the product is also in a narrower one (for example “Wallets”), so suggestions stay relevant.

If nothing is available, the box says so instead of showing unrelated products. A “View all” button leads to the product’s main category (the primary category set in Yoast SEO or Rank Math, when present).

Key Features

  • Alternatives above the product – Shown at the top of the product page, after the WooCommerce notices, not inside the product layout
  • Upsells first, then category – Manual upsells take priority; category products fill the remaining slots
  • Simple and variable products – A variable product is treated as out of stock only when all its variations are unavailable
  • Add to Cart hidden while unavailable – The Add to Cart form is removed on out-of-stock products (filterable), on themes that use the standard WooCommerce hooks
  • Works with your theme – Uses standard WooCommerce hooks; tested with Blocksy and Storefront. Where the box is printed can be changed with filters
  • Performance optimized – Alternative product IDs are cached and checked on every page load
  • Multilingual ready – Translatable on translate.wordpress.org; compatible with Polylang and WPML
  • Cache plugin support – Works with WP Rocket, W3TC, LiteSpeed, and WP Fastest Cache
  • Accessible – ARIA labels on the links and the alternatives block

How It Works

  1. Detection – The plugin detects that a simple product, or every variation of a variable product, is out of stock
  2. Notice and alternatives – A short notice and the alternatives box are printed above the product
  3. Selection – Up to 4 in-stock products: upsells first, then the most specific category
  4. Caching – Alternative IDs are cached and re-validated on each page load, so sold-out products are filtered out when the page is generated

Perfect For

  • WooCommerce stores with frequent stock changes
  • Fashion and apparel shops with seasonal inventory
  • Electronics stores with limited stock items
  • Any e-commerce site that wants to reduce lost sales from stockouts

Developer Friendly

Multiple filters and actions available for customization:

  • londom_alternatives_count – Change number of alternatives shown
  • londom_alternatives_title – Customize the heading text
  • londom_alternative_products_query_args – Modify the query for finding alternatives
  • londom_should_replace_add_to_cart – Control when replacement happens
  • londom_oos_display_hook – Change the hook where the block is printed
  • londom_oos_display_priority – Change the priority on that hook
  • londom_use_context_aware_cache – Enable context-aware caching
  • And many more…

Requirements

  • WordPress 6.0 or higher
  • WooCommerce 6.0 or higher
  • PHP 8.0 or higher

Support

For support, please use the WordPress.org support forum.

Additional Information

About LondomLab

LondomLab creates practical WooCommerce tools that help online stores increase sales and improve customer experience. Visit londomlab.com for more plugins and solutions.

Privacy & Data

This plugin does not:
* Collect any user data
* Use cookies or tracking
* Send data to external servers
* Store personal information

All data processing happens locally on your WordPress installation.

Contributing

Found a bug or have a feature request? Please report it on the support forum.

Credits

Developed with ❤️ by the LondomLab team.

Screenshots

Alternatives block shown at the top of an out-of-stock product page

Alternatives block shown at the top of an out-of-stock product page

Mobile view with responsive grid layout

Mobile view with responsive grid layout

Alternative products with prices and images

Alternative products with prices and images

Plugin Details

Active Installs
0
Total Downloads
617
Version
1.4.0
Requires WP
6.0
Requires PHP
8.0
Tested Up To
7.1.3
Added
2026-02-28
Last Updated
2026-09-29 10:54pm GMT

Ratings

5
0
4
0
3
0
2
0
1
0