Events Made Easy Forums How do I … .. make it possible, that a member sees his/her booking status?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #62549
    Anonymous
    Inactive

    I ve created a template where a member can see his/her bookings in a list.
    I don’t get it that the member sees the actual booking status like: approved, pending …
    Is that possible? With which placeholder may I get this?

    Thanks for your help!

    #62550
    Franky
    Keymaster

    The next version will have an extra conditional placeholder you can use: #_IS_APPROVED
    For now, you can already check #_BOOKINGFIELD{booking_approved}

    #62551
    Anonymous
    Inactive

    which output will the placeholder #_IS_APPROVED show?
    Thank you!

    #62552
    Franky
    Keymaster

    1 if approved, 0 if not

    #62553
    Anonymous
    Inactive

    Will there be a possibility to get an Output like this: Approved, Pending … so i mean an Output in words and not in numbers?

    #62554
    Franky
    Keymaster

    No, that will be up to you. It is a conditional placeholder, to be used together with [eme_if], see https://www.e-dynamics.be/wordpress/category/documentation/7-placeholders/7-1-conditional-tags/

    #63991
    Anonymous
    Inactive

    Hi Franky,

    i used this for showing the booking status to my users:

    Buchungsstatus: [eme_if tag='#_BOOKINGFIELD{booking_approved}' value='0'] In Bearbeitung [/eme_if][eme_if tag='#_BOOKINGFIELD{booking_approved}' value='1'] Genehmigt [/eme_if] [eme_if tag='#_ON_WAITINGLIST' value='1'] (auf der Warteliste) [/eme_if]

    This worked fine for a while, but now it doesn’t seem to work anymore. It shows just nothing – do you know what the problem could be?

    #63992
    Franky
    Keymaster

    if using #_BOOKINGFIELD, you’re using the database columns directly. And indeed, those changed.
    For logged in users, you can use #_IS_APPROVED, otherwise it is now

    #_BOOKINGFIELD{status}

    with values:
    0 (trash)
    1 (approved)
    2 (pending)
    3 (pending user approval)

    But: you can already use #_IS_PAID and #_IS_APPROVED for a booking, and in dev I added #_IS_PENDING
    (see http://plugins.trac.wordpress.org/changeset/2692489 )
    Those should help you better 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top