1

After upgrading Magento 2.3.3 to 2.4.6-p3, custom options of product are not being validated in Magneto 2.4.6. In Magneto 2.3.3 we added validation ignore to apply validation on hidden field

$('.catalog-product-view #product_addtocart_form').mage('validation', {
    ignore: []
});

This was working fine in Magento 2.3.3 but not after upgrading. Any suggestion on this, please. There is something wrong with latest version of jQuery and mage validation js.

1 Answer 1

0

Please update code for validation

 $("#product_addtocart_form").validation('isValid');

Now we have the validation() method to check the validation of the form.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.