• Resolved suprehn

    (@suprehn)


    Hi there,

    I would like to add username to the admin-new-order.php file so that I get the username of the user that have placed a new order. In my shop its not possible to add an order without an account so all my customers have an account and therefore an username as well. Can anyone point me in the right direction in how to add this to the mail. This is extremely important to me as my clients username is their customer id in my ERP system, so I really hope that its doable.

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support EastOfWest a11n

    (@eastofwest)

    Hi there!

    This older thread dealt with something similar and should get you going in the right direction.

    By using the User ID, you can use WordPress functions to retrieve the user details, including their username.

    Aside from the link above, the WC_Order Class details might also be insightful.

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @suprehn,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, the above info was useful and you were able to find a solution to your problem!

    If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add username to admin-new-order mail’ is closed to new replies.