Events Made Easy Forums Generic Loop when using a template in an other email-template

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #60377
    Anonymous
    Inactive

    Hello Franky,
    First of all many thanks for the great EME and especially for the further development!
    I think I discovered the following bug:

    About Email Templates:
    I tried to create a “email footer” as a template (eg: [eme_events template_id = 1] as in the documentation 15.)

    If you now integrate the template with the variable in another template, this creates a loop in the booking-email.

    Example:
    The footer-template [id = 1]:
    “……
    Our contact person for this event (for example for questions or suggestions):
    #_CONTACTNAME (‘#_CONTACTEMAIL’)

    Imprint: ….”

    Now include the footer template in another email-template:
    “… Thank you for your booking!

    [eme_events template_id = 1]

    Booking-email Result:
    “… Thank you for your booking!

    Our contact person for this event (for questions or suggestions): <br />
    Mike Mouse (‘& # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 64; & # 116; & # 45; & # 111; & # 110; & # 108; & # 105; & # 110; & # 101; & # 46; & # 100; & # 101; ‘) <br />
    <br />
    Our contact person for this event (for questions or suggestions): <br />
    Mike Mouse (‘& # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 64; & # 116; & # 45; & # 111; & # 110; & # 108; & # 105; & # 110; & # 101; & # 46; & # 100; & # 101; ‘) <br />
    <br />
    Our contact person for this event (for questions or suggestions): <br />
    Mike Mouse (‘& # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 64; & # 116; & # 45; & # 111; & # 110; & # 108; & # 105; & # 110; & # 101; & # 46; & # 100; & # 101; ‘) <br />
    <br />
    Our contact person for this event (for questions or suggestions): <br />
    Mike Mouse (‘& # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 64; & # 116; & # 45; & # 111; & # 110; & # 108; & # 105; & # 110; & # 101; & # 46; & # 100; & # 101; ‘) <br />
    <br />
    Our contact person for this event (for questions or suggestions): <br />
    Mike Mouse (‘& # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 64; & # 116; & # 45; & # 111; & # 110; & # 108; & # 105; & # 110; & # 101; & # 46; & # 100; & # 101; ‘) <br />
    <br />
    Our contact person for this event (for questions or suggestions): <br />
    Mike Mouse (‘& # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 64; & # 116; & # 45; & # 111; & # 110; & # 108; & # 105; & # 110; & # 101; & # 46; & # 100; & # 101; ‘) <br />
    <br />
    Our contact person for this event (for questions or suggestions): <br />
    Mike Mouse (‘& # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 104; & # 64; & # 116; & # 45; & # 111; & # 110; & # 108; & # 105; & # 110; & # 101; & # 46; & # 100; & # 101; ‘) <br />
    <br />

    Perhaps can you help/solve this!? Thanks!
    Thorsten / germany für http://www.fcv-ft.de

    #60378
    Franky
    Keymaster

    [eme_events] shows a list of events (and is not meant to show just a template), and because you define a template for it, that template gets repeated for each of the events (by default scope future). See https://www.e-dynamics.be/wordpress/category/documentation/6-shortcodes/eme_events/

    You should just use “Our contact person for this event (for example for questions or suggestions):
    #_CONTACTNAME (‘#_CONTACTEMAIL’)” in your email template itself. Including one template into another is not supported by EME.

    #60390
    Anonymous
    Inactive

    Thanks for this info.
    Is there another way to integrate an general e-mail footer that I have not found yet, so you do not always have to change it in every email-template?

    #60394
    Franky
    Keymaster

    Currently not. I added the inclusion-option to my list of todos.

    #60395
    Franky
    Keymaster

    The next version will allow this: #_INCLUDE{xx} (with xx being a template id) in a template.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Generic’ is closed to new topics and replies.
Scroll to Top