Posted: February 8, 2015 at 2:51 pm
|
Hi there, how can i display the section of the guest when using the [LISTATTENDEES] shortcode? I want people to be able to see which section their friends are seating so they can choose a seat. Thanks |
|
Hi, You would have to edit the /wp-content/plugins/event-espresso/templates/attendee_list.php file (it can be copied to uploads/espresso/templates and edited there). What I would do is this:
Then you can The only issue with this is that if an event doesn’t use seating, then it will just display the ticket name, so you may want an IF check to see if the string ($seat[0]) starts with Row, which all seat ID’s do. |
|
This pulls in the ‘price_option’, how can i modify it to show the sections? see http://events6.creativesls.com/attendees/ Thanks |
|
any update in this? Thanks |
Hi Dovid, The ‘section’ is not saved with the attendee info when a user registers onto the event, it is used within the seating chart as a representation. The seats ‘Custom Tag’ is saved with the registration and is what is being pulled by Deans code above. What you can do is include an abbreviation of the section within the seats ‘Custom Tag’, like this – http://take.ms/ulf73 However this would need to be done before users booked onto the seat as updating the seating chart after a registration has been made will not update the registrations in EE3. |
|
|
It seems like the section is more then just a representation on the seating chart as it can be pulled into the ticket email and ticket print page using the seatingchart_tag. Adding it to the custom tag will make a mess on the chart itself. also, I already have a few hundred people registered for this event….. Thanks |
Hmm, ok, I see… In that case you can use almost the exact same query within the attendee table and pull in the information you need. Something like this – https://gist.github.com/Pebblo/efd134829ac8be1443b3 Would pull in the information needed. You now have 4 new variables within the template: $seatingchart_tag = ''; $seatingchart_seat = ''; $seatingchart_row = ''; $seatingchart_section = ''; As you can see these are set to empty strings before checking the seating chart info, this allows you to use those variables even if the attendee is not using the seating chart. |
|
|
I pasted the github code in the attendee_list.php file but the page turns up blank. Please advise |
I’m using that same code locally without any issues, so I’m not sure why you are getting a white screen. If you enable WP_Debug is there an error thrown? Here is a copy of my attende_list.php template file – http://take.ms/liQkc You will need to edit line 109 to include the seating variables you would like to use. |
|
|
what syntax would I use on line 109 to add the seat and section? Thanks |
On that line, towards the end, you’ll see something like this:
|
|
|
still getting a blank page. |
|
got it working by rempving the php tags from the classes. Now, how can I have it sorted by section? Thanks |
Removing the php tags from the classes? When I view the page I see all the attendees, but non of the CSS or JS files are loading because the page is set to HTTPS – http://take.ms/51Gml Sorting by section would require either a completely new query that includes the attendee data and the seating chart into in one, or using jQuery to order the results as they are now. This would require custom development which is outside the scope of the support license. You may be better contacting one of our recommends developers here: |
|
|
I took off the ssl and it load nicely. 2 more questions regarding the sections, 1. Anyway to add the section to be displayed in the admin attendee report screen (I guess by adding a column)? 2. How can I have the section on its own column for exports? //Build the seating assignment |
|
that’s in export.php line 485 |
These kind of customisations are not covered by our support, if this a critical requirement I would advise contacting one of our recommended developers here: https://eventespresso.com/developers/event-espresso-pros/ To point you in the right direction for question 2, you can re-purpose the current row to display the section by changing the code from this: $participant->seatingchart_tag = $rs->custom_tag . " " . $rs->seat . " " . $rs->row; To this: $participant->seatingchart_tag = $rs->section; |
|
The support post ‘Adding the section to [LISTATTENDEES]’ 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.