Top WooCommerce & WordPress Plugins › Forums › Custom Emails for WooCommerce › selected plain email but receive html code inside
- Support forum for the Custom Emails for WooCommerce.
- This topic has 1 reply, 1 voice, and was last updated 1 year, 6 months ago by Tom Anbinder.
- AuthorPosts
-
September 12, 2022 at 2:51 pm #89228haidau.vladimirParticipant
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>
<h2>
[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″>
<thead>
<tr>
<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>
</thead>
<tbody>
<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:
[order_details]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?
September 12, 2022 at 11:40 pm #90133Hi,
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 theplain_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.
- AuthorPosts
- You must be logged in to reply to this topic.