Support

Home Forums Event Espresso Premium Delete Datetimes and Tickets

Delete Datetimes and Tickets

Posted: November 16, 2020 at 1:07 pm


socialsparkmedia

November 16, 2020 at 1:07 pm

I have a static list of events that I add datetimes and tickets to for every month. I’ve been doing this since 2018, and now I notice that my event pages still list the datetimes that have passed. Also, they are cluttering up the backend of my event page. What’s the best way to clean this up? It’s not good for my user experience to see datetimes that are passed, even if they are just last week.

Thanks,
Fran


socialsparkmedia

November 16, 2020 at 1:08 pm

This reply has been marked as private.


Tony

  • Support Staff

November 17, 2020 at 3:35 am

Hi there,

You can’t delete tickets/datetimes from an event if they have registrations assigned to them, so to remove them you’d need to delete the registrations attached to them.

However, you can’t remove registrations with payments attached to them, so first you need to manually remove any payments assigned to the transaction, then remove the registration.

So, in short, right now the easiest method to clear those is to essentially archive the current event and start with a new one.

You can use the duplicate event feature to duplicate the current event, then edit the slug of the original event to contain the date range it went from.

So as an example {slug}-2018-2020.

THen edit the slug of the new duplicate event to match what the original was (so that all links that point to that ‘old’ event now point to the new one. Edit any of the event details needed and save.

Will that work for you?


socialsparkmedia

November 17, 2020 at 10:21 am

Yes, that works. The only thing I needed to add to that is to uncheck the categories that the event was part of, otherwise it showed up on pages where I displayed events by category.

Thanks! I’ll be so glad to get this old stuff cleaned up. 🙂


Tony

  • Support Staff

November 17, 2020 at 2:25 pm

Great! Good call on the categories.

Any further issues just let us know.


socialsparkmedia

November 25, 2020 at 4:17 pm

Hey Tony,
Did all of this as instructed. I thought everything was fine until I looked at my calendar and it’s showing Archived listings as well as classes that I marked as cancelled. I took the categories off of both of them, and tried to show only the main category using the shortcode, but it still shows up. Cleared my caches, same thing. See screenshot: https://www.screencast.com/t/41ibrUSvN8gx

Thanks for your help,
Fran


Tony

  • Support Staff

November 26, 2020 at 2:31 am

Hi Fran,

For the archived event set the post status to Privately Published, it will then only be available for users logged in as Editor or Administrator.

You do that in the event editor, in this section: https://monosnap.com/file/o2bS7rOGzYcbvovA1J6OdcoP4rUU3H

Where it has ‘Visibility’, change that to ‘Private’ and update.

Cancelled events are expected to show on the calendar currently so that users can view the event and see it has been cancelled rather than it simply disappearing. Did you add any info to the event description to state it had been cancelled?


socialsparkmedia

November 30, 2020 at 10:42 am

This reply has been marked as private.


Tony

  • Support Staff

December 1, 2020 at 2:23 am

You’re most welcome.

I realised that we also have a filter within the calendar that can be used to automatically remove Cancelled events from the calendar if preferred, you can find that here:

https://github.com/eventespresso/ee-code-snippet-library/blob/013be3ad7c3d6953c428319ba46eb0a2c53891da/addons/eea-calendar/loc_ee_exclude_certain_event_statuses_from_events_calendar.php

You can add that to a custom functions plugin and we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Right now that code is set to remove sold out events, but just you can just remove/comment out Line 6 and then remove the // of Line 8 to remove cancelled events.


socialsparkmedia

December 1, 2020 at 4:21 pm

Got it. Thank you.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  socialsparkmedia 1 day, 5 hours ago ago

Topic Tags

Notifications

This topic is:
pending
Do NOT follow this link or you will be banned from the site!