Support » Plugin: User Role Editor » WooCommerce
WooCommerce
-
Hi there,
I would like to hide WooCommerce Settings, System Status & Add-Ons, is this possible with your plugin?
Many Thanks,
Jawad
-
Hi Jawad,
Yes, it’s possible.
This 3 WooCommerce menu items are protected by ‘manage_woocommerce’ user capability.
If, for example to create new role as a copy of a ‘Shop Manager’ role and switch off a ‘manage_woocommerce’ capability for it, then user with such new role will not see ‘WooCommerce’ menu (protected by the same ‘manage_woocommerce’ capability), including ‘Settings’, ‘System Status’, ‘Add-Ons’, but see 3 new top level menus ‘Coupons’, ‘Orders’, ‘Sales Reports’ instead.Hi Vladimir,
Thank you for your response. I have not been able to duplicate the ‘Shop Manager’ role but I have created a new role and assigned it the capabilities it requires.
If I untick ‘manage_woocommerce’ capability, then this user loses access to WordPress Dashboard?
Many Thanks,
JawadFor more details about access to the WP backend dashboard with active WooCommerce read this post:
https://www.role-editor.com/woocommerce-admin-bar-access/Hi Vladimir,
Appreciate the link, I have read it and see it requires adding code to the theme function files. I was wondering if their was a way to do this via the plugin?
I have found this link of yours: https://www.role-editor.com/woocommerce-menu-manage-access/
Does this still exist? Furthermore, is it possible to restrict access to Product Categories, Tags, Shipping Classes & Attributes.
Also so that users can only view products but not add or edit products?
Many Thanks,
JawadHi Vladimir,
Any assistance on this please?
Many Thanks,
JawadHi Jawad,
It’s possible to setup that code as a ‘must use’ plugin:
https://codex.wordpress.org/Must_Use_Pluginsis it possible to restrict access to Product Categories, Tags, Shipping Classes & Attributes
All 4 menu items are protected by ‘manage_product_terms’ user capability. More detailed permissions are managed by other ‘%_product_terms’ capabilities, like ‘edit_product_terms’, etc.
Hi Vladimir,
Thank you for that. I do not entirely understand the ‘must use plugin’, how do I access this page:
on your plugin? It seems to have a backend editor to limit access to WooCommerce Settings, System Status, Add-Ons etc?
Many Thanks,
JawadHi Jawad,
This screenshot is done from the Pro version of User Role Editor. “Admin menu access” add-on is included to it:
https://www.role-editor.com/block-admin-menu-itemsHi Vladimir,
Thank you. If I purchase the pro plugin, will I be able to hide System Status, Add-Ons, Product Categories etc from the plugin backend?
Many Thanks,
JawadYes, you will be able to hide/block unneeded menu items from the “WooCommerce” menu with Pro version of User Role Editor.
If you add to a user ‘edit_products’ to give him access to the ‘Products’ menu and a products list, but do not give him ‘create_products’ capability activated with a Pro version, then the only ‘View’ link will be available for such user under each product at back-end, as all products were created by other users.
Just a remind: it’s possible to hide ‘System Status, Add-Ons, Product Categories’ menu items with a free version too, if you exclude from the copy of ‘shop_manager’ role ‘manage_woocoomerce’ capability. In order to not lose access to the dashboard is enough to setup special filter.
Hi Vladimir,
Ah right, the earlier mentioned method of adding code to the theme function file?
I think I will buy the Pro version, it will be easier to manage from backend but also you have very good support.
Many Thanks,
Jawad
- The topic ‘WooCommerce’ is closed to new replies.