Support

Home Forums Event Espresso Premium Multiple event registration – add to cart

Multiple event registration – add to cart

Posted: January 7, 2014 at 9:30 am


noah

January 7, 2014 at 9:30 am

Is it possible to add an event to a shopping cart without going to the shopping cart page?

And is it possible to edit the shopping cart template?

Unless I’m missing something you have to add the event to the cart and then click the back button twice to get back the the event list/calendar.

Thanks


Tony

  • Support Staff

January 7, 2014 at 9:54 am

Hi Noah,

It depends on how you create the Add to cart link. For example this shortcode:

[ESPRESSO_CART_LINK event_id=”1″ anchor=”Register for This Event”]

Will just add the event with ID 1 to the cart when clicked and then you can continue adding others.

The shortcode:

[ESPRESSO_CART_LINK direct_to_cart=1 moving_to_cart=”Redirecting to cart…”]

Adds whichever event the link is created within to the cart and then directs the user there. If you notice the direct_to_cart=1 attribute, it is that which directs the user directly to the cart when clicked.

Which part of the shopping cart would you like to modify?


noah

January 7, 2014 at 12:16 pm

Tony,

Thanks for the add to cart short code.

I wanted to add a link back to one of our filtered calendar pages on the shopping cart page. We are only using the shopping cart for our kids classes and want to be able to send them back to the filtered calendar. Right now I have a link back to the calendar on the event registration page but I can’t have it go to the filtered calendar because it appears on every event registration page. If I could have the link appear only on the shopping cart page then it could send them back to a filtered calendar.

Thanks.


noah

January 7, 2014 at 12:21 pm

Tony,

How can I send people to the registration page without adding the event to the shopping cart.

Or to put it another way, how can I link directly to the shopping cart without adding an event?

Thanks


Tony

  • Support Staff

January 7, 2014 at 12:36 pm

Well your actually asking two different questions in terms of EE.

How can I send people to the registration page without adding the event to the shopping cart.

This would be using the ‘Register’ button, this takes you to the registration page for the event. Which is the default behavior for Event Espresso.

Or to put it another way, how can I link directly to the shopping cart without adding an event?

You can not. Viewing the cart with no events throws and error stating there are no events in the cart http://d.pr/i/DV2j

We may be thinking of two different things here. Can describe what your looking to do or possibly link me to the site so I can see?


noah

January 7, 2014 at 7:08 pm

Tony,

You can ignore my first question because I was really trying to ask the second, and you answered it perfectly. I had managed to link to the shopping cart (following instructions I found in another forum post) and it was working until I cleared all of the events from the cart and navigated away. Now I get the error that you linked to.

Unfortunately I get the error even after adding a class to the cart. I’ll try deleting the classes and creating them again to see if that solves the problem that I created.

You can see the site at the following URL:
http://64.202.179.20/classes/classes-for-kids/

Thanks.


Dean

January 8, 2014 at 12:14 am

Hi Noah,

Please let us know if that resolves it or not.


noah

January 8, 2014 at 8:59 am

Dean,

I deleted and remade the events as well as removed the link to an empty shopping cart.

The new short code that I’m using is:

[ESPRESSO_CART_LINK event_id=”1″ anchor=”Register for This Class”]

I can only get to the shopping cart after I register for the class (add it to the cart) and the cart link changes from “Register for this Class” to “View Cart”. But I still get the error every time.

Any suggestions?

Thanks


Tony

  • Support Staff

January 8, 2014 at 9:27 am

Hi Noah,

Your are currently using the wrong shortcode attribute.

[ESPRESSO_CART_LINK event_id=”1″ anchor=”Register for This Class”]

That’s the one you are currently using, this is adding an event with ID 1 to the cart (which does not exist) which is causing your errors.

You need a slightly different one:

[ESPRESSO_CART_LINK direct_to_cart=1 moving_to_cart=”Redirecting to cart…”]

This adds whichever event the shortcode is used within to the cart.

Does that make sense?


noah

January 8, 2014 at 9:50 am

Tony,

That makes sense. I’ll fix it.

But can I add the event that the shortcode is in to the cart without redirecting to the cart?
Or can I use an [espresso_cart_link] shortcode without specifying the event_id?

And/or can I add a link back to the filtered calendar page to the shopping cart? I don’t want the link to appear on event registration pages. Only on the shopping cart page. Is that possible?

Thanks,


Tony

  • Support Staff

January 8, 2014 at 10:04 am

Ah, apologies.
Yes you can use the shortcode just as is

[ESPRESSO_CART_LINK]

That will add the event to the cart and remain on the current page.

And/or can I add a link back to the filtered calendar page to the shopping cart? I don’t want the link to appear on event registration pages. Only on the shopping cart page. Is that possible?

Sorry, I’m not sure what you mean here?

However, you can add events to the cart through the Calendar tooltips if that helps? Just click the register link from within the tooptip. (once you’ve changed the shortcode, otherwise you’ll be re-directed)


noah

January 8, 2014 at 3:18 pm

Tony,

How can I add events through the Calendar Tooltips?


Tony

  • Support Staff

January 9, 2014 at 3:11 am

When you include the ESPRESSO_CART shortcode in the event description, it will also be displayed within the tooltip.

If you then click the link in the tooltip it will add the event to the cart.


noah

January 9, 2014 at 8:01 am

Tony,

I have the following in my repeating event descriptions and I still only get the “View Details” button in the Tooltip.

[ESPRESSO_CART_LINK anchor=”Register for This Class”]

I also tried both adding and changing the shortcode to [ESPRESSO_CART_LINK], but that didn’t change anything.

I think I just figured out what you mean. I have the add to cart text after the ‘more’ tag, so it isn’t displayed. If it were before the ‘more’ tag you could use it to add the event to the cart directly from the Tooltip. Or is it possible to change the Tooltip buttons (Register or View Details) to ‘Add To Cart’?

Also, I can change the anchor text for the cart link with anchor=, but can I add a tooltip Title?

Thanks.


Tony

  • Support Staff

January 9, 2014 at 9:58 am

If it were before the ‘more’ tag you could use it to add the event to the cart directly from the Tooltip.

Yes it will be displayed within the tooltip description then. I assumed from viewing some of the event this was the case already as some were already displaying the cart link (but would direct to the cart when clicked)

Or is it possible to change the Tooltip buttons (Register or View Details) to ‘Add To Cart’?

Whilst possible you would need to modify the Calendar code to do this, which is something I would recommend against.

Also, I can change the anchor text for the cart link with anchor=, but can I add a tooltip Title?

Do you mean display a different cart link title when displayed within the tooltip? Unfortunately not no.

The support post ‘Multiple event registration – add to cart’ 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