Hi @hwsiew, thanks for your query.
We are working on this flow i.e. how can admin manage the commission flow when cod is applicable.
For now, you can follow this thread to handle the commissions for COD : https://wc-marketplace.com/support-forum/topic/zero-commission-for-cash-on-delivery-orders/#post-90555
Thread Starter
hwsiew
(@hwsiew)
Hi, thanks for the reply.
The method set commission to 0 only. How can i set the commission status to ‘paid’ automatically?
@hwsiew, our team is looking into this.
Kindly provide them some time.
Hi @hwsiew,
use this code in your current active themes functions.php file
// paid commission automaticly for cod payment
add_action( 'after_wcmp_calculate_commission', function ( $commission_id, $vendor_order_id ) {
$payemnt_method = get_post_meta( $vendor_order_id , '_payment_method' , true );
if( $payemnt_method == 'cod' ){
update_post_meta( $commission_id , '_paid_status' , 'paid' );
}
},10,2);