Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Remove Vendor Ability to Set Some Order Statuses

WCMp Advanced Frontend Manager

Resolved
Viewing 6 reply threads
  • Author
    Posts
    • #116055
      Andrew Austin
      Participant

      We don’t want the vendor to be able to manually set the order as “failed” or “on-hold” or some others. Please see this screenshot: https://s.austin.yt/xQunzRlK

      Is there something we can do to remove these options from the vendor? We just want them to be able to mark an order as processing or completed. Thank you.

    • #116117

      Hello,

      Thank you for reaching out to us.

      By default in WCMp, the order status has to be manually updated by the vendor to processing, completed, failed, on-hold. Can you please help us explain your requirement in detail steps so that we can help you more efficiently.

      We are unable to see the screenshot attached as you can see here https://prnt.sc/103dg4v

    • #116148
      Andrew Austin
      Participant

      I apologize that you are unable to view the screenshot. I am not sure why that is happening. I have attached my screenshot directly to this reply.

    • #116150
      Andrew Austin
      Participant

      We would like to remove the vendor’s ability to see or choose those order statuses (crossed out in pink in my screenshot).

    • #116218

      Hi,
      Please add this code in the function.php of the current active theme :

      add_filter( 'wcmp_vendor_order_statuses', 'wcmp_change_default_status', 10, 2);
      function wcmp_change_default_status( $order_status, $order ){
      	unset($order_status['wc-pending']);
      	unset($order_status['wc-on-hold']);
      	unset($order_status['wc-cancelled']);
      	unset($order_status['wc-refunded']);
      	unset($order_status['wc-failed']);
      	return $order_status;
      }
      Copy

      Regards,

    • #116294
      Andrew Austin
      Participant

      Perfect, thank you! That worked.

    • #116319

      Thank you for the update. We are closing the ticket now. In case any issue arises kindly raise a new ticket.

Viewing 6 reply threads

The topic ‘Remove Vendor Ability to Set Some Order Statuses’ is closed to new replies.