Recommend Out-of-Stock Product Alternatives

This guide shows you how to use WooCommerce Product Recommendations to recommend alternative products when customers arrive to an out-of-stock product page. These “Top Rated Alternatives” are top rated, in stock products from the category that the currently viewed, out-of-stock product belongs to.

Recommending “Top Rated Alternatives”.

Plugins/Extensions Used ↑ Back to top

Configuration ↑ Back to top

Create a “Top Rated Alternatives” Engine ↑ Back to top

  1. Create an Engine
    • Go to WooCommerce > Recommendations > Engines and click Create new.
    • Under Title, enter “Top Rated Alternatives”.
    • Choose the Product Engine Type.
  2. Add Filters
    • Locate the Filters section in the Engine Configuration panel.
    • Add a Relative Category Filter.
    • Select in current to recommend products from the category of the currently viewed product.
    • Add a Relative Price Filter to recommend similarly-priced products.
    • Select >= and enter a value. For example, to recommend products priced higher than the currently viewed product, enter 100%. In this example, we entered 50.
    • Add a Stock Status Filter.
    • Select is in the first dropdown.
    • Select In stock in the second one.
  3. Add Amplifiers
    • Go to the Amplifiers section.
    • Add a Rating Amplifier.
    • Select high to low to recommend top-rated products first.
    • Add a Freshness Amplifier.
    • Select new to old to favor new products.
    Use the +/- buttons to increase/decrease the relative weight of the two Amplifiers.
  4. Save the Engine

    Click the Create button to save the Engine you just created.

The “Top Rated Alternatives” Engine.

Deploy the “Top Rated Alternatives” Engine

  1. Deploy the Engine

    Click Deploy now in the message that appears after saving the Engine. Altenatively:

    • Navigate to WooCommerce > Recommendations > Locations.
    • Search for and select the “Top Rated Alternatives” Engine.
    • Click the Deploy button.
  2. Configure Display Settings
    • In the Title field, enter “Top Rated Alternatives”. This will be displayed above the recommended products.
    • Select a number of Product columns and Product rows for the product recommendations. Use the default settings to display a single row of 4 products.
  3. Choose Location
      Select the Location where you’d like the recommendations to appear. To display the recommendations after the product meta section, choose Product > After Product Meta.
  4. Add Visibility Conditions

    To recommend “Top Rated Alternatives” only when the currently viewed product is out of stock, add a Visibility Condition:

    • Go to the Visibility Conditions section.
    • Add a Product stock status condition.
    • In the first dropdown, select is.
    • In the second one, select Out of stock.

    Deploying the “Top Rated Alternatives” Engine.
  5. Finalize the Deployment

    Click Deploy to deploy this Engine to the specified Location.

Result ↑ Back to top

Making Changes ↑ Back to top

To edit the configuration of the “Top Rated Alternatives” Engine:

  1. Navigate to WooCommerce > Recommendations > Engines.
  2. Locate and Edit the “Top Rated Alternatives” Engine.
  3. Update the Engine to save your changes.
Important: Once an Engine has been saved, it is no longer possible to change its Engine Type.

To edit the Display Settings, Location, or Visibility Conditions of the “Top Rated Alternatives” Engine deployment:

  1. Navigate to WooCommerce > Recommendations > Locations.
  2. Go to the Product section.
  3. Click the After Product Meta tab.
  4. Expand the “Top Rated Alternatives” Engine deployment and make changes as needed.
  5. Save your changes.

If you have only deployed a few Engines on your site, you may find it easier to locate and edit the “Top Rated Alternatives” Engine deployment by navigating to WooCommerce > Recommendations > Locations > Overview.

Editing the “Top Rated Alternatives” Engine.
Editing the “Top Rated Alternatives” Engine Deployment.

Notes ↑ Back to top

Make sure that “Top Rated Alternatives” are offered at a very prominent position in the product page, ideally before all other recommendations:

  1. Navigate to WooCommerce > Recommendations > Locations.
  2. Go to the Product section.
  3. Click the After Product Meta tab.
  4. Drag the “Top Rated Alternatives” Engine deployment to the top of the list.
  5. Save your changes.
If the currently viewed product is out of stock, Engine deployments in the After Add-To-Cart Button Location will not be displayed. In this case, deployments in the After Product Meta Location will be the first to be displayed.

WooCommerce - the most customizable eCommerce platform for building your online business.

Back to the top