I am receiving errors when saving product descriptions and short product descriptions that contain links that have the javascript onclick function per below.
This code results in the errors
×2 errors
The description field (English (English)) is invalid.
The description_short field (English (English)) is invalid.
I know that when editing the product and saving it, there is a validation that takes place, and the onclick is probably causing the validation to fail. What I don't know is which files are used to conduct the validation. I have worked around this by manually saving the raw html in the database with phpMyAdmin.
Can anyone provide assistance on which file is used to conduct the validation for saving a product so I can override it to validate the code with the onclick?
Question
Rhapsody
I am receiving errors when saving product descriptions and short product descriptions that contain links that have the javascript onclick function per below.
This code results in the errors
×2 errors
I know that when editing the product and saving it, there is a validation that takes place, and the onclick is probably causing the validation to fail. What I don't know is which files are used to conduct the validation. I have worked around this by manually saving the raw html in the database with phpMyAdmin.
Can anyone provide assistance on which file is used to conduct the validation for saving a product so I can override it to validate the code with the onclick?
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now