Events Made Easy › Forums › Bug fixed or feature request implemented › New Placeholders for Multiprice Events
- This topic has 8 replies, 2 voices, and was last updated 10 years, 9 months ago by Franky.
-
AuthorPosts
-
Sat 8 Feb 2014 at 04:23 #44159AnonymousInactive
Does #_ATTENDEESxx exist, where xx is tag to differentiate different price tables? If not, is it a big deal to add it? I’d like to be able to display a list of attendees at each event.
Unrelated except in that it’s also a placeholder, is there any way to include custome fields in an Attendees list? Like #_ATTENDEEFIELDxx or something?
Sat 8 Feb 2014 at 09:30 #51207FrankyKeymasterSince one attendee can make multiple bookings, this is not possible. Isn’t the booking list with its placeholders what you’re looking for?
Sat 8 Feb 2014 at 14:02 #51208AnonymousInactiveI don’t think so, but maybe. What I want to do is to display the usernames of all the attendees , along with which of the “prices” of events they have booked.
Ideally, what I really want is a list by price, like this:
Price 1: Name 1 (Field 1), Name 2 (Field 1), Name 3 (Field 1), Name 4 (Field 1)
Price 2: Name 5 (Field 1)
Price 3: Name 6 (Field 1), Name 7 (Field 1)
…
When I had each price listed as a separate event, I just used #_ATTENDEES in the event page.
Maybe I can accompish this in the Bookings with a series of if-statements? In pseudocode:
Price 1:
if(#_SPACES1 !== 0){#_RESPNAME, #_FIELD1}
Price 2:
if(#_SPACES2 !== 0){#_RESPNAME, #_FIELD1}
…
Can I use the [events_if] tags in the Bookings format? I’m going to go try that out and see what happens.
…or maybe there’s an easier way that I’m just not seeing.
UPDATE
I managed to accomplish generally what I want with this (line-breaks added for readability):
`#_RESPNAME (
[events_if tag="#_SPACES1" notvalue="0"]Table 1[/events_if]
[events_if tag="#_SPACES2" notvalue="0"]Table 2[/events_if]
[events_if tag="#_SPACES3" notvalue="0"]Table 3[/events_if]
[events_if tag="#_FIELD02" notvalue=""] -- #_FIELD02[/events_if])`
I’m seeing an upcoming problem if my event has a different number than 3 tables, since this booking form is not customizable by event, as far as I can tell.
Simple wishlist:
“Bookings list format” as a textarea rather than a text input.
More complicated wishlist: Order entries by table? I have no idea if this is possible.
Mon 10 Feb 2014 at 10:53 #51209FrankyKeymasterThe booking form can be changed by event.
Sat 15 Feb 2014 at 19:26 #51210AnonymousInactiveIt is? The only thing I can find in the event is “Booking recorded html format.” What I need to change by event is “Bookings list format”, which I can only find under Settings –> RSVP
Sat 15 Feb 2014 at 20:06 #51211FrankyKeymasterYou asked if the booking form could be changed per event, not the booking list. But even that is possible:
you can use the [eme_bookings] shortcode for this inside your event format, use the placeholder #_EVENTID for the value of the event id and use templates.
See
Sat 15 Feb 2014 at 23:12 #51212AnonymousInactiveSorry for my unclear requests, and thanks for the clarification.
If I’m understanding your suggestion, I should be putting the following into the Single Event Format field:
[eme_bookings id=#_EVENTID template_id=6 template_id_header=9 template_id_footer=10]
(I’ve copied the Bookings List Header format into template with id 9, Bookings list format into template with id 6, and Bookings list footer format into template with id 10.)
Is this correct? I’m not getting anything showing up in the event display at all.
Sun 16 Feb 2014 at 09:30 #51213FrankyKeymasterCorrect, it should work, but it doesn’t 🙂
This is a small part of the fix: http://plugins.trac.wordpress.org/changeset/858780
But the real problem is that I replace the #_NOTES part the last, so people using other shortcodes in there can use the “format” option and otherwise I would be replacing values that should not be replaced. This causes #_EVENTID to appear non-replaced as value for the event id, and a string is of course nto a correct value.
But since the template functionality is now in place, people can use that. So now I could just put #_NOTES to be replaced first, causing your shortcode to appear with the #_EVENTID and then #_EVENTID gets replaced correctly afterwards.
For some people this might cause troubles (backwards compatibility), so I’ll add an option to the settings to control this behavior.
Moving to bugs until I can code this up this evening.
Sun 16 Feb 2014 at 18:01 #51214FrankyKeymasterIt turned out that recoding this uncovered some more bugs I coded up while using templates for attendees and booking lists.
Should be all fixed here:
-
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.