Support

Home Forums Event Espresso Premium Error Cart

Error Cart

Posted: September 3, 2013 at 9:08 am


Marco Genovese

September 3, 2013 at 9:08 am

I have 2 events: one for all users (Registrazione Privati) and one only for registered users (Juventus Vs Hellas Verona 22 Set 2013 – Tribuna Est).

If I click on the event to which only registered users can access, the system tells me that in order to proceed, I have to login or register for the site. So far everything works!
At this point, clicking on “Nuovo Utente? Registrati”, I get redirected to “Registrazione Privati”. I put in my cart this event but I can’t continue because it lacks the button “Inserisci Dati” (Screenshot)

I think I know what the problem is but I do not know how to solve it.
When I simulate the purchase of an event for registered users only, and the system stops me because I have to login or register, the event is also inserted into the cart and this causes the error. The system will not let me continue because it recognizes that into the cart, there is an event which I can not access if I do not login.

Can you please fix this error?
Please make a simulation on my website
My site: http://aicsturitalia.it/privati


Marco Genovese

September 3, 2013 at 10:03 am

A question:
If a user is not logged in, and he tries to buy an event for members only, is it possible not to enter the event automatically into cart?
In this way you could solve my problem

Thanks in advance


Marco Genovese

September 4, 2013 at 2:20 am

Someone can answer me, please?


Marco Genovese

September 4, 2013 at 3:55 am

Can I have your support please?


Dean

September 4, 2013 at 4:01 am

Hi,

I couldn’t see the “Nuovo Utente? Registrati” message. Instead I clicked the main link for Registrazione Privati.

On adding the event to cart, I did see the correct continue button.

Did you turn off the members plugin?

On a test site I added a members only event to cart and tried to view cart, it told me to log in, I did so. I then carried on with the registration without an issue.

I notice that you have modified some files including the shopping cart file. Could you please temporarily rename the wp-content/uploads/espresso/templates directory and try the process again with the default files.

If it works, as it should, then there is an error in the modified files.


Marco Genovese

September 4, 2013 at 4:59 am

Hi Dean,
I renamed wp-content/uploads/espresso/templates but the problem is still there.

Inside the event description I used this shortcode: [ESPRESSO_CART_LINK anchor = “BUY EVENT” direct_to_cart = 1 moving_to_cart = “PLEASE WAIT …”] because on the post that is created, I want the button “Add to cart”. If you click the button “Acquista Evento”, the system will inform you that this event is for members only, and you must log in or register.

If I make the login is no problem but if I click on “Nuovo Utente? Registrati” I get redirected to “Registrazione Privati”. By clicking on the “Registrati” button, I get redirected to the shopping cart but I can not register

I attach a screenshot so I give you a better idea.

Please, make a simulation on my website (http://aicsturitalia.it/privati) following the schema of the screenshot.

Thanks in advance


Dean

September 4, 2013 at 6:51 am

Hi,

OK, well I can agree that it is happening.

What I do not understand is why the Registrati link is sending you to the other event. That link should send you to the login/registration screen.

I tested your shortcode above and thats what happened, I got sent to the login screen.

I tested it again in Italian and the message is different http://d.pr/i/GiQh. Have you amended any of the core templates at all?


Marco Genovese

September 4, 2013 at 7:29 am

Hi,
I have change “Registrati” link from admin panel (Screenshot).

I did this because I need to use the event “Registrazione Privati” (event for all) to register users to the site. In fact I use this snippet (https://gist.github.com/Apina/5576163) so that when a user registers for that event, he is also registered as a wordpress user.

As for the message, I have only changed the sentences in the Italian language file.

I propose you again the question that I wrote above:
If a user is not logged in, and he tries to buy an event for members only, is it possible not to enter the event automatically into cart? It’s possible hide the “Add to cart” button (in event_post.php) if a user is not logged in and instead show the button after login?


Marco Genovese

September 4, 2013 at 11:52 am

Can anyone help me, please?


Josh

  • Support Staff

September 4, 2013 at 12:37 pm

Hi Marco,

I think the solution you’re looking for can be done by wrapping the [ESPRESSO_CART_LINK] shortcode that’s in the event’s description with a [is_user_logged_in] or [restrict] shortcode (or equivalent). There are many WordPress plugins out there that add this functionality. Here are a few I can recommend:

http://wordpress.org/plugins/restrict-content/
uses [restrict]

http://wordpress.org/plugins/members/
uses [is_user_logged_in]


Marco Genovese

September 6, 2013 at 5:15 am

Thank you Josh.
I have resolved!

The support post ‘Error 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