Conditional shortcode info
-
Hi Franky,
I’m hoping you can help with the conditional shortcodes as I can’t get one part working.
I have the below, which works in that it shows the text if the all main spaces are booked but there are spaces on the waiting list.
[eme_if tag=’#_WAITING_LIST_ACTIVATED’ value=’1′, eme_if2 tag=’#_IS_REGISTERED’ value=’0′]
<b>PLEASE NOTE THIS EVENT IS CURRENTLY FULL. <br />
SENDING THE BOOKING DETAILS BELOW WILL ADD YOU TO THE WAITING LIST, IT WILL NOT BOOK YOU A PLACE. <br />
IF A PLACE BECOMES AVAILABLE WE WILL CONTACT YOU VIA EMAIL.</b><br />
[/eme_if]I’m trying to do the same around text to say that if someone has booked a place they can cancel using the below booking form, the code below works fine.
[eme_if tag=’#_IS_REGISTERED’ value=’1′, eme_if2 tag=’#_WAITING_LIST_ACTIVATED’ value=’1′]
<hr>
<b>You already have a place booked on this event. To cancel your place please use the form below.
[/eme_if]Then I’m also trying to add conditional text for people who are on the waiting list to say they are on the waiting list, and if they want to cancel their place on the waiting list to use the form below, code:
[eme_if tag=’#_IS_REGISTERED’ value=’0′, eme_if2 tag=’#_WAITING_LIST_ACTIVATED’ value=’1′]
<hr>
<b>You are currently on the waiting list for this event. To cancel your place please use the form below.
[/eme_if]This code however shows either way, i think because although they don’t have a place booked they are on the waiting list so #_IS_REGISTERED is true, even though they don’t have a actual place. Is this correct?
I’m hoping you can help, hope I’ve explained things properly. Just let me know if you need things clearing up.
Thanks,
David.The page I need help with: [log in to see the link]
- The topic ‘Conditional shortcode info’ is closed to new replies.