Admin Invoice is also attached on Customer Order Email Error

WCMp PDF Invoice


Viewing 11 reply threads
  • Author
    • #130738
      Sahil Shaikh


      Hope you are doing well,
      Whenever an order is placed, an email is sent to the customer. The customer should only receive 1 pdf invoice for his/her name.
      While in our case, there are two pdf files attached –
      The email named “invoice-1.pdf” is for Mahl.Qa –
      And the email named “invoice51-1 if for the customer: –

      We would like to only show the customer pdf invoice instead of two pdf files.
      Please guide us on how to fix this.

      Thank you

    • #130766

      Kindly share us the full setting page of WCMp PDF full screenshot or a video and also make a video of your issue from creating an order.
      We will check this on our end and let you know about your issue.


    • #130771
      Sahil Shaikh

      Thank you for the reply,

      The following link shows the settings of our PDF Invoice in WCMP.

      Regarding the demo order, following loom video shows the email received after placing the order.

    • #130844
      Sahil Shaikh

      any update?

    • #130889

      @Sahil Shaikh, I guess you referring to one invoice from main order, and another one from sub order.

      So, now which invoice do you want to stop?

    • #130892
      Sahil Shaikh

      I only need my customer to recieve one invoice which includes all there purchased items.

      And same copy goes to our email address so we know the order is placed.

    • #130951

      @Sahil Shaikh, kindly confirm if you want this i.e. only send invoice of the actual order to both admin and customer. So we will stop the sub order invoices.

    • #131057
      Sahil Shaikh

      yes please, go ahead.

    • #131323

      As this requires custom code, we need some time.

    • #131326
      Sahil Shaikh

      How long?

    • #131346

      Currently our developer is working on a modification, so it will require some time.
      We will keep you posted.

    • #131433


      Kindly add below code to your active theme/function.php

      then chek

      /*** Disable suborder email to customer ****/
      add_filter( ‘woocommerce_email_recipient_customer_refunded_order’, ‘disable_email_for_sub_order’, 10,3 );
      add_filter( ‘woocommerce_email_recipient_customer_completed_order’, ‘disable_email_for_sub_order’, 10,3 );
      add_filter( ‘woocommerce_email_recipient_customer_on_hold_order’, ‘disable_email_for_sub_order’, 10,3 );
      function disable_email_for_sub_order( $recipient, $order, $object ){
      if( wp_get_post_parent_id( $order->get_id() ) ){
      } else {
      return $recipient;


Viewing 11 reply threads

The topic ‘Admin Invoice is also attached on Customer Order Email Error’ is closed to new replies.