• Resolved Feichtl

    (@feichtl)


    I created a mail template used to submit some field-values to the event-author.

    Following fields are working:
    #_RESPLASTNAME
    #_RESPADDRESS1
    #_RESPADDRESS2
    #_RESPZIP #_RESPCITY
    #_RESPCOUNTRY
    #_RESPEMAIL

    but #_RESPPHONE (also tried #_PHONE) does not work. Using conditional tags to print phone if not empty doesn’t work either:

    [eme_if tag='#ESC_RESPPHONE'Phone: #_RESPPHONE[/eme_if]

    I also created a template for a custom booking-list, which contains the #_RESPPHONE and there it works!

    To be sure, it’s not depending on a bug with the #_PHONE / #_RESPPHONE field, i tested with a custom field. If i have a custom FIELD{1} and use #_FIELDVALUE{1} in the mail, the value of FIELD{1} ist printed. But

    [eme_if tag='#ESC_FIELD{1}']Field1: #_FIELDVALUE{1}[/eme_if]

    does not print the value of FIELD{1}

    https://www.ads-software.com/plugins/events-made-easy/

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

    (@liedekef)

    #_RESPPHONE seems to be working fine in my mail (I used it in the setting “Respondent email format”). Did you use the phone field in the form? Because only if you use #_PHONE in the form to show the phone field, this gets filled out.

    Thread Starter Feichtl

    (@feichtl)

    Yes, i use

    <tr><th scope='row'>Phone:</th><td>#_PHONE</td></tr>

    inside my registration form. If i take a look at “edit reservations” on admin side, i can see the filled in data.

    To validate that #_PHONE-field is working, i created a page using templates for a custom booking-list:

    [eme_bookings id=35 template_id=13 template_id_header=12 template_id_footer=8]

    Within this booking list i use #_RESPPHONE to show the value of #_PHONE and there it works, the value is shown.

    I also use conditional tags like

    [eme_if tag='#ESC_FIELDVALUE{1}']#_FIELDVALUE{1}<br />[/eme_if]

    and there they are working to.

    Plugin Author Franky

    (@liedekef)

    Let’s start small. Does #_RESPPHONE work in the respondent email format (sent to the booker)?

    Thread Starter Feichtl

    (@feichtl)

    OMG! Keep it simple – that’s the right way to fix problems.

    To test my email template i removed all the conditional tags – and it worked! #_RESPPHONE value is shown!!!

    So i dived into my template code and found the failure – a missing closing bracket ] in

    [eme_if tag='#ESC_RESPPHONE'Phone: #_RESPPHONE[/eme_if]

    right after #ESC_RESPPHONE (like in my initial post). After fixing that, mails are filled with values as expected.

    Franky, thanks for opening my eyes and for your awesome support!

    Plugin Author Franky

    (@liedekef)

    Ow, I thought the missing closing bracket was a typo in your report here ??
    But you also said it didn’t work without conditional tags … ?

    Thread Starter Feichtl

    (@feichtl)

    On my first attempts i’d put the unfiltered output (for test) below/after the conditional tags. Because of my buggy code that didn’t work either. ??

    Failed Code:

    — some code before —
    [eme_if tag='#ESC_RESPPHONE'Phone: #_RESPPHONE[/eme_if]
    Phone: #_RESPPHONE
    — some code after —

    Plugin Author Franky

    (@liedekef)

    o yes, because the tag wasn’t correctly closed …

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘RSVP mails – some fields and conditional tags don't work’ is closed to new replies.