• Hi – Not sure if this functionality change was intentional but I’ve noticed that some of the translations order emails no longer render HTML.

    For example, the string:

    Just to let you know — your payment has been confirmed, and order #%s is now being processed:

    I translate to something like:

    Thank you for your order.<br />
    <br />
    We have confirmed your payment and are now preparing your order.

    This has worked previously, with the br tags being rendered correctly in my email application, but for some reason recently some of the emails no longer render correctly.

    Though some still work! For example:

    Thanks for your order. It’s on-hold until we confirm that payment has been received. In the meantime, here’s a reminder of what you ordered:

    This renders fine.

    Another thing to note is that the latter string in the .pot file has remained the same for a long time. Whereas the Payment Confirmation email has changed a lot in the past 12 months.

    I understand that there are a number of places where this could be breaking (email application, translation plugin, transactional email service, etc) but thought I’d ask here first because the fact that it’s working for some, not working for others indicates to me that something within Woocommerce may have changed.

    • This topic was modified 5 years, 11 months ago by jlev00.
Viewing 1 replies (of 1 total)
  • Thread Starter jlev00

    (@jlev00)

    I had a look at the source for the two emails. The the former looks like this:

    <p style=3D"margin: 0 0 16px;">blah blah blah<br/>
    <br/>
    blah blah blah blah<br/>
    <br/>

    While the latter (ie correctly rendering one) looks like this:

    <p style=3D"margin: 0 0 16px;">blah blah blah<br><br>
    blah blah blah blah<br><br>

    edit: ok, so in the former, WordPress converted

    & lt; br/ & gt;
    & lt; br/ & gt;

    to actual <br/> tags. The source for the email looks like that but without the whitespace, which I added manually.

    • This reply was modified 5 years, 11 months ago by jlev00.
    • This reply was modified 5 years, 11 months ago by jlev00.
    • This reply was modified 5 years, 11 months ago by jlev00.
Viewing 1 replies (of 1 total)
  • The topic ‘HTML not rendering in some order emails?’ is closed to new replies.