[SOLVED] validation not working

Home – SaaS Forums Support questions WooPrice Calculator (Pro) [SOLVED] validation not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7372
    yueming chen
    Participant

    hello, I set my field max and minimum. When illegal number input, it also did access to cart.

    [img size=200 ]https://i.imgur.com/4Itoh5D.png[/img]

    above the green, the red is an error for the limit that couldn’t add to cart. But the green show us that’s success to add, is that a bug?

    #7375
    Sufyan
    Participant

    Hi Yueming Chen

    I didn’t understand your question fully but from what I understood, I think you mean to say that even after you enter an illegal number in an input field, despite the error being shown, it still allows adding to cart (means “add to cart” button is still active and clickable)

    If this is what you mean, then yes it is the [b]default and right behavior[/b] of the plugin.

    But if you click “add to cart” after illegal input, the plugin doesn’t add the item to cart but shows an error at the top which you set in your field setting.

    So, it works the other way, let customer click but doesn’t really add and shows the error.

    I hope I answered the question.

    Thanks

    best regards
    Sufyan Afzal

    AT458

    #7374
    yueming chen
    Participant

    so the fake error msg is default by your plugin? How can I enable to prevent to add cart or real forbidden to add cart?

    #7373
    Sufyan
    Participant

    Hi Yueming Chen,

    You asked: “so the fake error msg is default by your plugin?”
    Answer: When you create a numeric field and you set the maximum and minimum input value for that field, you also have an option there to set the error messages for both cases (if the value is greater than maximum and if the value is lower than minimum) But if you do not set the error message yourself, a default error message is displayed from plugin. So it’s better to edit the fields and set your own error messages.

    You asked: “How can I enable to prevent to add cart or real forbidden to add cart”
    Answer: Please elaborate on this question, I can not understand what you want to ask. If you find it difficult to ask, you should give some examples, use cases and provide some screen shorts to clear your question.

    Thanks

    kind regards
    Sufyan Afzal

    AT458

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