Auto withdrawal requests

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 1 reply thread
  • Author
    Posts
    • #94025
      Jose Solsona
      Participant

      Hi
      I want to receive automatic withdrawal request.
      See the attached image to see my settings.

      I’ve set it by Order Complete but don’t receive any withdrawal request afer the pay is complete.

      See image 2.

      PS: I’ve added a code to functions.php that auto complete the order.
      All orders pass from Processing to Complete.

      This code:

      /**
       * Auto Complete all WooCommerce orders.
       */
      add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );
      function custom_woocommerce_auto_complete_order( $order_id ) { 
          if ( ! $order_id ) {
              return;
          }
      
          $order = wc_get_order( $order_id );
          $order->update_status( 'completed' );
      }

      I’ve also set 90% of comission for the vendor.

      Attachments:
      You must be logged in to view attached files.
    • #94040
      Jose Solsona
      Participant

      Solved.
      Was be because the payment details were not completed.

Viewing 1 reply thread
  • The topic ‘Auto withdrawal requests’ is closed to new replies.