Support

Home Forums Event Espresso Premium Conditionally displaying a basket link

Conditionally displaying a basket link

Posted: June 9, 2016 at 8:31 am


deckchairuk

June 9, 2016 at 8:31 am

Hello,

In our header, we have a link to the basket. Currently it’s always there and if you click it without anything in your basket you’re taken to an empty basket.

I’m wondering if there’s anything I can do that will allow me to show it based on the condition that they have something in their basket?

Thanks, Harry.


Josh

  • Support Staff

June 9, 2016 at 2:19 pm

Hi Harry,

I imagine the code for your basket could be wrapped in a check that will only display it if it’s not empty. The tricky part though, is going to be hooking into the AJAX request that adds the the ticket to the basket in the first place, so the basket will begin displaying without having to refresh the page. A PHP developer should be able to do that though.

The support post ‘Conditionally displaying a basket link’ 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