We want to get commission on all order statuses excluding "pending-payment".
We saw a code that can help but when the order status is canceled or refunded, the commission on that particular order is 0.
We still want a commission even if the order is canceled or refunded.
Here is the code that we used:
add_filter('salesking_earning_completed_statuses', function($statuses){
$statuses = array('completed', 'processing', 'on-hold', 'refunded', 'cancelled');
return $statuses;
}, 10, 1);
Is there a workaround to achieve this?
Thanks