Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pogle

    (@pogle)

    I also found this in my research: https://wordpress.stackexchange.com/questions/218336/change-out-of-stock-error-message-in-woocommerce-cart

    Is there a way I can change the message to something like this minus the number in stock?

    • This reply was modified 5 years, 3 months ago by pogle.
    Thread Starter pogle

    (@pogle)

    @dynamiczach looking back at the other (closed) ticket on this same subject, can you elaborate on how that ‘Value must be less than or equal to XXX’ message is a browser message and not something in woocommerce? Is it possible to be edited, or will it always show what the actual quantity is even if it’s set to hidden in woocommerce?

    • This reply was modified 5 years, 3 months ago by pogle.
    • This reply was modified 5 years, 3 months ago by pogle.

    Hi @pogle,

    Let’s take a look at how this message is created and in what circumstances you’ll see it.

    When a product is set to have inventory managed and backorders not allowed, WooCommerce adds a “maximum” value to the input field. That’s why the browser generates a message there when too many items are selected.

    Here’s a screenshot of the code:

    max

    One way to turn that off is to allow backorders on that product. It will remove the maximum from the input. That will keep visitors from being able to figure out how many you have in stock.

    If you have any questions about this, let me know.

    Cheers,

    Thread Starter pogle

    (@pogle)

    thanks, i’ll try that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Editing Stock Management Message’ is closed to new replies.