• Resolved heena1

    (@heena1)


    Hello,

    Need to remove vendor name from only “customer_processing_order” email.
    I used

    remove_action( ‘woocommerce_order_item_meta_start’, ‘dokan_attach_vendor_name’, 10 );

    but it was remove vendor name for “new_order” also. I need vendor name into “new_order” email but not need into “customer_processing_order” email

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

    Thanks for reaching out.

    Please try this code in your theme’s functions.php file to remove the vendor details specifically on order processing email of customer:

    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 );
       }
    }

    Thank you ??

    Thread Starter heena1

    (@heena1)

    It worked.

    Thank you very much ??

    • This reply was modified 4 years, 4 months ago by heena1.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘remove vendor name from only “customer_processing_order” email’ is closed to new replies.