Support

Home Forums Event Espresso Premium Sold Out Events disappear on Events Page

Sold Out Events disappear on Events Page

Posted: June 16, 2020 at 8:19 am

Viewing 6 reply threads


kubus

June 16, 2020 at 8:19 am

Dear support team, we encounter the following problem:
As soon as all tickets for an event are sold, it becomes “sold out” correctly, but gets also removed from our event page, so other users can’t sign up for the wait list nor see the event.
We’ve setup an event page (archive page with the condition “events”) and linked it within the EE settings “Event Espresso > Events > Presets” (kind of – we use EE in German). So that EE “knows” where to display its events.
In the events for testing the “sold out” event, we create an event with limit: 10, tickets: 1, wait list: 10.
Then I book a ticket. Now since the ticket count is reached, the event suddenly disappears from this event page. However it is “still there”, because if I open up the direct link to this event, it correctly displays the event information and also the “sold out” label and the waitlist button. But not for our events (overview) page.
Did we miss something in setting up that page maybe?
Thank you for any hints or further questions.


Tony

  • Support Staff

June 16, 2020 at 2:57 pm

Hi there,

Generally, when this happens it is because something on your site is specifically filtering out all posts that do not have a status of ‘publish’ as sold out events have a status of ‘sold_out’.

Can you link me to the page in question?


kubus

June 17, 2020 at 3:14 am

Dear Tony,
thank you for your answer. Yes, this could be the problem. I cannot give you a link, since our pages are not available online on public. To display the events, we’re using the Posts Widget from Elementor. This has no option to select the desired status of posts and does currently show all posts of the custom type “events” (or whatever it is called in english correctly). So I guess I’d have to contact Elementor support on this?

I also tried to put all events in a folder from the Folders Plugin but seems like EE doesn’t work with folders. I can select Learndash courses and other this to be used for folders, but “events” is not available. I was trying to filter by a specific folder then with the Elementor Posts widget (maybe this would have ignored the posts status), but seems like it doesn’t work.


kubus

June 17, 2020 at 3:17 am

Dear Tony,
thank you for your answer. Yes, this could be the problem. I cannot give you a link, since our pages are not available online on public. To display the events, we’re using the Posts Widget from Elementor. This has no option to select the desired status of posts and does currently show all posts of the custom type “events” (or whatever it is called in english correctly). So I guess I’d have to contact Elementor support on this?

I also tried to put all events in a folder from the Folders Plugin but seems like EE doesn’t work with folders. I can select Learndash courses and other this to be used for folders, but “events” is not available. I was trying to filter by a specific folder then with the Elementor Posts widget (maybe this would have ignored the posts status), but seems like it doesn’t work.


kubus

June 17, 2020 at 4:17 am

Oh I think we found the solution. It is as you said: when using the Posts Widget, only posts are shown that are published. However if we use the Archive Posts Widget, also other Events (sold Out) are shown correctly. Thanks for pointing us into the right direction! 🙂 I think this will work


Tony

  • Support Staff

June 17, 2020 at 6:04 am

To display the events, we’re using the Posts Widget from Elementor. This has no option to select the desired status of posts and does currently show all posts of the custom type “events” (or whatever it is called in english correctly). So I guess I’d have to contact Elementor support on this?

If you want to use that posts widget, then yes, you’ll need to check with Elementor support. They may have a filter available that allows you to change the post type.

I also tried to put all events in a folder from the Folders Plugin but seems like EE doesn’t work with folders. I can select Learndash courses and other this to be used for folders, but “events” is not available. I was trying to filter by a specific folder then with the Elementor Posts widget (maybe this would have ignored the posts status), but seems like it doesn’t work.

I had a quick look at folders, and it looks like you would have the same issue there as the code specifically sets the status:

AND {$post_table}.post_type = '%s' AND (({$post_table}.post_status = 'publish' OR {$post_table}.post_status = 'future' OR {$post_table}.post_status = 'draft' OR {$post_table}.post_status = 'private'))";

I’d need copies of the plugins you are using to know for sure, but so far it looks like neither will support custom post type stati.


kubus

June 17, 2020 at 7:23 am

I’d need copies of the plugins you are using to know for sure, but so far it looks like neither will support custom post type stati.

Yes I guess you’re right – thank you for having a look at this. We try to use the Archive page for showing the EE events, since this seems to work (it only ignores past events, which is fine of course).

Thank you for helping us out with this!

Viewing 6 reply threads

The support post ‘Sold Out Events disappear on Events Page’ 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