Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards

Order confirmation send to customers

WCMp Core

Resolved
Viewing 2 reply threads
  • Author
    Posts
    • #147381
      am.injabari242
      Participant

      how can I change the following issue: When a customer buys, they get the “order confirmation” twice, only with different order numbers (e.g. #10200 and #10201) – only that they both refer to the same order and the same invoice. My customers are confused, because they think that they accidentally ordered twice.

      I already looked up the Woocommerce > settings > emails section, but I only find the standard Woocommerce mail for order confirmation there and not a special one for WCMp. I would like them to receive ONE order confirmation mail, not two.

      Do you have any idea for me, where I could switch the other one off? https://www.myccpay.life/

    • #147384

      @am.injabari242, let me assit you with the flow :

      When an order is placed, we also create the sub-order for the vendors. This way, the vendor manages their own order.

      Now if you want, you can stop the main order email. For this use this code :

      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 );
      add_filter( 'woocommerce_email_recipient_customer_processing_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 $recipient;
         } else {
            return;
         }
      }
      Copy
    • #180099
      WCMp Admin
      Keymaster

      We haven’t heard back from you, so we presume this issue has been fixed.
      So we are closing this one.
      If you need any further help, do open another thread.

Viewing 2 reply threads

The topic ‘Order confirmation send to customers’ is closed to new replies.