• Resolved vladimiryo

    (@vladimiryo)


    Hi,
    First of all, nice plugin! 5 stars *****

    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.

    <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;">

    ………

    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?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter vladimiryo

    (@vladimiryo)

    Hi,

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

    Plugin Author Algoritmika

    (@algoritmika)

    Hi @vladimiryo,

    First of all, nice plugin! 5 stars *****

    Thank you ??

    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.

    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.

    Thread Starter vladimiryo

    (@vladimiryo)

    Thank you for your quick answer.

    Plugin Author Algoritmika

    (@algoritmika)

    Happy to help ?? Let me know if you’ll need anything else.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘only plain text but has code’ is closed to new replies.