fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Variable Products Show as ‘Out of Stock’ when they’re not

Variable Products Show as ‘Out of Stock’ when they’re not. All variations of the product seem fine, they all have prices. Stock management isn’t enabled on the site. Every product on the site should be in stock but some aren’t for some reason. WooCommerce support can’t see anything wrong with their plugin but point to your plugin.

Hakik Zaman

Hi Stephen,

Thanks for reaching out to us. Could you record me reproducing your issue using a tool like this? https://www.useloom.com
It helps me to quickly figure out the issue.

Thank you

Hi. I’m reopening this as it’s still a problem. I’m not setting up loom, so you will have to view these screenshots.

As you see, the product is showing as not in stock. But resaving the product fixes it. The fix will not last however. The problem will occur again, seemingly at a random time.

Hakik Zaman

Hi Stephen,

Unfortunately, your screenshots were not attached correctly.

Please upload your screenshots here- https://paste.pics/ and post here the screenshot links.

Thank You

Hakik Zaman

Hi Stephen,

Handling stocks is not a feature of our plugin, is a feature of WooCommerce itself.

Could you disable our swatches plugin and check if is it working without our plugin or not?

BTW, it could be a caching issue. Did you try to clear your caches like- browser cache, caching plugin cache, and server-side cache?

Please don’t forget to clear your transient from here: https://paste.pics/L67KC

Thank you

I’ve cleared all types of cache and it’s still a problem. I’ve disabled a variety of plugins for testing and it’s still an issue. I’ve spoken to WooCommerce and they say it’s nothing to do with them. Stock isn’t even enabled on the site and this is an issue.

 

It’s only variable products that have the stock issue and your plugin is the only thing we have that alters the variations.

Hakik Zaman

Hi Stephen,

I have inspected your site and found an older version of our plugin, 2.0.10 for both free and pro versions.

Could you update your free and premium versions of the WooCommerce Variation Swatches plugin?

The current version of swatches plugins is the following.

Variation Swatches for WoooCoommerce – Version 2.0.18

Variation Swatches for WooCommerce Pro – Version 2.0.18

Please make sure you are using the same version and let me know if your reported issue has been fixed or not in this latest update.

Thank You

I have updated those and cleared the cache once more but still have the same issues.

Hakik Zaman

Hi Stephen,

I have tested your site by deactivating both free and pro plugins.

The issue persists even without our plugin. So, it is not from our side.

Please check this screencast: https://www.loom.com/share/0b151f8e188346228179a9b7aa45fcc1

BTW, please update your WooCommerce plugin. Recently, WooCommerce releases several versions.

Thank You

I have updated every plugin.

I have put the site in safe mode – every plugin disabled and it’s still an issue. I’ve changed theme and it’s still an issue.

Does your plugin effect the woocommerce variation tables in any way? I’m just trying to figure out what’s going on here. I’ve done fresh installs of everything. WooCommerce say it isn’t them and they pointed me here. I don’t understand why saving the product fixes the issue – but then at some point it gets undone. What could possibly cause that? What background action would cause the stock on products to change like this – especially when stock isn’t even enabled. I manually updated the database to set the stock to null, and still not working. What could be causing it?

Hakik Zaman

Hi Stephen,

I have already pointed you that it is happening even without our plugin: https://www.loom.com/share/0b151f8e188346228179a9b7aa45fcc1

It is happening even without our plugin I don’t know how WooCommerce blames us.

If you are still not satisfied, please open a ticket for a refund.

Thank You

Does your plugin have any compatibility issues with object cache, using Redis? We’ve had another developer look at the issue. This is what they have said:-

Here’s what I have discovered – you’ll need to share this with the plugin authors for woo swatches, and unfortunately until then you’ll have to run without the object cache:

1) If I enable redis cache, the stock comes back empty
2) If I have redis cache enabled, then I save a products variations, the stock comes back
3) If I then flush the cache, the stock info and variations disappear again
4) If I use W3 Total Cache, if I enable the option to store transients in the database, then the plugin is compatible BUT the page takes 8 seconds to load instead of 2 seconds

So – they have a problem with their object caching code. I’ve had a look at the code to see if I can fix it, but it’s really out of scope for me.

You need to ask the plugin authors to fix this and provide them repro steps like I provided above.

You can tell them Dave Hilditch from WP Intense did the diagnosis.

Hakik Zaman

Hi Stephen,

I have sent the findings of WP Intense to verify by our development team.

BTW, please perform a test by following the below steps:

1) Disable or Deactivate both Swatches and Swatches Pro Plugin.

2) Flush your object cache and other caches (like caching plugin cache, server-side cache)

3) Check whether the stock is available or not.

Thank You