Support

Home Forums Event Espresso Premium Custom thank you page based on category

Custom thank you page based on category

Posted: April 18, 2018 at 1:53 pm


Burnt Orange Design

April 18, 2018 at 1:53 pm

Hi!
I really need to have uniques thank you pages based on the category of the event that the user registered for. These are all free events, so no payment gateways are necessary. If there’s a way to go to a unique thank you page or forward to a page after the thank you page (based on the event category) that would be amazing. Thank you so much for your help.


Burnt Orange Design

April 18, 2018 at 1:55 pm

It could even be something like if the event name contains these words then forward to this url. Any direction would be helpful. Thank you!


Josh

  • Support Staff

April 18, 2018 at 3:48 pm

Hi Burnt Orange Design,

There can be only one Thank You page, but the thank you page can be customized based on which event (or even category of an event) was in the checkout. For example if each category requires different styling on the Thank you page, you can add the category slug to the Thank you page’s body class by adding the code from this example:

https://gist.github.com/Pebblo/ff10c717dbef698ff7fbe357dedfd1a1

If each category requires different content on the Thank you page, there are a number of action hooks that can be used to inject conditional content. There’s a tutorial in the documentation that shows some examples of how to use the Thank You page’s hooks:

https://eventespresso.com/wiki/add-course-curriculum-events-using-advanced-custom-fields/


Burnt Orange Design

April 23, 2018 at 8:23 pm

My real problem is that I’m dealing with an SEO firm that really wants the category or some part of the event name to follow the user throughout the registration process. Right now they say the tracking is lost once the user hits the /registration-checkout page. Is their a way to keep the name of the event in the url once the user click the register button from the event page? Is there a workaround? Thank you!


Josh

  • Support Staff

April 26, 2018 at 8:25 am

There are ways and they involve some custom PHP programming or possibly even custom JavaScript programming. For example, a PHP developer could make use of the wp_get_referer() function and pass part of the referrer URL as an extra URL parameter on the next page.

The support post ‘Custom thank you page based on category’ 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