Hi @eftcolumbus,
Thanks for contacting us.
I’m afraid we don’t have a feature to limit which order statuses to show on the Vendor Dashboard. I’ve raised a ticked for this feature request but I’m afraid we’re not able to give an ETA when it will be implemented, we’ll keep you in the loop if anything changes.
We appreciate your feedback and will keep it in mind as we continue to improve our product.
Best regards,
Could you tell me what hooks I should use?
I am going to have to hire someone to code this for me and want to set them on the right path. I had it done before in an older version and it worked, but that code no longer works on the newer version. I haven’t udpated as a result but want to.
And that coder is no longer working in wordpress, so I have to start over with a new coder.
Thanks.
Hi @eftcolumbus, could you please try adding the PHP code snippet below to your child theme’s functions.php file or use a code snippet plugin to hide “Cancelled” orders on the Vendor Dashboard?
/**
* Modify WC Vendors order statuses.
*
* @param array $order_statuses Array of order statuses.
* @return array Modified order statuses.
*/
function wcv_modify_order_statuses( $order_statuses ) {
// Remove 'wc-cancelled' status.
unset( $order_statuses['wc-cancelled'] );
return $order_statuses;
}
add_filter( 'wcv_order_statuses', 'wcv_modify_order_statuses' );
I hope it helps. Let me know how it goes.
Hi, thank you yes that did work! And I was able to unset the other statuses that I didn’t want either so it just shows Completed and Refunded.
I am going to start another ticket on a separate issue (unrelated to this) on export orders. Under Status it just says “No” for every order. This is with and without this snippet being added (this snippet doesn’t affect export field).
Hi @eftcolumbus,
Glad to hear that the solution worked for you!
Regarding the export issue you’re experiencing, we’ve already escalated this to our development team for further investigation. We’ll keep you updated on any progress, and we appreciate your patience as our team works on it.
Let us know if you have any other questions in the meantime!
Best regards,