Announcement

Collapse
No announcement yet.

Problem with javascript checking for missing attributes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • lesliekirk
    replied
    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).
    LOL, yeah, I know

    Leave a comment:


  • RTHOMASDESIGN
    replied
    Originally posted by lesliekirk View Post

    FYI - the script resides in the PROD Product Display Layout
    Ha, that's what I meant. Sorry! I've got CTGY on the brain (I've been working on several category templates lately).

    Leave a comment:


  • lesliekirk
    replied
    Originally posted by RTHOMASDESIGN View Post
    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

    Leave a comment:


  • MGWben
    replied
    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.

    Leave a comment:


  • RTHOMASDESIGN
    replied
    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

    Leave a comment:


  • lesliekirk
    replied
    Originally posted by RTHOMASDESIGN View Post
    Link? 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).
    RTHOMASDESIGN and Brennan - it's custom, it's the Base ReadyTheme, it's here. The store owner said this just started happening.

    Leave a comment:


  • RTHOMASDESIGN
    replied
    Link? 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).

    Leave a comment:


  • Brennan
    replied
    Is that native functionality of Miva or something custom built? If custom can you give us a URL as an example?

    Leave a comment:


  • 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.
Working...
X