Email Builder – how to add order meta values in emails

This topic has 2 replies, 2 voices, and was last updated 1 year, 7 months ago ago by Rose Tyler

  • Avatar: Clau8826
    August 2, 2022 at 11:29

    I opened a few days ago another ticket but i closed it by mistake and now i can’t find an option to open it back

    I am trying to use your email builder and include values from the order meta ( also known as “custom fields” )
    These fields are used by various plugins to add additional information to the order.

    Take a look at this screenshot from an order on my store:

    For example in my case, my shipping plugin write the courier tracking number in the order meta with the name “numar_awb”.
    Taking into account the screenshot i sent, for example for this order it was created a custom meta with the name “numar_awb” and with the value “00009999”
    What i am looking to do is write in an email something like “Dear c ustomer Your courier tracking number is: {numar_awb} ….
    So in this way it will export the VALUE of that field

    Is there a way to do this using your email builder?

    I am also ok with adding custom php code in the functions.php file that would perhaps enable your theme to export meta fields. So if you can help in this way this is fine for me.

    Thank you

    1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 2, 2022 at 16:12


    Please, read next topics
    In simple words, you may add WC hook element to email builder and then write your custom php code that will show info you want to for the specific type of email.


  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.