• Resolved SLV

    (@dwnl)


    On the product page in woocommerce it used to say “in stock” if it was a product without inventory control and status “in stock”. But now it shows nothing!

    So:
    In woocommerce I do not have checked the box: Activate inventory management at the product level (on a product page)
    When products are in stock the text: in stock, is not showing on the product page.
    When products are not in stock a not in stock text is showing.
    Why is the in stock text not showing?

    Can someone help me to show it again?

Viewing 7 replies - 1 through 7 (of 7 total)
  • laceyrod

    (@laceyrod)

    Automattic Happiness Engineer

    Hi there,

    Thanks for reaching out!

    I’ve been able to reproduce this on a default installation, so I’ve reported this to our developers where they can take a closer look.

    Please keep an eye out on this thread for updates moving forward: https://github.com/woocommerce/woocommerce/issues/26258

    Let me know if you have any questions!

    Thread Starter SLV

    (@dwnl)

    Hello,

    Thanks for the answer and your time.
    I did notice the following:
    In the theme I’m using and with the help of the makers of: https://themeforest.net/item/electro-electronics-store-woocommerce-theme/15720624

    This code let me show that “in stock” text on products without inventory control and status “in stock”:

    add_filter( ‘woocommerce_get_availability_text’, ‘ec_child_display_in_stock’, 10 );

    function ec_child_display_in_stock( $availability ) {
    if ( empty( $availability ) ) {
    $availability = esc_html__( ‘In Stock’, ‘electro’ );
    }
    return $availability;
    }

    BUT!
    I have also installed the plugin: Woo Custom Stock Status: https://nl.www.ads-software.com/plugins/woo-custom-stock-status/
    With this plugin you can change the following default stock status and different colors for status text:
    In stock
    Only %s left in stock
    (can be backordered)
    %s in stock
    Available on backorder
    Out of stock

    Great yes, BUT then the “in stock” text in a product without inventory control and status “in stock” is not showing.
    So when I deactivated this plugin the code from my theme works and the text “in stock” is showing…

    The Woo Custom Stock Status plugin makers did not yet respond to my question: https://www.ads-software.com/support/topic/in-stock-text-not-showing/

    Thread Starter SLV

    (@dwnl)

    They say:

    We won’t be able to include this fix in the upcoming release due to the lower priority of this issue compared to others reported. We’re going to add it to our backlog so we can include it in our planning for one of our future releases.

    Lol.
    It’s a shop plugin… kinda important I would think so show if something is in stock or not…

    laceyrod

    (@laceyrod)

    Automattic Happiness Engineer

    Hi @dwnl,

    Thanks for your reply.

    To make sure I’m on the same page, you’re stating that the Woo Custom Stock Status plugin is causing this text to disappear? This is odd considering the bug is in core, and we’ve been able to confirm that. Would you mind clarifying?

    It’s a shop plugin… kinda important I would think so show if something is in stock

    I do agree that it’s an important feature, and it will be addressed in a future release. While I cannot provide you with an ETA as far as when this will be addressed, you can definitely keep an eye out for updates in that report. If you are needing more of a quick fix, we can also recommend you reach out to the following experts for help: https://woocommerce.com/customizations/

    Thanks for your understanding!

    Hi,

    We have recently updated the woo-custom-stock-status plugin, can you check if above issue was solved.

    thanks

    Thread Starter SLV

    (@dwnl)

    laceyrod, Woocommerce doesn’t show it, default, the custom snippet above does.
    When the Woo Custom Stock Status plugin was activated it did not again.

    Meanwhile softound (@softound) has updated their plugin and now everything works again on my site.

    But it would be nice if it all would work in Woocommerce do. The less plugins needed for these basic shop things, the better.

    Thanks softound (@softound), great!

    • This reply was modified 4 years, 6 months ago by SLV.
    • This reply was modified 4 years, 6 months ago by SLV.
    • This reply was modified 4 years, 6 months ago by SLV.
    laceyrod

    (@laceyrod)

    Automattic Happiness Engineer

    @dwnl

    Makes sense! Thanks for clarifying. I completely hear what you’re saying about less is more ??

    You’ll just want to follow along that GitHub thread to continue checking our progress on it.

    Cheers!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘In stock text not showing’ is closed to new replies.