• Resolved allhighstreets

    (@allhighstreets)


    Hi,
    I would like to hide the customers email address and phone number from the WooCommerce vendor new order email.
    Can you please advise the best way to achieve this?

    Thank you
    Sameena

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi Sameena ??

    Firstly, could you please let us know if you are using a specific plugin for this functionality?

    Thank you!

    Thread Starter allhighstreets

    (@allhighstreets)

    I have wcmp and woo commerce, I am currently using the default tools for this but will eventually move to Kadence to customize the look and feel of the default woocommerce emails.

    Thread Starter allhighstreets

    (@allhighstreets)

    I checked with WCMP, and they advised this email is woo commerce email, and you would be best placed to answer this.

    Thread Starter allhighstreets

    (@allhighstreets)

    @gabrielfuentes hope you are well. I wondered if you had any feedback on this?
    Thank you,
    Sameena

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi Sameena ??

    Apologies for the delay!

    You will need to override the corresponding email template. The list of email templates can be found here:

    https://github.com/woocommerce/woocommerce/tree/release/5.0/templates/emails

    If you would like, you can read more about overriding a template file to your theme here:

    https://docs.woocommerce.com/document/template-structure/

    I hope that helps ??

    Thread Starter allhighstreets

    (@allhighstreets)

    Hi @gabrielfuentes

    Thank you so much for this.
    Sorry to be a pain, but is there anywhere I can find what the corresponding data fields are, so I can add or amend the hooks accordingly.

    Thank you,
    Sameena

    Thread Starter allhighstreets

    (@allhighstreets)

    Hi @gabrielfuentes,

    Hope you are well today.
    I just wanted to check can you please let me know what I add or remove from this email to hide the email and phone number?

    Thank you,
    Sameena

    Thread Starter allhighstreets

    (@allhighstreets)

    Hi,

    So I have the following code:
    This removes the billing address, shipping address email and phone number.
    I only want to remove the phone number and email address.
    Can you please let me know what I need to change here:
    Thanks,

    add_action( ‘woocommerce_email_customer_details’, ‘removing_customer_details_in_emails’, 5, 4 );
    function removing_customer_details_in_emails( $order, $sent_to_admin, $plain_text, $email ){
    $mailer = WC()->mailer();
    remove_action( ‘woocommerce_email_customer_details’, array( $mailer, ‘customer_details’ ), 10 );
    remove_action( ‘woocommerce_email_customer_details’, array( $mailer, ’email_addresses’ ), 20 );
    }

    Thread Starter allhighstreets

    (@allhighstreets)

    @gabrielfuentes can you please help with this?

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi @allhighstreets ??

    I’m not a developer though and I’m not sure about what that code does. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Cheers!

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Cheers!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘vendor new order mail’ is closed to new replies.