- This topic has 7 replies, 2 voices, and was last updated 6 years, 11 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 … › Show message on page if fully booked
Hi, I use a shortcode on a page to display the form. When that event is full, is stops showing the form. Perfect. But I like to inform my visitors that the event is fully booked. I can’t find an option for this. Is there a solution?
Check out the conditional tags (eme_if): compare the number of booked seats with the total and show a message if full (also search this forum for examples)
See this thread for a starting example:
http://www.e-dynamics.be/wordpress/forums/topic/put-an-availability-traffic-light-image-to-the-event-single-page/
Thanx!
Where do I put this conditional code? Tried it on the page, but that doesn’t work.
This is my page:
[eme_add_booking_form id=4]
[eme_if tag='#ESC_RESERVEDSPACES' ge='#ESC_TOTALSPACES']<span style=”color:#F29849;font-weight:bold;font-size: 110%;”>This event is sold out!</span>[/eme_if]
Inside your single event format. Don’t use the eme_add_booking_form shortcode if you don’t have to, use #_ADDBOOKINGFORM inside your single event format too.
[eme_if tag='#ESC_RESERVEDSPACES' ge='#ESC_TOTALSPACES']<span style=”color:#F29849;font-weight:bold;font-size: 110%;”>This event is sold out!</span>[/eme_if]
[eme_if tag='#ESC_RESERVEDSPACES' lt='#ESC_TOTALSPACES']#_ADDBOOKINGFORM[/eme_if]
Ok, so I should not make a new page and use the shortcode. Do I understand it right that I have to make a hyperlink to the parmelink of the event? Then I have to do this manually, cause in WordPress it’s not recognised as a page. Also, when I want a hyperlink to this event in the main menu of the site, I have to create a custom link since it’s not recognised by WordPress.
Also, when I have to link directly to the permalink, I can’t format the page (e.g. custom header image).
I’ve read all the documentation of EME, but this part is not clear to me. I use EME only for 1 event at a time.
If you just want to show a single specific event, use the shortcode [eme_event], see http://www.e-dynamics.be/wordpress/category/documentation/6-shortcodes/eme_event/ (templating and all).