• Resolved bep_11

    (@bep_11)


    Hi,
    thanks for a great plugin!

    We have events; some people come on their own, some bring a friend. With the eme_bookings shortcode we can show a nice list of people coming. But the organizers want to see ‘at one glance’ how many people are coming. What they want is a list like this:

    Total Booking ID Name Seats
    ————————————
    1 25 John 1
    3 27 Fred 2
    4 28 Mary 1

    I achieved this by using a special field_name in the answers table where I maintain the total per booking id. For this I added a shortcode to shortcodes.php and a include statement to eme_rsvp.php pointing at the program containing the code for the new shortcode.

    Overrides can be defined for a number of shortcodes but not for the eme_bookings shortcode.
    I would like to either be able to override it or maybe it can be added to the plugin – as other people might find it useful i.e. I can send you the code.

    Which approach do you suggest?

    Thanks,
    Bernd

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Franky

    (@liedekef)

    You can use templates with the eme_bookings shortcode, is that not sufficient?
    The total number booked is also available as a placeholder, so I think all is already possible …
    If you need some tips on templating, let me know.

    Thread Starter bep_11

    (@bep_11)

    Hi Franky,
    thanks for your quick answer.

    I checked the documentation but found only #_RESPSPACES (spaces reserved by one booking).
    Looking at the code I also found #_RESERVEDSPACES being used for email. Is this the placeholder you mean? I’ll try to use this one (on a page). I think that would be enough.

    Thanks,
    Bernd

    Plugin Author Franky

    (@liedekef)

    You can use any rsvp placeholders in the booking templates, next to all event and location placeholders. #_RESPSPACES is the one you want, the placeholder #_RESERVEDSPACES returns the number of reserved seats for the event as a whole.

    Thread Starter bep_11

    (@bep_11)

    Thanks, I was looking for the #_RESERVEDSPACES place holder.
    I put it into the template header before the table. Works fine!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘booking list, shortcode override?’ is closed to new replies.