discount sale
  • Days
  • Hrs
  • Mins
  • Secs
30% Off

Use coupon code 'DSJ30' Limited Offer!!

Home > Docs > WooCommerce Product Recommendations > How to Show WooCommerce Product Recommendations Only for In-Stock Items

How to Show WooCommerce Product Recommendations Only for In-Stock Items

Last updated on July 12, 2026

The WebToffee WooCommerce Product Recommendations plugin allows you to dynamically display suggestion widgets based on the stock status of the current product. To set this up, navigate to WooCommerce > Product Recommendations, edit a specific recommendation campaign, and scroll to the ‘Display conditions section. By selecting ‘Stock Status’ and then ‘In stock,’ you can ensure that the recommendation block is only visible to customers when the main product is available, preventing irrelevant upselling on sold-out items.

How to Show Recommendations Based on Stock Status

To display selected product recommendations exclusively for items currently in stock:

  • From the WordPress dashboard, navigate to WooCommerce > Product Recommendations.
  • Either select an existing recommendation or choose to create a new one.
Product Recommendations home page
Product Recommendations home page
  • Scroll down to Display conditions settings.
  • From the drop-down, select the option Stock status.
  • Select the option In stock from the secondary list that appears.
Display criteria
Display criteria
  • Save the changes.

Now, this particular recommendation will only be visible on the product pages if the particular product is in stock.

  • Alternatively, select Out of Stock from the drop-down to display recommendations only for out-of-stock products.
  • Select On backorder from the drop-down to display recommendations only for backorder products.