If the product status is set to “in stock” without “track stock quantity for this product” we still get the “stock management not enabled for this product.” message and the “in stock” won’t show up.
#1: I don’t see this as a bug because the message is correct if stock management is not activated for the product (the checkmark next to “Stock Management” is not set).
#2: “In Stock” is generally not displayed - neither in Bricks, nor in TwentyTwentyThree, nor Astra if the stock management is not enabled. If it is enabled, it shows “x in stock”, or the custom message provided within the product stock element.
No Problem. The question is how it should behave and what it should show, and what not.
From my point of view, it doesn’t make any sense to show an “In Stock” message by default because you can expect from an online store that you can buy its products - if they are available.
However, if you decide to display a custom “In Stock” message, I think it should always be displayed - regardless of whether stock management is enabled, as long as the product is set to “In stock”.
Ok, let’s not consider this a bug or a suggestion for improvement.
Generally, stock management in WooCommerce can be relatively confusing. As far as I understand, the settings in your screenshot refer only to the stock quantity, not to “in stock” in general.
I will open a bigger thread in the “how to” section that includes some improvements and problems of WooCommerce. This could be a good source of ideas to develop WooCommerce elements for Bricks.
we set the “in stock” custom text, I am expecting it will show the text, if the product has “in stock” selected. we use other systems to manage the stock and just want to show some text, if the product is in stock.
unfortunately it does not work out-of-the-box for “in stock”.
Hi Stefan, it is a simple product. If we set stock status to “in stock”, we see nothing in the frontend. If we change it to “out of stock”, then we see the text.
I cannot detect any problem in my installation. Would you be so kind as to send temporary login credentials, information on where we can see the issue, and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase?
As far as I can see, that’s the default behavior of WooCommerce: if you don’t “Track stock quantity for this product,” nothing is shown if it’s in stock, but of course, an out-of-stock message, if it’s out of stock.
You’ll get the same behavior with any other default Theme, e.g. twentytwentyfour.
Bricksultimate has just released the final WooCommerce condition needed to fix this issue. I created an identical element to the stock status element, and now it works “as it should.”