Home › Forums › WoodMart support forum › Variable Products Show As Sold Out (Out Of Stock) Even When There’s Stock
Variable Products Show As Sold Out (Out Of Stock) Even When There’s Stock
- This topic has 14 replies, 2 voices, and was last updated 1 day, 15 hours ago by
Luke Nielsen.
-
AuthorPosts
-
April 8, 2025 at 10:20 am #652412
AstiMaryParticipantHi,
I have variable products. The ‘Sold out’ label is shown even when the product variations has stock. How do I fix that? I don’t want to hide the label on products which are indeed out of stock entirely, no matter if they are simple or variable products.
In the attached image, the product has 2 variations, both of them have stock within the variation. Inventory management is turned on within the product yet on the Image it shows “Sold Out”.
The same is happening for another of my products. Please tell me how to fix this.
Regards,
AstiApril 8, 2025 at 10:22 am #652415
AstiMaryParticipantI see the attachment dropped off. Please see attachment.
Attachments:
You must be logged in to view attached files.April 8, 2025 at 2:50 pm #652543
Luke NielsenKeymasterHello,
It could be a plugins issue. So first send me access to the admin panel and confirm the permission for plugins deactivation and switching to the parent/default theme for testing.
Looking forward to collaborating with you!
Kind Regards
April 9, 2025 at 3:25 pm #652825
AstiMaryParticipantHi,
Can you tell me how to give you this access? I haven’t done that before and it makes me a little nervous to give over access to my entire website to be honest.I also don’t think it’s a plugin problem. The problem only started when I changed the product from Simple Product to Variable Product and started managing the stock as a Variable Product. No plugins had been updated at that point, nor any new plugins added.
Thanks,
AstiApril 9, 2025 at 5:37 pm #652873
Luke NielsenKeymasterHello,
You can send access via the plugin below:
https://www.wpbeginner.com/plugins/how-to-create-temporary-login-for-wordpress-no-passwords/
Send the access link via the Private area that is below the message area.
If you are worried, you can create a staging website – https://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/
Kind Regards
April 14, 2025 at 5:04 am #653775
AstiMaryParticipantSorry for the late reply, it has been the weekend here and I’ve been away.
I’ve downloaded the plugin, it’s asking for your email address. Please provide and I’ll send you the temp access.
Thanks,
AstiApril 14, 2025 at 3:03 pm #653890
Luke NielsenKeymasterApril 15, 2025 at 1:39 am #654012
AstiMaryParticipantThanks, login link in private info.
April 15, 2025 at 9:23 am #654080
Luke NielsenKeymasterHello,
It seems that access is limited – https://prnt.sc/fyQOL8DSHLrv
Could you please update it?
Kind Regards
April 15, 2025 at 9:33 am #654083
AstiMaryParticipantSorry, try again Luke.
April 15, 2025 at 12:43 pm #654210
Luke NielsenKeymasterHello,
Such happens when you import products, you can see the stock status of the product in the admin panel – https://prnt.sc/3MafyV8vgULR , you need to edit those products and change the stock – https://monosnap.com/file/d52XfQXWtaxcn1tQFsRV6qJJoT4Rff
Kind Regards
April 15, 2025 at 1:10 pm #654219
AstiMaryParticipantHi Luke,
I don’t import products — I manually update my stock levels as I replenish them.
This is a Variable Product, so the stock is set at the variation level, not the parent product. The example you screenshotted is of the parent product. If you check Whip Pure Tallow Balm at the variation level, you’ll see there is stock, and customers can purchase it without any issues. The website handles variation stock correctly — the issue is purely with the label displaying SOLD OUT on variable products.
On the other hand, Whip Native Tallow Balm has no stock at the variation level (and is indeed sold out), yet it does NOT show the SOLD OUT label because I have left stock (that doesn’t exist) in the parent product. The “Out of Stock” message only appears after a customer selects a product to add to cart — that’s the problem.
Technically, I could add random stock to the parent product and just do without the SOLD OUT label entirely but it is inaccurate, and I actually want the SOLD OUT label to show on the products that are indeed SOLD OUT.
Appreciate you looking into it.
Asti
April 15, 2025 at 3:41 pm #654306
Luke NielsenKeymasterHello,
The thing is that the product shows as out-of-stock on the default theme too – https://prnt.sc/RHEiA2yrbyXV
The same is in the admin panel on the default theme – https://prnt.sc/faB6ufxjirzk so this is not a theme’s issue as the same happens on the default theme. In our theme, just the label shows for the out-of-stock product, if we hide the label, it will not fix the issue, as it’s something with WooCommerce itself.
Let me know if you have any questions.
Kind Regards
April 16, 2025 at 12:05 am #654429
AstiMaryParticipantHi Luke,
Thanks for getting back to me.
Just to clarify, I manage stock at the variation level, which is the standard setup for variable products in WooCommerce. The stock status shown in the main Products list in the admin area reflects the parent product, but since I don’t track inventory at that level, it’s not an accurate indicator of whether the product is actually available for purchase.
From the customer’s side, WooCommerce is working correctly. They can only purchase a product if there’s stock at the variation level, which is exactly what I want. The issue is specifically with how the SOLD OUT label is being displayed.
Right now, the theme appears to apply the ‘outofstock’ class (and the SOLD OUT label) based on the parent product’s stock status, rather than checking the actual stock of its variations. That’s resulting in labels being shown (or not shown) incorrectly, depending on what’s entered at the parent level.
This isn’t a WooCommerce issue. It’s a display issue in the theme, and I’d really appreciate it being fixed so the SOLD OUT label accurately reflects variation-level availability.
Thanks again,
AstiApril 16, 2025 at 11:20 am #654534
Luke NielsenKeymasterHello,
Unfortunately, it’s not possible to make the changes you suggested. These changes would greatly impact page loading speed, which in turn would lower PageSpeed scores. You’re not the only one facing this issue – other WooCommerce users are encountering it as well. Here are a couple of examples of issues about this problem.
https://github.com/woocommerce/woocommerce/issues/23645
https://github.com/woocommerce/woocommerce/issues/16620
https://github.com/woocommerce/woocommerce/issues/19967
The WooCommerce development team has acknowledged this in their support forums, but a permanent fix hasn’t been implemented in core yet.
After reviewing multiple solutions proposed by the community, the most effective approach appears to be modifying the stock status in the parent product. This ensures proper inventory synchronization while minimizing the performance impact on your store. By updating the parent product’s stock status directly, you avoid the resource-intensive queries that occur when the system tries to calculate availability from variable products.Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register