[Support request] How to show out of stock label without adding price to products

Home Forums Support [Support request] How to show out of stock label without adding price to products

Home Forums Support How to show out of stock label without adding price to products

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1434140
    Umesh

    I want to show “out of stock” label without adding price to the products

    After adding prices to the product the “out of stock” label is visible, but without price, it is not visible

    #1434171
    Leo
    Staff
    Customer Support

    Hi there,

    I don’t think WooCommerce offers this option unfortunately.

    I found this PHP snippet that might be worth a shot:

    https://stackoverflow.com/questions/22897709/woocommerce-hide-prices-when-inventory-is-set-to-0-or-out-of-stock

    If that doesn’t work then I would recommend to check with WooCommerce support to see if this is possible as the theme itself doesn’t control this.

    Let me know 🙂

    #1434219
    Umesh

    Thanks for your prompt response

    Sorry but I don’t want to add price anyhow

    Is there any way to show custom text after product short description only on “out of stock” products?

    #1434221
    Leo
    Staff
    Customer Support

    Hmm I would recommend checking with WooCommerce support team on this.

    You will likely need to use a hook and the out of stock conditional tag similar to the post I linked above:
    https://www.businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.