• Resolved ikookmaar

    (@ikookmaar)


    Hi Franky,

    To show the price for attending an event, but prevent mentioning this if attending the event is free, in the settings, within the format for a single event I use:

    <p>#_DESCRIPTION
    [events_if tag=’#ESC_PRICE’ notvalue=’0,00′]
    <p>Bijwonen van dit evenement kost €#_PRICE per persoon.</p>[/events_if]
    [events_if2 tag=’#ESC_IS_RSVP_ENABLED’]
    <p>

    • Gebruik a.u.b. onderstaand formulier om te reserveren.
    • [events_if3 tag=’#ESC_PRICE’ notvalue=’0.00′]

    • U ontvangt dan direct een e-mail met een betaal verzoek.
    • Zodra <b>uw betaling binnen is</b> wordt wordt de reservering definitief en bevestigd.
    • </p>
      [/events_if3]
      [/events_if2]

      This used to work fine, but now even the free events have started to display “Bijwonen van dit evenement kost € per persoon” again.
      Since I don’t administer the events myself I don’t know after which version this stated. I wonder if it has something to do with depreciated placeholders, but from the documentation I do not see how this should be changed in that case.
      I checked and noticed that the price for an event is set within the RSV options for that event. Does it mean I can only prevent displaying info on the price if I also have RSV enabled?

      thanks in advance

      Peter Goldstein

      https://wordpress.org/plugins/events-made-easy/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Franky

    (@liedekef)

    Apparently the value for your price is not “0.00” but empty.
    Just doing
    [events_if tag='#ESC_PRICE' is_empty=1]
    should work

    Thread Starter ikookmaar

    (@ikookmaar)

    Thanks, it does!
    I guess 0,00 was the default value in older versions(?)
    Does the use of conditional tags allow some sort of “else”?
    I’d like the event to display that the admission is free in this case.
    Or will I have to add another “events_if(some number)” construction (with the same condition) for that?

    Plugin Author Franky

    (@liedekef)

    You can use a second conditional tag to check for the “else” case. If you nest conditional tags, you need to use the numbered versions, like eme_if2, … Otyherwise you can reuse the same tag again.
    Btw, use the new names for the conditional tags, it’s more future-proof.

    Thread Starter ikookmaar

    (@ikookmaar)

    Guess I spoke too soon, it’s not working yet.
    I’m sorry to bother you again, but it’s not working after all.

    In the event editor I see that the price is “0” (default, I did not select RSV, but it only shows if I do).

    I changed the format to:

    [events_if tag=”#ESC_PRICE’ is_empty=’1′]
    <p>Toegang gratis.</p>
    [/events_if]
    [eme_if tag=’#ESC_PRICE’]
    <p>Bijwonen van dit evenement kost €#_PRICE per persoon</p>
    [/events_if]

    But the result is:

    Toegang gratis.

    Bijwonen van dit evenement kost € per persoon

    [/events_if]

    see http://www.vocal-invention.nl/agenda/10415/wak-korenfestival-o-v-b/

    Plugin Author Franky

    (@liedekef)

    Use eme_if for both opening and closing tag, otherwise they don’t match.

    Thread Starter ikookmaar

    (@ikookmaar)

    Ah, didn’t see that, that was stupid of me!
    Works OK now, thanks a lot!

    Peter

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘showing price of 0 for free events’ is closed to new replies.