- This topic has 7 replies, 2 voices, and was last updated 2 years, 8 months ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › .. make it possible, that a member sees his/her booking status?
Tagged: placeholder booking status
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!
The next version will have an extra conditional placeholder you can use: #_IS_APPROVED
For now, you can already check #_BOOKINGFIELD{booking_approved}
which output will the placeholder #_IS_APPROVED show?
Thank you!
1 if approved, 0 if not
Will there be a possibility to get an Output like this: Approved, Pending … so i mean an Output in words and not in numbers?
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/
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?
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 🙂