BFCM Deals 202660%OffOn all ShapedRecommend Pro plansEnds SoonGrab the deal

Out of Stock in WooCommerce? Show Alternatives Instead of a Dead End

Farahi Avatar
7–11 minutes
A blog discusses to hide out of stock WooCommerce product

A customer finds a product they like, opens its page, and gets an out of stock message. They can’t add the item to their cart, and there’s no obvious alternative. Instead of searching your store again, they may simply leave. This is a common problem when managing WooCommerce out of stock products. While WooCommerce can clearly communicate when an item has none left, that message alone doesn’t always help customers.

A better approach is to show relevant, in-stock alternatives on the product page. This gives customers another option to stay on your online store.

In this guide, you’ll learn how to recommend available alternatives when a product goes out of stock.

What Happens When a Product Goes Out of Stock in WooCommerce?

When a product goes out of stock in WooCommerce, customers can no longer purchase it through the normal Add to Cart process unless backorders are allowed.

Imagine you sell smartwatches. A customer visits a specific model but discovers it’s not in stock right now. If the page doesn’t suggest other smartwatches, the customer has to return to the shop page and search again.

WooCommerce uses stock status to determine whether a product is available. You can manage that status manually or let WooCommerce update it based on inventory quantities.

The three main stock statuses are:

  • In stock: The product is available for purchase.
  • Out of stock: The product is not in stock and cannot be purchased.
  • On backorder: Lets customers buy a product that is temporarily out of stock, with the order shipping once new inventory arrives.

When an item runs out, WooCommerce can display an out of stock notice on its product page. In product listings, the default Add to Cart button changes to “Read more” for out of stock items.

However, a product page with nothing to buy can still become a dead end when there are no useful alternatives.

Why Show Alternative Products Instead of Just an Out of Stock Message?

Showing relevant products gives shoppers another way to continue their purchase when they can’t get their first choice.

Consider a customer looking for smartwatches. The exact model is not available, but your store has other shoes with similar features and prices.

Instead of showing only “out of stock,” you could display a section titled “You May Also Like” with a few available smartwatches.

The key is relevance. Someone looking for a smartwatch probably doesn’t want to see unrelated accessories when the main product is sold out.

That’s why showing a closely matched item should consider both product similarity and stock status.

How to Show In-Stock Alternatives in WooCommerce Using ShapedRecommend

You can use ShapedRecommend to create relevant product recommendations and filter out items that are not in stock right now. A quick-start guide explains this process in detail. But here we will do it hands-on.

In this tutorial, we’ll use a smartwatch as an example. The goal is to recommend similar watches that are currently in stock.

First, search for ShapedRecommend, click Install Now, and activate the plugin. Once activated, you’ll find a new Recommend menu in your WordPress dashboard.

Go to Recommend → New Recommendation → Start From Scratch and name it “in-stock alternatives”.

ShapedRecommend New Recommendation started from scratch and named in-stock alternatives

Second, set Show on to Product and Position to Before tabs. This places the block before the product tabs, so shoppers see in-stock alternatives before they scroll down to the description.

ShapedRecommend Show on set to Product and Position set to Before tabs

Third, set filter type to Same Category & Tags, so a sold-out smartwatch suggests other watches, not random items.

Fourth, turn on Additional Filters → In Stock = Yes. This is the key step so the block won’t suggest another sold-out item.

ShapedRecommend Same Category & Tags filter type with Additional Filters In Stock set to Yes

Fifth, add a Sorting Rule for Popularity, so the strongest sellers fill the gap. Optionally, pin a specific replacement under pinned products, such as the newer model. You choose pinned products yourself, so make sure any product you pin is in stock.

ShapedRecommend Sorting Rule set to Popularity with optional pinned products

Sixth, in Design, choose Grid, set the number of products and the columns for desktop, tablet, and mobile, and change the heading to something like “In stock now: similar watches”.

ShapedRecommend Design settings with Grid layout, responsive columns, and heading In stock now: similar watches

Finally, go to Settings → General → WooCommerce Default Showcase and turn on Hide Related Products (and Hide Up-sell Products if you use up-sells) so WooCommerce’s default block doesn’t appear alongside yours.

ShapedRecommend WooCommerce Default Showcase settings with Hide Related Products and Hide Up-sell Products turned on

You’ll also see a Live Preview, with desktop and mobile toggles, that updates as you change the settings. Everything in this tutorial works in the free version.

ShapedRecommend live preview

Show Recommendations Only When the Viewed Product Is Out of Stock

Showing only in-stock recommendations and showing recommendations on out of stock product pages are two different things.

ShapedRecommend’s in-stock filter controls which products can appear inside the recommendation block.

It doesn’t make the block appear only when the viewed product is sold out.

