Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Managers Capabilities
- This topic has 3 replies, 2 voices, and was last updated 6 years, 1 month ago by WCFM Forum.
- AuthorPosts
- October 1, 2018 at 7:58 pm #33000d-n-13Participant
Hello,
I am trying to add managers with specific access only,
My first manager I’m trying to add is [Orders Manager] or [Orders Department], Their capabilities should be dealing with orders only and view vendors / withdraws.
Now the problem I am facing is :-
1- I want to show vendors but without the ability to edit them. (I couldn’t do that)
2- I want to show withdraw without editing them (the capability setting doesn’t seem to be working, I turned it off and manager still can access and approve withdrawal requests).
3- I want to hide all notifications except related notifications, I don’t want Order Manager to be confused with other notifications not related to his job or needing to mark them read every time.
4- Refund couldn’t be hidden but it shows [cannot access this page / no permission contact admin] which is fine by me but tabs should be consistent, all of them with message or all of them hidden.Screenshot after disabling most capabilities : https://www.dropbox.com/s/18tukql154tu7lr/capabilities%20managers.JPG?dl=0
After I’m done with Orders Manager, I’m going to add Manager for Products only dealing with approving editing and everything related to products only, and of course can access vendors list without editing them.
Also I’m going to add Accounting Manager who is dealing with withdraws / refunds / any thing related to that only.
I’m trying to make things simple for my team without confusing them with many tabs and labels.
I hope you see it good idea enhancing the awesome capabilities feature you have and implement my previous simple ideas.
Thank you
- November 13, 2018 at 9:26 am #36592WCFM ForumMember
Hi,
Sorry for delayed update on this.
Kindly add this code for the purpose –
function wcfmmp_add_restriction_for_shop_manager( $is_allow ) { if( current_user_can('shop_manager') ) $is_allow = false; return $is_allow; } add_filter( 'wcfm_is_allow_edit_vendor', 'wcfmmp_add_restriction_for_shop_manager', 750 ); add_filter( 'wcfm_is_allow_manage_vendor', 'wcfmmp_add_restriction_for_shop_manager', 750 ); add_filter( 'wcfm_is_allow_refund_requests_action', 'wcfmmp_add_restriction_for_shop_manager', 750 ); add_filter( 'wcfm_is_allow_withdrawal_requets_action', 'wcfmmp_add_restriction_for_shop_manager', 750 );
Well, this will work after WCFM next update.
Between, notification (point 2) will not resolve with this.
Thank You
- November 16, 2018 at 8:57 pm #36872d-n-13Participant
Hi,
Thank you for awesome continuous support, will try it next update.
Thanks
- November 17, 2018 at 3:38 pm #36959WCFM ForumMember
HI,
WCFM new update is already there, please try now!
Thank You
- AuthorPosts
- The topic ‘Managers Capabilities’ is closed to new replies.