Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [validate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers

How sales rule condition validation work in Magento 2?

Please let me know, In Magento 2 How Sales rule condition validation works with the quote? Thanks!
Rajan Soni's user avatar
  • 1,019
1 vote
3 answers

Magento 2 - Valid class not found from basename 'Magento\Framework\Validator\EmailAddress'

I am getting this error Valid class not found from basename 'Magento\Framework\Validator\EmailAddress' on the checkout page on Magento 2. i am using plesk Error screenshot:
Mohit Thakur's user avatar
1 vote
1 answer

How to customize validate-product.js, so it will return message in popup?

If a customer forgets to choose the product option of the configurable product on the product listing page and click "add to cart" it is redirecting you to the product view page with the message: "You ...
Sagar Parikh's user avatar
0 votes
2 answers

Field number validation

I need to validate a field in a custom form. The field should be not required, and should validate if the content entered in it are numbers. I added the validation on the form which works. What does ...
mrcl's user avatar
  • 37
0 votes
1 answer

Magento 2 How to validate newly added field in cart price rule

I have added a new field in the Cart Price Rule form as below. I have saved the value in the table as a new column <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi=&...
Jancy Abraham's user avatar
0 votes
1 answer

Validate if render referenceBlock in checkout layout

I have tried validate if render referenceBlock in checkout layout, but it does not work. I added block Vendor\Module\Block\Index in layout after referenceBlock Vendor/Module/view/frontend/layout/...
Diego Castro's user avatar
0 votes
2 answers

Magento2 - Form validate instant and add class

Is there a way to directly validate a form in Magento2.3x? So that when the input focus goes to the next input element, it automatically validates the previous input and add a class to the input? We ...
JGeer's user avatar
  • 1,418
0 votes
0 answers

Magento2 : How to validate cart rule using plugin?

I was trying to validate the cart rule using plugin, but not able to do this, here I am explaining my approach in form of code files, please let me know how to do this. app\code\Vendor\Module\Plugin\...
Purushotam Sharma's user avatar