Support

Home Forums Event Espresso Premium Changing order of Registration list on Thank You Page – EE4

Changing order of Registration list on Thank You Page – EE4

Posted: March 22, 2016 at 5:28 pm

Viewing 4 reply threads


eddy@mibeachclub.com

March 22, 2016 at 5:28 pm

Hi there,

I noticed that the Registration Table displays the registrants in alphabetical order and I’d like to display them in the order they were entered. I have looked through this template: https://github.com/eventespresso/event-espresso-core/blob/master/shortcodes/espresso_thank_you/templates/thank-you-page-registration-details.template.php

But I’m not sure how to make the change.

I also see it referenced on this topic:https://eventespresso.com/topic/thank-you-page-editing-attendee-listing-questions/

But I can’t seem to locate that file (it might be EE3?).

Thank you!


Tony

  • Support Staff

March 24, 2016 at 6:34 am

Hi Eddy,

Yes that link is for EE3 so it won’t apply.

You’ll need to tell EE to order the results of:

$registrations = $transaction->registrations();

by the REG_count value, you can do that by changing the above line (line 12 within the template) to:

$registrations = $transaction->registrations( array( 'order_by' => array( 'REG_count' => 'ASC' ) ) );


eddy@mibeachclub.com

March 28, 2016 at 6:10 pm

Thank you that worked perfectly. Now that I’ve changed this file, where should I place it so I’m not overriding the core plugin?


Tony

  • Support Staff

March 29, 2016 at 3:53 am

Apologies, I assumed you had already copied the template.

You’ll need to place that template within the root directory of your current theme, if you are not using a child theme I would recommend creating one and use that so you can also update your theme without losing custom templates.


eddy@mibeachclub.com

March 29, 2016 at 12:48 pm

Ahh thank you!

Viewing 4 reply threads

The support post ‘Changing order of Registration list on Thank You Page – EE4’ 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