Home Forums Event Espresso Premium Links to go to Cart sometimes come up with error message

Links to go to Cart sometimes come up with error message

Posted: October 26, 2012 at 5:21 am

Nick Putman

October 26, 2012 at 5:21 am


I have two methods of people getting to the Cart that I am using with the Multi Event Registration plugin. There is the shortcode on the main event page:

[ESPRESSO_CART_LINK event_id=”1″ anchor=”Register for This Event” direct_to_cart=1 moving_to_cart=”Redirecting to booking…”]

which always works fine, and then there is a link in my Navigation Bar, entitled ‘Book on Seminar” which uses the following URL:

Sometimes this link works as the above shortcode, but sometimes the following message shows on the page.

“It looks like you are attempting to refresh a page after completing your registration or your cart is empty. Please go to the events page and try again.”

It may be that this message is appearing for me because I have previously started the registration process, but I would like to find a way of the link always showing the first page of the registration page, where users can choose the number of people they are booking on at each rate, i.e. the page built with the shopping_cart.php template.




October 26, 2012 at 5:52 am

Hi Nick,

The reason you are getting the error is because the cart is empty, the link isnt adding anything to the cart and redirecting, but merely redirecting to an empty cart.

The code used on the event actually performs a function and does something behind the scenes (adding the event to the cart).

I was looking at a work around which would at least put the user onto the registration page (just using but the way you have things set up that page doesnt any info.

Sending the user to looks a little better but again, if they click the view details link it goes to the page with no info.

You can’t use the code in the menu either.

I haven’t really got a solution for you, except to perhaps rethink what you are trying to do.

Nick Putman

October 26, 2012 at 5:59 am

Thanks for the info Dean. It sounds like the best solution for now is to add the shortcode to the description for the event and then get the navigation item to redirect the user to this page. It’s an extra step but at least they will at least always see the cart.

Will the shortcode work in the sidebar?

I think that for folks who want to use the Multi Event Registration plugin, it would be useful to have a method of getting straight to the cart from the navigation bar, i.e. a link that adds the event to the cart link the shortcode does.

Maybe one for the ‘To Do’ list?



October 26, 2012 at 6:06 am

Hi Nick,

Yes the shortcode should work in the sidebar, but it is theme dependant. You can add this to your theme functions.php if the shortcode doesnt work, which will force it to work

It might be an interesting one to implement, but I’ll add it to the feature request list.

The support post ‘Links to go to Cart sometimes come up with error message’ 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