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


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!

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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  eddy@mibeachclub.com 3 years, 7 months ago ago

Topic Tags

Notifications

This topic is:
pending
Do NOT follow this link or you will be banned from the site!
[for="input_96_5_3"]
[for="input_96_5_3"]
[gravityform id=96 title=false description=false]
  • This field is for validation purposes and should be left unchanged.
[i]
[i]
[gravityform id=69 title=false description=false]
  • This field is for validation purposes and should be left unchanged.