Support

Home Forums Event Espresso Premium Custom Events List

Custom Events List

Posted: August 13, 2019 at 7:39 am


Wassim Zeidan

August 13, 2019 at 7:39 am

Hello,

We only have 1 event per year with several types of tickets which are created each one as an event.

I created a page, named it Packages and added the shortcode [ESPRESSO_EVENTS title=”Tickets”] but after choosing the ticket and I continue to the cart, I see the button “Return to Events List” which will lead me to the EE4 default Events Archive page.

1. Could it be possible to redirect after clicking the “Return to Events List” to the custom page I created?
2. would it be possible to change the “Return to Events List” to “Return to Tickets List”

Thank you


Tony

  • Support Staff

August 13, 2019 at 7:44 am

Hi there,

1. Could it be possible to redirect after clicking the “Return to Events List” to the custom page I created?

Yes, you can use a snippet like this:

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

return the URL for the page you want to direct to and EE will use that.

2. would it be possible to change the “Return to Events List” to “Return to Tickets List”

Yes, you can us this filter:

https://gist.github.com/Pebblo/385e46712013a3ee5908#file-ee-site-specific-plugin-php-L7-L11

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

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


Wassim Zeidan

August 13, 2019 at 8:01 am

Hi Tony,

Thank you for your reply, it really helped.

Just a question, instead of creating a custom plugin, would it work if I use a 3rd party plugin that adds snippets?


Tony

  • Support Staff

August 13, 2019 at 8:07 am

It should, but really it depends on when that loads.

The difference between the 2 is that snippets saves to the database, meaning creating a plugin with the same code would likle process ‘quicker’ than the above.

Snippets has to pull the databse from the DB and then load the code, the plugin simply loads from the file.


Wassim Zeidan

August 13, 2019 at 8:46 am

which code is to change the “add to Event Cart” button


Wassim Zeidan

August 13, 2019 at 8:51 am

1 more question, those snippets only work when Multi Event Registration is enabled, right?


Tony

  • Support Staff

August 13, 2019 at 9:13 am

which code is to change the “add to Event Cart” button

This one is a little more tricky, what do you want to change it to?

1 more question, those snippets only work when Multi Event Registration is enabled, right?

Most of the filters provided above are only used in the Multi Event Registration add-on and the text your changing is from the Multi Event Registration add-on, so yes, they will only change the text when that add=on is enabled.

The support post ‘Custom Events List’ 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