Home > WooCommerce > Docs > Fixed: Sorry, this product is unavailable. Please choose a different combination.

Fixed: Woocommerce Error - Sorry, this product is unavailable. Please choose a different combination.

Last updated: September 01, 2024
Written and researched by experts at AvadaLearn more about our methodology

By Sam Nguyen

CEO Avada Commerce

Have you ever run into a WooCommerce pop-up message saying that Sorry, this product is unavailable. Please choose a different combination? If yes, you have come to the right place.

In today’s article, we’ll help you fix this issue in just a few clicks.

Let’s get started!

The WooCommerce Error

When you encounter the message “Sorry, this product is unavailable. Please choose a different combination”, it means that you are dealing with a WooCommerce variable product problem. In most cases, the problem has to do with how attributes were previously set up in WooCommerce.

How to Fix the Error?

Now we’ll show you some possible ways that can help you fix the issue.

Method 1: Add a code

In most cases, the problem was in ajax_variation_threshold. Therefore, you need to raise the number of requests allowed. To be more specific, you have to add the following code in your functions.php file.


function woo_custom_ajax_variation_threshold( $qty, $product ) {
return 50;
}       
add_filter( 'woocommerce_ajax_variation_threshold', 'woo_custom_ajax_variation_threshold', 10, 2 );


Method 2: Re-assign each variation

If it doesn’t work, you can try removing all the attributes and re-assigning each variation all over again.

Now we will give you one example so that you will have a better understanding of how this method works.

In this example, the Size attribute values for a variable product were set to: S M L XL 8 10 12 14 16 typed out with separators in the product’s attributes.

Example

Here’s how you fix it.

Step 1: Edit a Variable Product

First of all, you need to log in to your WooCommerce account and go to Products.

Then, you need to navigate to the product that you have trouble with and click on the button Edit right next to the product.

Step 2: Remove the existing values

Next, you go to the Product data section. Choose the option Variable product from the dropdown menu.

After that, go to the setting Attributes, and click on the button Remove to remove all the existing values pertaining to Size.

Remove the existing values

Step 3: Add the attribute again

Now you need to add the attribute again by clicking on Add. Once done adding, click on Select All and then Save Attributes.

 Add the attribute again

Step 4: Re-assign each variation

Here you need to go to the setting Variations. After that, set the default size and re-assign every variation as the image below.

Re-assign each variation

Hopefully, after taking this last step, you can see no more error messages.

Final words

There can be numerous issues coming in the way while you manage your WooCommerce store. And we hope that our article about the error Sorry, this product is unavailable. Please choose a different combination brings you useful information when you face similar problems.

Please feel free to comment down below if you have any further questions. Thank you for reading and we’ll see you in the next post.


Sam Nguyen is the CEO and founder of Avada Commerce, an e-commerce solution provider headquartered in Singapore. He is an expert on the Shopify e-commerce platform for online stores and retail point-of-sale systems. Sam loves talking about e-commerce and he aims to help over a million online businesses grow and thrive.

Stay in the know

Get special offers on the latest news from AVADA.