• Resolved joomlakust

    (@joomlakust)


    Hi all,

    I have searched high and low but without success. Maybe you can help?

    I would like to edit the table holding the information about the purchase on the order-completed-mail. But where do I find the file containing that layout?

    Hopefully someone knows which file to edit.
    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Praveen a11n

    (@spraveenitpro)

    Automattic Happiness Engineer

    Hi @joomlakust,

    Here is the template located for the order items listed in the email. You can override them like this.

    Cheers!

    Thread Starter joomlakust

    (@joomlakust)

    Hi Praveen,
    Thank you very much – I have properly checked all files except those. This was very helpful. Just one more I can’t work out:
    In the total price <td> is lists the price and then the VAT in a parenthesis. I would like a line break before this parenthesis, but it would seem I need to go in the <?php echo $total[‘value’]; ?> code. Where can I do this?

    Regards

    Thread Starter joomlakust

    (@joomlakust)

    A gentle bump for this question. Regards

    I think what you are looking for is in templates/order/order-details-item.php at line 68. Your custom template will need to test the foreach key in each loop and manipulate the label for the total line using string functions. You won’t be able to manipulate the label as its created because its put together in one of the includes, abstract-wc-order.php or class-wc-order.php, not sure which, and they can’t be customised without inhibiting future plugin updates.

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Where is the template?’ is closed to new replies.