• Resolved alarch

    (@alarch)


    Camptix works well for multilingual websites in general. However, I have an issue with the e-mails sent out to attendees on purchase of a ticket. The [receipt] in the e-mail templates (see the example further down) doesn’t strip out the appropriate language entered in the ticket title. I’m using the qTranslate-X plugin – which allows the ticket title to be entered in multiple languages. In most other situations the Ticket Title displays correctly, in the language selected by the visitor.

    At the moment attendees are getting messages with the language encoding embedded. e.g.

    [:en]Test Event[:cy]Digwyddiad Brawf[:] (£15.00) x1 = £15.00
    * Total: £15.00

    E-mail template example

    Hi there!

    You have purchased the following ticket:

    [receipt]

    You can edit the information for the purchased ticket at any time before the event, by visiting the following link:

    It would be great to fix this bug, so that the appropriate language ticket title text is displayed in e-mails to attendees. I’m guessing this is a simple fix. If so, it would be good to have a release soon to fix it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter alarch

    (@alarch)

    I’ve found the relevant line of code – 7124 in camptix.php

    I’ve managed to successfully amend the code to:

    $receipt_content .= sprintf( "* %s (%s) x%d = %s\n", __($ticket->post_title), $this->append_currency( $item['price'], false ), $item['quantity'], $this->append_currency( $item['price'] * $item['quantity'], false ) );

    I’ve wrapped $ticket->post_title in the __() function. Note that if there is no translation, or the text domain isn’t loaded, the original text is returned.

    Would it be possible to incorporate this into the next release?

    • This reply was modified 6 years, 6 months ago by alarch.
    Plugin Author Corey McKrill a11n

    (@coreymckrill)

    Hi @alarch !

    Glad you figured out a solution, and thanks for the followup. If you can submit a pull request to our GitHub repo (https://github.com/Automattic/camptix/), we can try to get it into the next release.

    Thread Starter alarch

    (@alarch)

    Thanks Corey. I’ve just raised a pull request, as suggested.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multilingual Support’ is closed to new replies.