Support

Home Forums Events Calendar Add-on Adding multiple events to the cart from the calendar view only adds one 1 event

Adding multiple events to the cart from the calendar view only adds one 1 event

Posted: December 21, 2013 at 1:29 pm


Jeffrey Strickler

December 21, 2013 at 1:29 pm

I’m using the Calendar view, and Multiple event registration and in the description of each event (that was multiplied) I’m using the below code so that one can add all events to their cart.
[ESPRESSO_CART_LINK event_id=”1-2-3″ anchor=”Register for These Events”]

When you select this link from the calendar page it only adds that event to the cart.(Side note: I also only uses the work “Register” and not “Register for These Events”) However, if you click the name of the event (to view event details page) and then on this link it will put all those events into cart correctly. Is there any way to get around this?

If not, how do people make the multiple event registration intuitive? When you add an event to the cart can you add any navigation or verbiage on how to add more events? I feel like I come to a dead end. Also, When adding events to a cart is there a way to default a 1 in the number of registrants? If I put it into my cart why would it be set to 0 by default?


Tony

  • Support Staff

December 23, 2013 at 3:48 am

Hi Jeffrey,

Currently the calendar tooltip only allows a single event to be added at a time, I have created a ticket for a developer to look into this as I’m unsure of the reasoning behind it.

Defaulting the the cart to 1 can be done 2 ways.

Via jQuery
https://eventespresso.com/topic/cart-ticket-dropdown-defaults-to-0/

Or via a core edit. event-espresso/includes/functions/cart.php line 955

for ($i = 0; $i <= $qty; $i++):

change the 0 to a 1

for ($i = 1; $i <= $qty; $i++):


Jeffrey Strickler

December 23, 2013 at 12:17 pm

That is perfect. Thanks for the help!


Josh

  • Support Staff

December 24, 2013 at 9:34 am

Hi there,

As an aside, the reason it defaults to zero is for cases where there are more than one price option for an event. When it defaults to one, then people will need to remove all of the unwanted price options each time there is more than one price option.

The support post ‘Adding multiple events to the cart from the calendar view only adds one 1 event’ 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.

Event Espresso