If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Announcement
Collapse
No announcement yet.
Problem with javascript checking for missing attributes
Huh, someone must've changed something if it just started happening (or it never worked as intended). Search for "ValidateForm" within the CTGY page. IDK where the script is located exactly -- looks like it could be in the CTGY template. Anyway, the function "ValidateForm" should be updated.
Considering the error messages it's definitely custom. The store owner should reach out to whoever created the script.
-Ryan
FYI - the script resides in the PROD Product Display Layout
Agreed with RTHOMASDESIGN , that validation check for the form looks custom and the way it's laid out would suggest it has always been like this. The form does its' error check for the attributes but it still is submitting to BASK regardless.
That JS error check function could simply first prevent form submission, do the check, and then - if no error - submit the form as normal.
Huh, someone must've changed something if it just started happening (or it never worked as intended). Search for "ValidateForm" within the CTGY page. IDK where the script is located exactly -- looks like it could be in the CTGY template. Anyway, the function "ValidateForm" should be updated.
Considering the error messages it's definitely custom. The store owner should reach out to whoever created the script.
Problem with javascript checking for missing attributes
Store is using a javascript function to popup an alert if an attribute has not been selected when the Add to Cart is clicked. When you click the "OK" to close the error message window, it adds the product to the cart without giving the shopper the opportunity to correct their oversight. I do not know if at some point in time it allowed for correction or it's always been this way. Not sure where to begin with this one.
Leave a comment: