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.