Admin Invoice is also attached on Customer Order Email Error

WCMp PDF Invoice

Tagged: 

Resolved
Viewing 11 reply threads
  • Author
    Posts
    • #130738
      Sahil Shaikh
      Participant

      Hi,

      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 – https://snipboard.io/JsOSgT.jpg
      The email named “invoice-1.pdf” is for Mahl.Qa – https://snipboard.io/nrYawb.jpg
      And the email named “invoice51-1 if for the customer: – https://snipboard.io/KPXoH8.jpg

      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

      Hi,
      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.

      Regards,

    • #130771
      Sahil Shaikh
      Participant

      Hi,
      Thank you for the reply,

      The following link shows the settings of our PDF Invoice in WCMP.
      https://www.loom.com/share/87d76e1a5c36412cb8cdfd444a92d07b

      Regarding the demo order, following loom video shows the email received after placing the order.
      https://www.loom.com/share/359fc0aac3e74e17ae511643b9c02897

    • #130844
      Sahil Shaikh
      Participant

      hello,
      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
      Participant

      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
      Participant

      yes please, go ahead.

    • #131323

      As this requires custom code, we need some time.

    • #131326
      Sahil Shaikh
      Participant

      How long?

    • #131346

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

    • #131433

      Hi,

      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() ) ){
      return;
      } else {
      return $recipient;
      }
      }

      regards,

Viewing 11 reply threads

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