Support

Home Forums Event Espresso Premium Hide Tickets and Display Message If Sold Out

Hide Tickets and Display Message If Sold Out

Posted: December 5, 2014 at 3:22 pm


imcabee

December 5, 2014 at 3:22 pm

Hello,

I am using EE4. I have a number of events which I have marked as “Sold Out” or “Cancelled.” However, on the front-end there is no message in the event description that indicates either and the user can start the registration process by selecting a ticket. How can I remove the tickets section and setup custom messages if an event is “Sold Out” or “Cancelled?”

Thanks


Lorenzo Orlando Caum

  • Support Staff

December 5, 2014 at 4:10 pm

Hi, you can expire the datetime by setting the quantity available to match the amount that has been sold:

http://cl.ly/image/092b161u3B13

That will force remaining ticket options to change to sold out.

You can add any extra messaging at the end of the event description area.

This line of CSS can be added to your child theme or a plugin like Reaktiv CSS or My Custom CSS and it will hide sold out ticket options:

.espresso_events .ticket-sales-sold-out {display:none;}


Lorenzo


imcabee

December 5, 2014 at 4:50 pm

Hello Lorenzo,

Yes, I am aware of expiring the datetime this way by lowering the tickets available to match tickets sold. Rather than having to manually add a message at the end of a description (very clunky), can this be automated so that if I set an event as “Closed” or “Sold Out” it automatically displays a custom message in the template?

Thanks,
Ian


Tony

  • Support Staff

December 8, 2014 at 6:13 am

Hi Ian,

We have a ticket to remove the ticket selector from events that are not Upcoming or Active, so Sold Out & Cancelled events will not longer display the ticket selector. This will be included within the next update to Event Espresso 4.

However currently to display a message it would need to be added to the events description.

The support post ‘Hide Tickets and Display Message If Sold Out’ 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