Support » Plugin: WooCommerce » How to add custom fields and extra info to the New Order emails

  • Resolved ashkanahmadi

    (@ashkanahmadi)


    Hi

    We are using the payment system Redsys and when a payment is done, a few custom fields are added to the order page like this: https://ibb.co/3MDKXtL

    I would like the highlighted fields to be included in the New Order emails as well. How can I do that? Can you please help me with the code?

    Thank you very much

    Ashkan

Viewing 4 replies - 1 through 4 (of 4 total)
  • The email templates of Woocommerce can be found in this directory
    wp-content/plugins/woocommerce/templates/emails/
    The template you need to customize is “customer-completet-order.php”

    Thank you braehler. I know very little coding so I’m not sure what code I need to add to make it work. Can you please let me know? I’d highly appreciate that. Thanks

    Plugin Support Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @ashkanahmadi!

    There’s some documentation around that here:

    https://docs.woocommerce.com/document/add-a-custom-field-in-an-order-to-the-emails/

    You’ll need to replace the example meta with the meta key values you’re seeing there, which I assume would be:

    authorisation_code and payment_date

    Cheers!

    Plugin Support Three Sons

    (@3sonsdevelopment)

    Hi there,

    It’s been a while since we last heard from you so I’m marking this topic as resolved. If you have any questions, please open up a new topic.

    Cheers,

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