Posted: 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? Thank you |
Hi there,
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.
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/ |
|
|
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? |
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. |
|
|
which code is to change the “add to Event Cart” button |
|
1 more question, those snippets only work when Multi Event Registration is enabled, right? |
This one is a little more tricky, what do you want to change it to?
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.