If you looks at the page source when using a shortcode like [ESPRESSO_CART_LINK event_id="3-4-5-6" direct_to_cart=1 moving_to_cart="Redirecting to cart..."], it has the classes ee_view_cart and ee_add_item_to_cart and an id of cart_link_3-4-5-6.
You can see that it creates a link like this: <a class="ee_view_cart ee_add_item_to_cart" id="cart_link_3-4-5-6" href="http://www.espresso-3-1.dev/?page_id=4®event_action=add_event_to_cart&event_id=3-4-5-6" moving_to_cart="Redirecting+to+cart..." direct_to_cart="1" rel="nofollow">Add to cart</a>
You might want to add the cart_link_ somehow.
Also, it looks like your url is is outputting & in the url: http://register.nithyananda.ca/uk/?page_id=4&regevent_action=add_event_to_cart&event_id=1-6&name_of_event=
We are building the URL for the form to submit, and replacing the href (document.form.action=’http://..’) based on event selections as above.
How would you pass the class and id paramters?
Is there any implementation you have done like this?
Thanks for your help!
Viewing 3 reply threads
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.
Support forum for Event Espresso 3 and Event Espresso 4.