• Resolved eftcolumbus

    (@eftcolumbus)


    Hi is there a way to limit the order statuses that vendors can see in their vendor dashboard. In my case I only want them to see Completed and Refunded. I have the box marked that they can see reversed/refunded orders, so they can see those, but they can also choose Cancelled status for example, which are not relevant for them and confusing.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Fitri Sinta

    (@supportfitri)

    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,

    Thread Starter eftcolumbus

    (@eftcolumbus)

    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.

    Plugin Support Fitri Sinta

    (@supportfitri)

    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.

    Thread Starter eftcolumbus

    (@eftcolumbus)

    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).

    Plugin Support Fitri Sinta

    (@supportfitri)

    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,

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Allow only certain order status in vendor orders dashboard’ is closed to new replies.