• Resolved vasudevb

    (@vasudevb)


    Hi,

    When an email is sent to the vendor about a new order, the billing and shipping email is written along with the phone number and the email id of the customer. How to remove the email address and the phone number?

    I tried removing line 106 of vendor-new-order template also…but then the entire thing goes away.

    Thanks…

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @vasudevb ,

    This is a tricky one.

    The customer details are coming from WooCommerce. So, the first step is to remove or comment out line #106 on the vendor-new-order.php file.

    Then copy the original code from WooCommece template woocommerce/templates/emails/email-addresses.php and paste only the necessary codes on the vendor-new-order.php file.

    Basically, we are hard-coding that section instead of calling it from the hook.

    I hope that clears the confusion.

    Thank you ??

    Thread Starter vasudevb

    (@vasudevb)

    Hey, done. As I could not understand the functions or classes, I just let both the addresses be and removed the details which was easier.

    Thanks…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide only the customer ph and email from vendor email’ is closed to new replies.