Hello,
You could try using conditional placeholders like: {is_past}The event have past!{/is_past} to display a message that is passed.
More placeholders can be found here. https://wp-events-plugin.com/documentation/conditional-placeholders/
Hello,
in Settings -> Bookin -> Messages for returns -> Messages and texts for booking forms, I put that into the ‘Booking are closed’ message filed:
{is_past}Les réservations en ligne sont closes. Cet événement est terminé.{/is_past}{is_future}Les réservations en ligne sont closes. Nous vous invitons à nous contacter par téléphone pour connaître la disponibilité sur cet événement.{/is_future}
but that does not work.
All the text has disappeared
http://www.carolinescherb.com/clients/verdun/event/les-vibrants
Carosch
Hello,
Have you tried adding it under. Events > Settings > Formatting > Events > Single event page format
I also can’t visit the link that you gave because it requires a username and password.
Yes, I tried but that does nothing but space.
However , I can’t put that in this place, because, if the reservation is open, the message is not exact
The field you are entering the text is already a conditional placeholder by itself. It checks for {bookings_open}, so double conditions are ignored.
To display different texts based on the event status you need to put the code in the Events > Settings > Formatting > Single event page format.
To use the css of Events Manager, so the output looks the same as if it was displaying the message of Events > Bookings > Booking form texts/messages, use this code in Events > Settings > Formatting > Single event page format:
{is_past}<div class=”em-booking-message-error em-booking-message”>Les réservations en ligne sont closes. Cet événement est terminé.</div>{/is_past}{is_future}<div class=”em-booking-message-success em-booking-message”>Les réservations en ligne sont closes. Nous vous invitons à nous contacter par téléphone pour connaître la disponibilité sur cet événement.</div>{/is_future}