PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

jQuery, Cart66, Pricing, and Checkboxes

  1. Hello all! I'm stuck and hoping someone can help me out.

    I've got a product in Cart66 that uses GF pricing. In the gform, I have three checkboxes set up (using the standard fields) that use a DIV in the label field to produce an image, and have the checkbox itself hidden. These checkboxes are to add options to a product. I have some jQuery code that watches those boxes for a click, and if selected, adds an "active" class to the div switch the image to a checkbox. It works beautifully, except the pricing wasn't getting passed along from the standard checkboxes.

    I did a little research that showed me I had to use the options pricing fields in GF. No problem. I recreated the checkboxes, exactly as I had before, but this time using the pricing fields. Now, however, my jQuery script won't add the "active" class to the DIV when clicked. Huh? I've looked through the code and can't find what I'm missing—the structure looks identical!

    Maybe a fresh set of eyes will help—can someone help me out?

    EDIT: You can check out the form here: http://bit.ly/YZBdbc

    I've got both checkbox examples posted so you can see the difference. The top one works, the bottom one doesn't.

    Thanks in advance for your help!

    Posted 6 years ago on Wednesday March 13, 2013 | Permalink
  2. Handled via Priority Support. User is going to post the solution.

    Posted 6 years ago on Wednesday March 13, 2013 | Permalink