• Resolved aklih

    (@aklih)


    Hi there!

    The problem I’m facing is that I don’t know how to translate the notice “Value must be less than or equal to”, once I chose more quantity of a product to add to the cart than the actual stock of it.

    I’ve looked into the woocommerce translation and haven’t found this sentence so I still haven’t managed to found any solution.
    There is a simillar case here : https://wpml.org/forums/topic/how-to-translate-value-must-be-less-than-or-equal-to/ , but the author of the post said that this is browser message not woocommerce message, but didn’t post any solution to it.

    Do you have any suggestions on it?

    Thanks for your time and help!

    Best regards, Aklih.

    • This topic was modified 3 years, 5 months ago by aklih.
Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Support Thu P. a11n

    (@thup90)

    Hi @aklih ,

    I’m glad you figured this out. I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Im having the same problem:

    What’s the default message in WooCommerce for this use case? It seems that there is no message coming from Woo on the form validation and thats why the browser kicks in.

    I tried to override it with oninvalid=”Error message” but it didnt work, any help?

    Thanks

    Hello @negapo ,

    It looks like your idea is right here. WooCommerce does not have any specific error message for the quantity check. The quantity field gets a “max” attribute which allows the browser to show the error message when you put a value more than it.

    If the image does not load: https://d.pr/i/HlkY7v

    I could not locate any existing feature request regarding this. Feel free to add a feature request in the GitHub repository if you want the developers to take a look at this specific check: https://github.com/woocommerce/woocommerce/issues

    Thank you ??

    Thanks, will open a ticket on git.

    Mirko P.

    (@rainfallnixfig)

    Great! That sounds like a plan.

    Feel free to open a new topic if you have any further questions.

    Have a nice day!

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘How to translate “Value must be less than or equal to” woocommerce’ is closed to new replies.