How to Fix WooCommerce 'This Product is Currently Out of Stock and Unavailable'?

Updated: March 01, 2023


Have you ever received a message from WooCommerce saying This product is currently out of stock and unavailable? What are you supposed to do to fix this issue?

In today’s article, we’ll give you three approaches to solve this problem. Let’s get started!

How to Fix WooCommerce This Product is Currently Out of Stock and Unavailable?

1. Replace the 0 value with null

The first solution for resolving this issue is to substitute 0 with null.

That is because in this case, your stock is set to 0 when it should be null.

As a result, you need to use find-and-replace on the database to replace the 0 value with null.

You may also fix it in this way. Expand each variation by going into each individual product and clicking on the tab Variations. Then uncheck the Manage stock option.

Replace the 0 value with null

2. Add codes to the functions.php of your child theme

The key to resolving this issue was variations. When utilizing ajax to update the variations on the product page, WooCommerce typically permits 60 product variations in total, and in most scenarios, the error message is due to the product surpassing this limit.

To resolve the issue, add the following code to your child theme’s functions.php file:

// Increase WooCommerce Variation Limit
function custom_wc_ajax_variation_threshold( $qty, $product ) {
return 100;

add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 100, 2 );

3. Enter “Regular Price” for every variation

There is another approach to this problem. For each variation, you must provide a “Regular Price.”

Step 1: Navigate to Product > Variations.

Step 2: Click on the dropdown box that says Add Variation by default. Then click Go.

Enter "Regular Price" for every variation

Step 3: Click the blue Expand text and make sure to enter in Regular Price for each variation.

Enter "Regular Price" for every variation

Step 4: Save changes

Final Words

We hope that our three ways to solve the WooCommerce product error This product is currently out of stock and unavailable are useful to you. Thank you for reading and we’ll see you in the next post.

Recommend for you
Image Description
SMS, Email Marketing Automation

Top rated Marketing automation for Shopify stores

Learn more
Image Description
SEO Suite

Auto-optimize website elements and structure in one-click

Learn more
Boost Sales [Free]

Boost sales: Sales Pop, Trust badges, Countdown timer, more

Learn more
Image Description
Photo Reviews [Free]

Use photo reviews to boost sales

Learn more


Stay in the know

Get special offers on the latest news from AVADA.

40k subscribers has been joined!

Earn $10 in reward now!

go up