• Resolved flo1982

    (@flo1982)


    Hello,

    I was able to remove the vendor name from all emails:
    remove_action( ‘woocommerce_order_item_meta_start’, ‘dokan_attach_vendor_name’, 10, 2 );

    How can I add the vendor name and the vendor address to the items of the “new order” email for administrator?

    Kind regards,

    Florian

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @flo1982 ,

    Well, you could take a different approach here. Here is an example code that removes the vendor details only from the processing order emails –

    add_action( 'woocommerce_email_before_order_table', 'remove_vendor_details_specific_email', 20, 4 );
      
    function remove_vendor_details_specific_email( $order, $sent_to_admin, $plain_text, $email ) {
       if ( $email->id == 'customer_processing_order' ) {
          remove_action( 'woocommerce_order_item_meta_start', 'dokan_attach_vendor_name', 10 );
       }
    }

    You can specify each email ID’s and remove it from specific emails. As we do not provide direct customization you can take other approaches with this as well.

    I hope this information helps.

    Thank you ??

    Thread Starter flo1982

    (@flo1982)

    Thank you much. This approach was helpful. I added other email id’s to the script.
    Now I need to add the vendor address to the new_order

    Hello @flo1982 ,

    I am glad to know that it was helpful.

    You can share your version of code to share to with others here.

    Thank you ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add vendor info to New order email’ is closed to new replies.