Jump to content
thirty bees forum
  • 0

Which File to Override for Validation while Saving Products


Rhapsody

Question

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

  1. The description field (English (English)) is invalid.
  2. The description_short field (English (English)) is invalid.
<a title="Subdomain Availability Check" dir="ltr" onclick="window.open('https://crew-mgr.com/website-check/','Subdomain Check','width=600,height=750,left=500,top=50');return false;" href="https://crew-mgr.com/shop/home/1-new-website-with-2-month-subscription.html" target="_self"><span style="color: #3d00ff;">Check Subdomain Availability</span></a>

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?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...