Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

How do I add to the total of an event registration by selecting a checkbox?

New Here ,
Aug 26, 2017 Aug 26, 2017

I'm basically trying to get an event registration form to add to the total when a user selects an option with a checkbox.

The simplest snippet I could find was this, however I am having trouble implementing it.

Checkbox Options Payment Form - JSFiddle

I recreated it locally and it worked fine.

However when I add it to my BC site the total does not change. I have tried linking to a seperate JS file, and running it inline. Locally I noticed that if I did not call jQuery before the script, it would not run, so I added a link to jQuery above in my catalyst site with no luck.

Can anyone please point me in the right direction as I have very little JS knowledge, could it be something else conflicting with the code?

The form I'm building:

http://www.theshedskatepark.com.au/1.5/Content_Template.html (To find the form you will need to select Week 1 camps, Week 1 half day camps and select the first option.)

screenshot.png

TOPICS
How to
320
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 26, 2017 Aug 26, 2017
LATEST

After struggling with this for the last 24 hours.. I think I may have found a fix. It looks like the <label> tags were interfering with things, it seems to work now I've changed them to <p> tags.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines