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

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #652412

    AstiMary
    Participant

    Hi,

    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,
    Asti

    #652415

    AstiMary
    Participant

    I see the attachment dropped off. Please see attachment.

    Attachments:
    You must be logged in to view attached files.
    #652543

    Luke Nielsen
    Keymaster

    Hello,

    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

    #652825

    AstiMary
    Participant

    Hi,
    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,
    Asti

    #652873

    Luke Nielsen
    Keymaster

    Hello,

    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

    #653775

    AstiMary
    Participant

    Sorry 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,
    Asti

    #653890

    Luke Nielsen
    Keymaster

    Hello,

    Yes, here is [email protected]

    Kind Regards

    #654012

    AstiMary
    Participant

    Thanks, login link in private info.

    #654080

    Luke Nielsen
    Keymaster

    Hello,

    It seems that access is limited – https://prnt.sc/fyQOL8DSHLrv

    Could you please update it?

    Kind Regards

    #654083

    AstiMary
    Participant

    Sorry, try again Luke.

    #654210

    Luke Nielsen
    Keymaster

    Hello,

    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

    #654219

    AstiMary
    Participant

    Hi 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

    #654306

    Luke Nielsen
    Keymaster

    Hello,

    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

    #654429

    AstiMary
    Participant

    Hi 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,
    Asti

    #654534

    Luke Nielsen
    Keymaster

    Hello,

    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

Viewing 15 posts - 1 through 15 (of 15 total)