Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114 Adding multiple events to Cart - Not working as desired | Event Espresso - Staging Server
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.