Product settings not in effect when out of stock
-
Setting the product to “out of stock” in the backend did not take effect when accessing the frontend.
-
This topic was modified 1 day, 4 hours ago by
2303805254.
Attachments:
You must be
logged in to view attached files.
Hello,
In WooCommerce, each product variation within a variable product can have its own stock quantity. Therefore, the stock status check of each variation happens the moment a variation is selected. This check is not related to the specific quantity of the product, and whether the value is “In stock” or a concrete number, the stock status will only be retrieved after a variation is selected. This is the standard behavior of the WooCommerce plugin, and you can see how it works by default by viewing the standard WooCommerce theme called Storefront (https://monosnap.ai/file/Hsn1vFzELLk7vfW5ZoiNrf8Xe7MJqg). Unfortunately, we currently do not have the ability to change this, and we don’t have an option to override this behavior.
Best Regards,
Hello, Aizaz Imtiaz Awan
I don’t quite understand what you mean. I set the product variant to “out of stock,” but I can still place an order normally when I visit the product page, and there’s no out-of-stock or stock-out message.
Do you mean that my settings aren’t showing an out-of-stock status on the front end? Do you know how to set an out-of-stock status for a product variant in WordPress? I only found the setting shown in my image; I haven’t found anywhere else to set it.
Hello,
Sorry to hear about the inconvenience. Kindly, please share your Site WP-ADMIN Login details in the Private Content field so that we can check this concern on your Site and help you out accordingly.
Best Regards,
Hello,
Your issue has been resolved. Navigate to Layouts > Edit single product layout > edit add to cart widget and enable the stock status widget. Please check back your site and check the issue.
Best Regards,