Posted: January 31, 2015 at 3:47 pm
|
Hi, Having researched this a lot, the closest thing I’ve found is located here: https://eventespresso.com/wiki/useful-php-code-snippets, snippet section: “Print an attendee list after the content on the event details page”, which shows a SQL query doing some join to get the attendee names etc. We really just need a head count and the total available seats. Please let me know if you require any additional information for this. Thanks! |
|
Hi, The way EE4 is coded means that something like this is much more complex: are you using one datetime or more? one or more tickets? are the limits set for datetimes or tickets or both? If you can, please provide an example of how you have the event/s set up and I can speak to a developer about how best to go about it. |
|
Hi, Dale. |
|
Sorry: Dean! Not sure why I typed Dale there! Thanks! |
|
Hi, It’s fine, I’ve been called a lot worse 🙂 Let me run this by a dev and I’ll get back to you. |
|
Okay, I’ll check back on this. Thanks |
|
Hi, Basically this has been put up for discussion internally as there is nothing like what you want in EE4, and the creation of a one size fits all plugin is daunting due to the flexibility built into the plugin. So I can’t offer you a fully fleshed out way of doing this, but I have drawn something up that should work within your use case. Ok, so the following is a code snippet that would go directly into the loop of a custom template. The snippet will only list out the events data, so it would need to be modified to list it out with the table itself, which isn’t that hard really. Note that the max seats is based on the Datetime limit. https://gist.github.com/Apina/6ca2a7fd5ff319d7d10c Screenshot of dev site: http://take.ms/EbPe2 |
|
Alright. We’ll work this into our custom template and let you know how it goes. Thanks so much for following through on this. |
|
Works Great! Here’s a screenshot of it in action: |
Glad to hear you got this working. If you need help with anything else, just open a new support post: https://eventespresso.com/support/forums/ — |
|
The support post ‘Show Number of Attendees in EE4 Table Template’ 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.