Posted: February 13, 2025 at 1:50 am
Hi, I have overridden the content-espresso_events-shortcode.php file in my child theme, and I am using the following code: Check template code : https://app.screencast.com/mW2hmTX56Yw1Z The issue I am facing is with the Available Space display. The event list generated by this shortcode shows available spaces for events that are actually completely sold out. Issue Details: Screenshots: Could you please check (url: https://firstaidkelowna.ca/first-aid-and-cpr-courses/emergency-first-aid/) and guide me on why the available space is still showing for events that are completely sold out? Thanks! |
|
Hi Mark, It looks like the code is currently commented out as I can’t see available spaces listed, correct? Pick an event this is happening on and link me directly to that event please, we’ll focus on that one eent as it’s likely the same issue throughout. Then post a screenshot of all of the datetimes and tickets available for that event within the editor (make sure there aren’t any filters applied on the output, see HERE and HERE) |
|
Hi Tony, Yes, I had commented out the available space because it was misleading users. I have now removed the comment for this event so you can review the issue. Here is the url of one of the event where the issue is occurring: Below are the screenshots of the event’s Datetimes and Ticket Availability settings in the admin editor, as requested: |
|
Hmmm, it is being caused by the archived ticket, the event space calculator isn’t taking those into consideration when used with that specific function. Right above that call add this:
That should fix it. I’ve opened a ticket to discuss this further with the team. |
|
I have implemented the code you provided, and it works. However, I noticed an issue: It only worked when all the tickets in that event has been purchased. But if an event hs a total capacity of 8 tickets and 5 of them purchased and 3 left, but we marked that event as sold out, it still shows the spaces left instead of sold out. The event should be marked as “Sold Out” in both of the following conditions: 1. All 8 spaces have been purchased → The event should show “Sold Out.” Check this event where the issue is still occurring. We manually marked it as ‘Sold Out,’ but the available spaces are still being displayed: Screenshot showing the event date, time, and available tickets. |
|
You must be logged in to reply to this support post. Sign In or Register for an Account