Posted: 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 |
|
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? |
|
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. |
|
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 |
|
Well your actually asking two different questions in terms of EE.
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.
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? |
|
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: Thanks. |
|
|
Hi Noah, Please let us know if that resolves it or not. |
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 |
|
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? |
|
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? 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, |
|
Ah, apologies. [ESPRESSO_CART_LINK] That will add the event to the cart and remain on the current page.
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) |
|
Tony, How can I add events through the Calendar Tooltips? |
|
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. |
|
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. |
|
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)
Whilst possible you would need to modify the Calendar code to do this, which is something I would recommend against.
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.