3

Is it okay to modify lib/web/mage/validation.js directly? If not, how do I override it? There's a bug there I want to fix. Thank you.

asked Jan 30, 2018 at 15:38

1 Answer 1

10

No don't edit that file directly as it is a core file, you can overwrite it by adding it to your theme here:

app/design/frontend/STORE/THEME/web/mage/validation.js

Or alternatively you can use Require JS to change the file called as this answer explains

answered Jan 30, 2018 at 16:15

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.