Support

Home Forums Event Espresso Premium Cart icon link menu item always shows empty cart

Cart icon link menu item always shows empty cart

Posted: December 27, 2021 at 5:44 pm

Viewing 3 reply threads


mdelange

December 27, 2021 at 5:44 pm

I’ve added a shopping cart icon to the menu of my site with a link to /registration-checkout/?event_cart=view#checkout to navigate to the user’s cart. Without the uts parameter, the cart is always empty. With the uts param, the cart is properly shown.


Tony

  • Support Staff

December 29, 2021 at 8:02 am

Hi there,

The UTS parameter is a basic form of cache busting, it’s a timestamp and has very little meaning within EE itself. You can see this if you add ?uts=123456&event_cart=view#checkout to the URL, that not a value EE would ever use, but it should show the cart still (if the value itself was used you would get an error or no cart).

You can also use something like ?tts=12345678&event_cart=view#checkout (just something I made up) and you should see the cart, simply because it’s a random query string that ‘busts’ the cache.

So, with that said, if you are getting the above then it usually means the event cart page being cached and you being served that cached response from your server.

Your site is using inMotion hosting which if I recall correctly has server side caching enabled by default but they have a cache manager in your control panel:

https://www.inmotionhosting.com/support/edu/cpanel/cache-manager-cpanel/

If you add your event and checkout page to the cache exclusion list there and it should prevent this from happening.

So adding:

/events/
/registration-checkout/
/transactions/
/thank-you/
/registration-cancelled/

To the Bypass URL section in your cache manager.

We have some details on this (although no specifically for inMotion) here:

https://eventespresso.com/wiki/setup-nocache-exclusion-rules-event-espresso/


mdelange

December 30, 2021 at 1:22 pm

Extremely helpful and adding the exculsions to the caching settings in cPanel resolved the issue. Thank you Tony!!!


Tony

  • Support Staff

December 30, 2021 at 3:45 pm

You’re most welcome, I’m glad that fixed it 🙂

Any further issues just let us know.

Viewing 3 reply threads

The support post ‘Cart icon link menu item always shows empty 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