Support

Home Forums Event Espresso Premium adding widget single-event.php + change url 'return to events list' + payments

adding widget single-event.php + change url 'return to events list' + payments

Posted: November 29, 2018 at 3:56 am

Viewing 9 reply threads


efransen

November 29, 2018 at 3:56 am

I have some questions:
I have added a ‘single-espresso_events.php’ to my child theme and added custom fields on this pages by using functions.php.
How can I add a widget to a single-espresso_events-page?

When adding an event to your cart, you see a button ‘return to events list’. When clicking on this button, you go to the archives page. I would like to change the link behind the button, so that the link goes back to a page with a custom overview of courses.

When signing up for an event, the client will not have the opportunity to pay online for these events. We will later get an email with specifications concerning the payment (different prices, depending on a lot of specifications). How or what add-on or settings do I use to accomplish this?

Thanks in advanced


efransen

November 29, 2018 at 5:39 am

This reply has been marked as private.


Tony

  • Support Staff

November 29, 2018 at 6:18 am

I have added a ‘single-espresso_events.php’ to my child theme and added custom fields on this pages by using functions.php.
How can I add a widget to a single-espresso_events-page?

The sidebar output is controlled by your theme, assuming you created the single-espresso_events.php template from your themes own single.php template it may have options to display a sidebar on single/blog posts, you’ll need to check your themes options for that.

The link you included that does contain a sidebar is a page so it seems your theme is set to display a sidebar on pages, but not posts?

When adding an event to your cart, you see a button ‘return to events list’. When clicking on this button, you go to the archives page. I would like to change the link behind the button, so that the link goes back to a page with a custom overview of courses.

For that you can use this snippet:

https://gist.github.com/joshfeck/e51ac13a3d9fd345ad40

Change the URL in the quotes on line 2 to whatever URL you prefer and then add that snippet to a custom functions plugin, we have documentation on creating one here:

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

When signing up for an event, the client will not have the opportunity to pay online for these events. We will later get an email with specifications concerning the payment (different prices, depending on a lot of specifications). How or what add-on or settings do I use to accomplish this?

EE doesn’t allow you to change the price of a registration after it has been made, so it depends how you are expecting this to work. You can ‘move’ registrations onto new tickets using the attendee mover which will change the price, but that will need to be manually for each single registration.

If the price is already known, you can create a ticket on the event and set the ‘Default registration status’ for that event to ‘Not Approved’. When the user registers onto the ticket they enter their details and then see a message stating the registration is awaiting Approval. You, the admin, can then change the status to ‘Pending Payment’ and trigger an email for them to pay at a later date.

Will that work for you?


efransen

November 30, 2018 at 10:34 am

Thanks for your clear answers.
I still experience some issues:

I had found this link before contacting you (https://gist.github.com/joshfeck/e51ac13a3d9fd345ad40), but if I make a site-specific plugin with this code, it won’t work. It also does not work when I put the code into the functions.php from my child-theme. Any other suggestions here to change the link of the button ‘return to events list’?

Thanks in advanced


Josh

  • Support Staff

November 30, 2018 at 10:53 am

No other suggestions, because the code does work if it’s properly added to the site.

May I ask exactly what code did you add, and where?


efransen

November 30, 2018 at 1:20 pm

This reply has been marked as private.


Josh

  • Support Staff

November 30, 2018 at 1:25 pm

May I ask did you put your plugin file into the wp-content/plugins directory?


efransen

November 30, 2018 at 2:24 pm

I sure did, Josh.


Josh

  • Support Staff

November 30, 2018 at 2:25 pm

at the top level of that folder? If you did, then if you go to your site’s WP > Plugins page, your plugin should be listed there along with a link to activate.

If it’s not listed there, maybe you can doublecheck your FTP settings to make sure you’re uploading code to the intended site.


efransen

November 30, 2018 at 3:19 pm

Hi Josh, I did exactly as you told me, but it didn’t work. So I deleted the map with the code from the plugins on the ftp-server. I then made a zip-file from the map I deleted earlier and upload the code as a new plugin in the back-end of the website. That worked!
Thanks for helping me out!

Viewing 9 reply threads

The support post ‘adding widget single-event.php + change url 'return to events list' + payments’ 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