Ticket email subject

Home Forums Ticket Products Event Tickets Plus Ticket email subject

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1490183
    salilou
    Participant

    Hi,
    I build a german site with event calendar pro and ticket plus.
    I have set a custom ticket email subject (“Dein Ticket von {site_title}”), but the email has the default subject “Ihre Karten von {site_title}”. The difference is the formal and informal term of address.
    Thank you!

    #1491281
    Cliff
    Member

    Hi. Thanks for your detailed question.

    It sounds to me like you think the translation that shipped with our plugins is not 100% correct.

    We have this information regarding translations:

    Please let me know if you need any further assistance.

    #1491434
    salilou
    Participant

    Thank you very much! The 4th link made it!

    #1491438
    salilou
    Participant

    This reply is private.

    #1492402
    Cliff
    Member

    You will need to follow our Themer’s Guide to override /wp-content/plugins/event-tickets/src/views/tickets/email.php

    #1494143
    salilou
    Participant

    Thank you for the hint, but I think you are wrong.
    Isn’t your link the template of the ticket email?
    I aim at the Woocommerce email!

    #1494492
    Cliff
    Member

    Gotcha. Sorry about that.

    That text is loaded on the woocommerce_email_after_order_table action hook.

    That text is able to be changed via the wootickets_email_message filter or translations (what I’m assuming you did), which is from /wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php

    You could add another line break or two <br> at the end of that string.

    Let me know if you need some additional assistance.

    #1494532
    salilou
    Participant

    You are welcome 🙂 and thank you for the answer.
    Main.php is a large file, which I would not like to copy to my child theme… is there an easier way to change the string?
    I had tried it by using a string replacing function in my code snippet plugin, but line break tags are not interpreted there. Or do they, by adding back slashes maybe?
    Another way could be to change the WC email template files, but that may be obsolete at the next update.

    #1494848
    Cliff
    Member

    Main.php is not able to be overridden via template overrides, since it’s not a template file. In other words, copying it to your child theme wouldn’t take any effect.

    I believe this should work for you:

    https://gist.github.com/cliffordp/46ffc5eb2fdfd7a76114ba72fba5b358

    Please reference https://theeventscalendar.com/knowledgebase/implementing-custom-code-snippets/ for how to implement custom code snippets.

    Please let me know how this goes for you.

    #1494862
    salilou
    Participant

    Thats it!
    Thank you very much!

    #1494865
    Cliff
    Member

    Great! Thanks for letting me know.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Ticket email subject’ is closed to new replies.