Events Made Easy Forums How do I … …compare the value of #_TOTALPRICE

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #62856
    JanD
    Participant

    I would like to check if the #_TOTALPRICE is zero respective 0,00 €. What do I have to put as value in the condition?
    [eme_if tag='#ESC_TOTALPRICE' value='<strong>?</strong>']The total price is 0,00 Euro[/eme_if]

    #62862
    Franky
    Keymaster

    Just testing for “0” or “0.00” should work. If unsure, just print #ESC_TOTALPRICE somewhere in the booking thank-you message and you’ll see the value.

    #62863
    JanD
    Participant

    Thank you very much for already responding to all my new threads.

    The ESC makes a different in that case? Because I already use #_TOTALPRICE in the Contact Person Payment Notification Email Body and there it turns out into something with currency like 0,00 €. The new idea is to check for that and so I was wondering.

    #62864
    Franky
    Keymaster

    Yes it does. #_TOTALPRICE is localized (euro sign added etc) while using ESC is just the raw price.

    #62872
    JanD
    Participant

    Thank you for making it clear. But a new question emerged. You wrote #_ESC_TOTALPRICE, with an extra underscore. Is it a typo or the same as or different to #ESC_TOTALPRICE?

    #62873
    Franky
    Keymaster

    Typo 🙂 And corrected now.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.