The plugin also lets you set display conditions. Device conditions are free, and Pro adds cart total, visitor, schedule, and viewing category.

However, the Display Conditions tab doesn’t include a condition based on the viewed product’s stock status.

With the setup described above, your in-stock recommendations appear on product pages whether the viewed product is available or sold out.

Shoppers who land on a product they can’t buy still get useful alternatives.

Make WooCommerce Out-of-Stock Messages and Badges More Helpful

WooCommerce out of stock message indicates why they can’t purchase this particular item. A visible badge sends the exact message without opening the product page to learn more about the selected item. Both are useful, but they work best when customers also have a clear next step. Next, you’ll see how you can make the out of stock message effective so that shoppers don’t leave your page.

Write an Out-of-Stock Message That Points Customers to Explore More

The default out of stock message delivers a plain message, but it doesn’t tell shoppers what else they can do.

Consider these examples.

Your basic message is “out of stock.”

What if you communicate like this? “This product is currently unavailable. Explore similar products that are in stock.”

For an item that will be back soon, “This item is temporarily out of stock. Browse our available alternatives below.”

These messages address the problem and guide customers toward another shopping option.

Once you recommend paying a visit to similar products, naturally you may want to control how many times shoppers see them. The free Recommendation Manager in the plugin’s settings offers these controls.

  • Never show the same product twice on one page
  • Limit recommendation blocks a shopper sees per visit or session (2 to 10, default 5)
  • Limit how many blocks appear on one page (1 to 10, default 5)

Test Your Alternative Recommendations Before Publishing

Before relying on your recommendation setup, check how it works on an actual WooCommerce product page.

The Live Preview is helpful, but you should also test the storefront as a customer. Look for a product that’s currently out of stock.

Make sure that your recommended product is in stock, and the link takes you to the targeted page. Do the same for other products where you want to recommend similar items.

Finally, check the display on mobile. A layout that works well on desktop may take up too much space on a smaller screen.

These checks help you catch issues before customers encounter them.

Check Product Variations and Display Problems

Store owners have popular WooCommerce products that need extra attention.

Products that depend on size, like a running shoe, might be gone in size 8 but still available in size 9. In this situation, the entire product isn’t necessarily out of stock. WooCommerce can manage stock at the variation level, allowing individual sizes or colors to have different availability. Product variation offers to control size, color, image, price over your listed products.

Check Whether Customers Are Using Your Recommendations

Once your recommendations are working, it’s worth checking whether customers engage with them.

ShapedRecommend offers analytics that show activity related to product recommendations. You can check the numbers in the analytics from the WordPress dashboard.

The Analytics page shows gross sales, net sales, items sold, and orders for the last 7, 14, or 30 days or a custom date range, with a trend chart and a per-recommendation performance table. The Recommend dashboard also lists views, click-through rate, conversions, and revenue for each recommendation.

Pro lets you see analytics for 12 months, adds a conversion funnel (views, clicks, add to cart, conversions), and adds a revenue by order report.

If customers regularly click suggested smartwatches but rarely purchase them, you may want to review whether the recommendations match their needs. You could try choosing more similar products, adjusting the price range, or changing the recommendation placement. The goal is to make product pages without stock more useful.

Wrapping Up

An out of stock product page doesn’t have to end the visit. It’s up to you to show them what they can buy instead.

With product recommendations, you can create product recommendations on your WooCommerce product pages and use filters such as category, tags, and stock availability to show relevant products that are ready to buy. This gives customers a useful next step while helping your store make the most of every product visit.

Ready to turn out of stock pages into new sales opportunities? Try ShapedRecommend and start showing your customers relevant product alternatives instead of a dead end.

FAQs About WooCommerce out of stock Products

How do I show out of stock products at the end of the shop page?

WooCommerce has no built-in setting for this. Use a small code snippet or a sorting plugin that orders products by stock status, so in-stock items load first. Shoppers still find sold-out products, but they no longer push buyable ones off the first screen.

Can customers get notified when an out of stock product is back?

Yes, customers can get notified when an out of stock product is back in stock through store “Notify me” signups, automated email, SMS, push, or WhatsApp alerts, and third-party page-monitoring tools.

How do I add an out of stock or sold out badge in WooCommerce?

Many themes show a plain out of stock label. For a visible badge on product images, or to change the wording to sold out, use a badge plugin or a short CSS or PHP snippet. A clear badge sets expectations before shoppers click.

Why are my WooCommerce variations showing out of stock when the parent has stock?

On variable products, stock set on the parent only counts when the variations don’t manage their own stock. If a variation has Manage stock turned on with zero quantity, it shows as out of stock. Check each variation under Product data > Variations.


Comments

0

Leave a Reply

Your email address will not be published. Required fields are marked *