Support

Home Forums Multiple Event Registration Add-on Error with update and delete cart items

Error with update and delete cart items

Posted: August 11, 2016 at 7:39 am


etcwebdivision

August 11, 2016 at 7:39 am

I’m having a couple of problems with the cart.
1. When I view my cart and click on the trash can to delete a ticket I get the error message “An error has occurred:
The specified item could not be found in the cart, therefore the quantity could not be adjusted. Please refresh the page and try again.” however it does delete the ticket.
2. When I view my cart and click on the “update cart” button I get the error message “An error has occurred:
The requested route update_cart_url could not be mapped to any registered modules.” however it does update the tickets correctly.
3. When I view my cart and click on the “+” it’s adding 2 tickets at a time where I only want it to add 1 at a time.
4. When I view my cart and click on the “-” it deletes two at a time but I also sometimes get this error instead “The following errors have occurred:
The specified item could not be found in the cart, therefore the quantity could not be adjusted. Please refresh the page and try again.
The cart line item was not specified, therefore a ticket could not be removed. Please refresh the page and try again.”


etcwebdivision

August 11, 2016 at 8:02 am

I figured it out. It was a conflict with my plugin “Page Animations and Transitions” that was causing all of these. I do have another issue though. When I’m on the events page and add tickets to my cart I get the popup that tells me items were successfully added to the cart and buttons for “return to events”, “check out”, “view cart”. When I click :return to events” it just closes the popup but doesn’t takes me to the events page. How can I set this?


Tony

  • Support Staff

August 11, 2016 at 12:26 pm

When I click :return to events” it just closes the popup but doesn’t takes me to the events page. How can I set this?

That button should close the modal if your are adding tickets from the /events/ listing, if you are within a single event adding the tickets to the cart it should direct your back to /events/

Can you link me to where you are testing this please?


etcwebdivision

August 11, 2016 at 1:54 pm

Yeah it’s from a single events page and I want it to link back to /events/ but it just closes the modal. http://fear.etclinuxtest.com/events/escape-room/


Tony

  • Support Staff

August 11, 2016 at 2:47 pm

Thank you, I can see the problem.

You have event categories that match the name of your current events, for example:

Escape room category – http://fear.etclinuxtest.com/event-category/escape-room/

Escape room event – http://fear.etclinuxtest.com/events/escape-room/

The problem is that EE checks if there is an EE category that matches your current page so that if your viewing the category listing and adding tickets from that listing it will simply close the modal and allow you to continue to select more tickets from events in that category.

So because you have a category ‘escape room’ the modal assumes you are viewing the category and just closes. Currently all of your events match your categories but if you create an event that does not match a category name it will work how your expecting.

I’ve created a ticket for our developers to investigate this.


etcwebdivision

August 11, 2016 at 2:54 pm

That makes sense. Thanks for investigating.


Tony

  • Support Staff

August 11, 2016 at 3:12 pm

You’re most welcome 🙂

The support post ‘Error with update and delete cart items’ 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