selected plain email but receive html code inside

Top WooCommerce & WordPress Plugins Forums Custom Emails for WooCommerce selected plain email but receive html code inside

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #89228

    I want to send a custom email template, plain only, to an email address when an order is received. The plugin works fine but the email contains html code and it’s difficult to read.

    It shows like this:

    <p>Pay at delivery.</p>

    [Order no. 0123] (sept 12, 2022)</h2>

    <div style=”margin-bottom: 40px;”>
    <table class=”td” cellspacing=”0″ cellpadding=”6″ style=”width: 100%; font-family: ‘Helvetica Neue’, Helvetica, Roboto, Arial, sans-serif;” border=”1″>
    <th class=”td” scope=”col” style=”text-align:left;”>Produs</th>
    <th class=”td” scope=”col” style=”text-align:left;”>Cantitate</th>
    <th class=”td” scope=”col” style=”text-align:left;”>Preț</th>
    <tr class=”order_item”>
    <td class=”td” style=”text-align:left; vertical-align: middle; font-family: ‘Helvetica Neue’, Helvetica, Roboto, Arial, sans-serif; word-wrap:break-word;”>


    I did some more tests:
    I changed from woo settings -> emails -> new order to plain from html. On the primary address (the one that we normally receive the orders) all looks plain, no html code. On the email address that I inserted on your plugin form, it shows all the html code.

    In email content I only use this:

    WC email template, wrap is not checked.
    Plain text is checked at email type.

    Did I understand wrong what plain text does? What can I do for this to accomplish?

    Tom Anbinder
    Plugin Support


    That’s expected – the [order_details] shortcode is outputting an HTML table. However, we’ve just released a new plugin version (v1.5.4), where I’ve added the plain_text attribute – now you can output a simple text with [order_details plain_text="yes"].

    Please give it a try and let me know what you think.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.