Support

Home Forums Event Espresso Premium How to remove past event datetimes and tickets

How to remove past event datetimes and tickets

Posted: April 8, 2016 at 2:34 pm

Viewing 7 reply threads


Chris Keller

April 8, 2016 at 2:34 pm

Hi,
I have looked through the forum and found a solution to remove the past event datetimes and tickets but when I added the code it didn’t remove them. There was still a lock beside the past datetimes not allowing us to delete them. Is there another way to have the past datetimes and tickets automatically or manually delete them?

Thanks and I Look forward to your reply.


Josh

  • Support Staff

April 8, 2016 at 2:44 pm

Hi Chris,

Are you trying to remove these from the front-end display or from the admin?


Chris Keller

April 11, 2016 at 6:33 am

Hi,

We would like to remove them from the admin (back-end) as we have already removed the past events from the front-end.


Tony

  • Support Staff

April 11, 2016 at 12:29 pm

Hi Chris,

Are you looking to re-use a previous event by adding new datetimes/tickets to that event? If so I would recommend duplicating the event and using the new event rather than doing the above.

The reason the datetimes and tickets are locked if because registrations have been assigned to them, if you remove them you break the relationship between the event, datetime, ticket and registration. In other words if you remove locked datetimes you break registrations.


Chris Keller

April 11, 2016 at 1:17 pm

We are wanting to leave the event the same but add new datetimes and tickets to it. For example: we have set up registration for a course. When new course dates are available we want to add them but want to remove the past/completed ones because it’s getting hard to manage the event with all the expired course dates. We want to remove them to clean up the event admin.

Is this possible?


Tony

  • Support Staff

April 11, 2016 at 2:21 pm

Not if those datetimes have registrations.

One way to work around this is duplicate the event, remove the datetimes/tickets from the duplicate and create the new ones. Then alter the slug of the original event, say its ‘course-a’, you can change it to ‘course-a-first’ and set the slug of the duplicate to ‘course-a’.

That way any links that previously linked to the event will continue to work.


Chris Keller

April 12, 2016 at 12:16 pm

OK sounds good. Thanks for the ‘work around’ solution.


Tony

  • Support Staff

April 12, 2016 at 2:51 pm

You’re most welcome, Chris 🙂

If you run into any problems please let us know.

Viewing 7 reply threads

The support post ‘How to remove past event datetimes and tickets’ 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