- Posts: 11
- Thank you received: 1
×
WooPrice Calculator PRO
[SOLVED] validation not working
- Sufyan
-
- Offline
Less
More
2 years 8 months ago #1589
by Sufyan
Sufyan replied the topic: validation not working
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
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
Please Log in or Create an account to join the conversation.
- yueming chen
-
Topic Author
- Offline
Less
More
- Posts: 12
- Thank you received: 0
2 years 8 months ago #1587
by yueming chen
yueming chen replied the topic: validation not working
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?
Please Log in or Create an account to join the conversation.
- Sufyan
-
- Offline
Less
More
- Posts: 11
- Thank you received: 1
2 years 8 months ago - 2 years 8 months ago #1584
by Sufyan
Sufyan replied the topic: validation not working
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 default and right behavior 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
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 default and right behavior 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
Last Edit: 2 years 8 months ago by Sufyan.
Please Log in or Create an account to join the conversation.
- yueming chen
-
Topic Author
- Offline
Less
More
- Posts: 12
- Thank you received: 0
2 years 8 months ago #1580
by yueming chen
Please Log in or Create an account to join the conversation.
Moderators: david
Time to create page: 0.149 seconds