• Resolved petis

    (@sedivy)


    Hello,

    thank you for a great plugin. Everything works fine. How can I add customer’s phone number and email to [order_billing_address]?

    Thank you.
    Peter.

Viewing 12 replies - 1 through 12 (of 12 total)
  • HI there,

    Thanks for reaching out.

    You have to use another shortcode[order_func func="get_billing_phone"] in order to output the phone number, and to output the email, please add [order_func func="get_billing_email"] in the email content.

    I hope it helps.

    Thread Starter petis

    (@sedivy)

    Hi,

    great, it works great. thank you for the quick response.

    Have a nice day.

    Hi there,

    Happy to help ??

    If you have any other questions, please let us know.

    kind regards.

    Thread Starter petis

    (@sedivy)

    Hello,

    I have one more question. In the standard woo emails, the product code (SKU) is displayed for each product. In the new created email there is a table with the products, but the SKU is missing here. Is there any way I can add it there?

    Thank you.

    HI there,

    Could you please let us know if you are using the [order_details] shortcode in order to output the table?

    Kind regards.

    Thread Starter petis

    (@sedivy)

    Hi,

    yes, of course. Here is the content of the new email: https://tinyurl.com/2yhhml7r

    Here is the default woocommerce email that will be sent when a new order is received.
    https://tinyurl.com/26wzp2n6

    and here is the content of our new email. As you can see, it contains a table of products, but the SKU codes are missing
    https://tinyurl.com/26zdux76

    Thank you for your time.
    Regards.

    Hi there,

    Thanks for your reply.

    I have passed your request to the development team. They will get back to you as soon as possible

    Kind regards.

    Thread Starter petis

    (@sedivy)

    OK, thank you. Please let me know if anything changes.

    Kind regards.

    Plugin Author Algoritmika

    (@algoritmika)

    Hi, @sedivy,

    This happens because WooCommerce shows SKUs in order details only if it’s an admin email. So you’d need to set the sent_to_admin shortcode attribute to yes, i.e., instead of this:

    [order_details]

    use this:

    [order_details sent_to_admin="yes"]

    Please note that in admin emails, it will also make the order number in the heading clickable, pointing to the admin order edit page.

    I think these are the only two differences in the WooCommerce order details (admin vs non-admin emails), but I’m not completely sure.

    Please give it a try and let me know what you think.

    Plugin Author Algoritmika

    (@algoritmika)

    P.S. By the way, since the plugin v2.8.1, there is now an easier way to display customer email and phone number:

    [order_billing_email]
    [order_billing_phone]
    Thread Starter petis

    (@sedivy)

    Hi,

    thank you! This is exactly what i needed. The email goes to the shipping center, so the clickable order number does’t matter. Needed the product codes though.

    I’m so grateful for both the solution and the really quick response.

    Have a great day!

    Plugin Author Algoritmika

    (@algoritmika)

    Hi, @sedivy,

    Happy to help ?? Please let me know if you will need anything else.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How can I add customer phone numbers and email addresses’ is closed to new replies.