• Resolved cider1

    (@cider1)


    I’m trying to customize e-mail templates (starting with customer notes). I’ve gotten the template to generate, but the custom e-mails (with *no* modification) seem to produce broken code resulting in a garbled display. To wit:

    <td id="header_wrapper" style="padding: 36px 48px; display: block;">
    
    <h1 style='font-family: "Helvetica Neue",Helvetica,Roboto,Arial,sans-serif; font-s
    
    <p style="margin: 0 0 16px;">Hi, ...

    Notice the truncated style font-family, ending at font-s. This seems to be generated by do_action( 'woocommerce_email_header', $email_heading, $email );.

    Where should I look to debug this annoying (and feature-destroying) problem?

    Thanks!

    • This topic was modified 1 year, 3 months ago by cider1.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @cider1

    Thanks for reaching out!

    I understand that you’re trying to customize email templates, however, it is not working as expected, correct?

    It seems like there might be an issue with the code that’s causing it to truncate prematurely. The issue may be due to a conflict with another plugin or theme, or there might be a problem with the way the email template has been customized.

    You can check this support documentation about How to Customize WooCommerce Emails for your reference.

    Meanwhile, this is a bit of a complicated topic that would need some customization to address. Unfortunately, custom coding is not something we can assist with directly. However, I’ll keep this thread open for a bit to see if anyone from the community can lend a hand.

    If you have any other questions related to development or custom coding, don’t hesitate to reach out to some of the great resources we have available for support. The WooCommerce community is filled with talented open-source developers, and many of them are active on the channels listed below:

    Hope this helps!

    Thread Starter cider1

    (@cider1)

    No, this does not help. I do not need a custom coding solution. I am merely wondering whether anyone else has encountered this behavior, and where it might originate.

    Thanks.

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hi cider1

    I understand you are facing issues with email templates that have broken HTML.

    As previously suggested, this issue can occur due to multiple reasons such as plugin conflict, theme conflict, or even custom code.

    The best way to diagnose and find the root cause will be to conduct a conflict test. Please follow our guidelines to test for conflicts on your site.
    https://woo.com/document/how-to-test-for-conflicts/

    Let me know if you have any questions or need further assistance. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘E-mail template fails to close HTML tags’ is closed to new replies.