Posted: October 1, 2012 at 1:52 pm
http://register.nithyananda.ca/uk/events-list/ Basically have a list of events with check boxes User checks all events he is interested in and presses Add Events to Cart This is the onClick target URL: http://register.nithyananda.ca/uk/?page_id=4®event_action=add_event_to_cart&event_id=”‘+ VALUES_OF_EVENT_IDS + ‘”&name_of_event= Instead of adding all events to cart (in the format of event ids 1-3-6 etc), it goes to the registration page listing all events how can this be done? Thanks! | |
Added to target URL string & ‘http://register.nithyananda.ca/uk/?page_id=4®event_action=add_event_to_cart&event_id=’+ c_value + ‘&name_of_event=’; c_value is computed on_click from the checkbox selection | |
If you looks at the page source when using a shortcode like You can see that it creates a link like this: You might want to add the Also, it looks like your url is is outputting | |
Seth, Thanks it is clear. We are building the URL for the form to submit, and replacing the href (document.form.action=’http://..’) based on event selections as above. Is there any implementation you have done like this? Thanks for your help! | |
The support post ‘Adding multiple events to Cart – Not working as desired’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.