Viewing 3 replies - 1 through 3 (of 3 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    You mean this error message: https://cld.wthms.co/O4fQ/13y6BINS ?

    This is the default error message that browsers have when the quantity input fails validation. WooCommerce error messages happen after the form is submitted, these happen before.

    With some customization you could remove the field validation and only use post-submission validation that will throw a WooCommerce error, but that’s less customer friendly in my opinion.

    Thread Starter gore.m

    (@gorem)

    Thanks you, yes, it is less customer friendly, but I dont use any pop-up on my site so I dont want it.

    Can you help me with customization?

    I deleted lines 97-106 and 107-167 (min-max-quantities.php)but nothing happened.

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Can you help me with customization?

    I can’t, but you could hire a developer:

    https://jobs.wordpress.net/
    https://codeable.io/
    https://woocommerce.com/experts/?project-scope%5B0%5D=1819

    I deleted lines 97-106 and 107-167 (min-max-quantities.php)but nothing happened.

    As mentioned, this pop-up is default browser behavior. Just deleting code in the plugin isn’t go to help. You need to remove the min/max attributes for pre-submission validation, and instead only use post-submission validation.

    I really really don’t think this is a smart idea though, considering how annoying this would be for customers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WooCommerce Min/Max Quantities – error message’ is closed to new replies.