Support

Home Forums Event Espresso Premium Re-using an event

Re-using an event

Posted: August 30, 2016 at 4:56 am

Viewing 9 reply threads


kbayegan@gmail.com

August 30, 2016 at 4:56 am

On my site, events are actually online courses that last for about 4 to 6 weeks and are repeated again. Right now, my work flow when a course is finished is:
1- Delete all payments for that course one by one (time consuming)
2- Delete all registrations for that course one by one (time consuming)
3- Edit the course/event and put in new dates and times.

My question is, what is the best practice to achieve this result? If my workflow is ok, is there at least a way to delete all payments/registrations for a specific course in a batch. Right now, if you don’t delete the transactions first, you cannot delete registration.


Seth Shoultes

  • Support Staff

September 1, 2016 at 3:19 pm

Hello,

I would recommend re-creating the event. That way each event has it’s own set of records. The name can be the same for each event, but the URL (event address) will change. So if you have button/links on your site to point to that one event, you could just redirect the URL to new event URL.

To create the redirections, I would recommend using a plugin such as Redirection by Jon Godley.

If you’re not familiar with redirecting URLs, it sounds complicated, but it’s rather easy using the Redirection plugin. For example, if your button/link URL is http://mywebsite.com/my-favorite-course/, then you can redirect that URL to the upcoming course URL, which may be something like http://mywebsite.com/my-favorite-course-9/. Now anyone that clicks the button/link to the course, they will be redirected to the next upcoming course. You’ll just have to remember to update the redirection every time the previous course expires.

Does that all make sense? Please let us know if you have any further questions.


kbayegan@gmail.com

September 2, 2016 at 6:38 am

I appreciate your response. However, in my case, I have heavily customized how each event (course) page looks like and I use EventEspresso shortcodes in them. Therefore, creating new events will not simply involve redirection, but changing all shortcodes in relevant pages (they have event ids). I don’t think my client, who knows nothing about shortcodes, etc., would want to tackle that. So, I’m afraid I’ll just have to have them edit the events.


Seth Shoultes

  • Support Staff

September 2, 2016 at 7:17 am

Can you post a link to the site so I can see how you have it set up? I’m curious to know if you are outputting a single event or just the ticket selector to the page. If you are outputting a single events to a page, maybe you could use the category shortcode to output a single event from a category. Something like this:
[ESPRESSO_EVENTS category_slug=course-1 limit=1 show_expired=false]

Or if you have one primary course, you could add this to a page:
[ESPRESSO_EVENTS limit=1 show_expired=false]

Does that sound like it might work?


kbayegan@gmail.com

September 2, 2016 at 8:50 am

The site is: https://academyoftea.org
You can see all courses under the “Register” menu. My page is customized and I am using the ticket selector shortcode. So, if I create a new event of exactly the same course, the course id will change and the shortcode will have to change.


Josh

  • Support Staff

September 2, 2016 at 11:17 am

This whole process will be a lot easier if you did not use shortcodes. So instead of creating a page with shortcodes, how about customizing the single event view so it’s laid out the way you want? This way your client doesn’t need to deal with changing shortcodes or deleting the valuable customer data each time they have a new event.


kbayegan@gmail.com

September 2, 2016 at 12:37 pm

Could you please tell me which file(s) control the layout of single event? And, what happens when EventEspresso is updated?


Josh

  • Support Staff

September 2, 2016 at 12:56 pm

You don’t need to (and really, should not) alter the actual files in Event Espresso to control the layout of the single event. Instead, you make a copy of your theme’s page.php template, and rename it to be “single-espresso_events.php”. Then, whatever you add/change in that template will show up on the single event.

A good place to copy code from to build out your own custom single event view layout is from the Event Espresso plugin’s Espresso_Arabica_2014 folder. There you’ll find the different templates that come together to make the front end event views.

To keep your theme changes safe from updates to the theme, we recommend using a child theme.


kbayegan@gmail.com

September 2, 2016 at 1:30 pm

Great. Thank you, I’ll give that a shot.

One last question (I hope): is there any way we can just make a copy of an event to make a new event? This is to void having to put in all the details and various ticket price structures from scratch. This might just be a wish, because I don’t see any obvious mechanism for that. If this is possible, we can then do that and just edit the details about dates.


Josh

  • Support Staff

September 2, 2016 at 1:39 pm

When you go in to edit an event, there should be a button that says “Duplicate Event”. If there isn’t one, then there may be another plugin that’s removing the button, and you can rule that out by temporarily deactivating the other plugins on the site.

Viewing 9 reply threads

The support post ‘Re-using an event’ 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