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.
Announcement
Collapse
No announcement yet.
Problem with javascript checking for missing attributes
Collapse
X
-
Problem with javascript checking for missing attributes
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Tags: None
-
Originally posted by RTHOMASDESIGN View PostLink? What ReadyTheme? Probably just need to move the error message out of the form, or modify the add-to-cart script (if it's not within the form).Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
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
Comment
-
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.Benjamin Smith - Developer
www.midwestgunworks.com
Comment
-
Originally posted by RTHOMASDESIGN View PostHuh, 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.
-RyanLeslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
Originally posted by RTHOMASDESIGN View Post
Ha, that's what I meant. Sorry! I've got CTGY on the brain (I've been working on several category templates lately).Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
Comment