Hiding Low-Stock Variations of Products in WooCommerce

When you sell products with multiple variations, you may want to hide only the variations that are low in stock, while keeping the other variations visible and purchasable. This guide walks you through the steps to achieve this using the Products and Variations Visibility PRO for WooCommerce plugin.

Example Scenario

For this example, we’ll use a Yellow Sweater product that has three variations:

  • Large – 100 pcs in stock
  • Medium – 100 pcs in stock
  • Small – 8 pcs in stock

Before configuring the plugin, the product page shows the stock quantity for each selected variation, as shown in the screenshot below.

Step 1: Create a New Rule

Open the plugin settings and create a new visibility rule:

Name the rule – Choose a clear, descriptive name (for example: “Hide Low-Stock Variations”).
Set the rule priority – This determines the order in which multiple rules are applied.

    Note: We already created a priority 1 rule to hide low-stock simple products previously. That setup will be explained in a separate article.

    Now create the second rule for hiding low-stock variable product variations:

    • Create a new rule, click on “Add Rule” 

    Step 2: Configure the New Rule

    You will then be guided to a page where you can configure the rule conditions to hide any variation that falls below your defined low-stock threshold.

    • Enable the rule
    • Set the rule Priority: 2
    • Name the rule: Here, you can input the text that helps you to recognize the rule.  For example: hide low stock – variable product
    • Variation visibility: Make sure to select “Hidden” so that variations with low stock are not displayed. 
    • Product Types: select “Variable” product
    • Attributes condition: select “Any have to match”
    • Stock status: Select “Any” and leave the other options unchanged.
    • Low Stock: Enable this option to hide variable products that have low stock.
    • Click “Save Changes.”

    After saving, the plugin will automatically hide any low-stock variations (for example, the Small size with only 8 pcs) while keeping other variations visible.

    Step 3: Check the results after the configuration rule is applied.

    Let’s return to the Yellow Sweater product.

    You’ll see the Small variation with low stock is no longer displayed, only Medium and Large remain visible.

    This confirms that the plugin successfully hid the low-stock variation.

    Please ensure the new rule is enabled in the plugin’s “Rules” tab so the configuration takes effect.

    For accurate testing, we recommend temporarily disabling other rules to prevent interference and to isolate the new rule for correct results.

    Note: The plugin applies rules based on their priority. Priority 1 is the highest


    📍Related plugin:

    Products and Variations Visibility PRO for WooCommerce

    📍Related article:

    How to Hide Specific Product Variations in WooCommerce

    Leave a Reply