Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    Hi,

    Create custom role on the base of ‘Shop Manager’ and try exclude ‘manage_%’ capabilities from it.

    Regards,
    Vladimir.

    Thread Starter Lindors

    (@lindors)

    Hi,
    Thanks for your quick respond.

    I’ve tried to do that, but Custom capabilities list is not including other woocommerce capabilities (manage woocommerce products, manage woocommerce coupons etc. ) There is only “manage_woocommerce” to chose from. I don’t know how to create new woocommerce capabilities (manage_woocommerce_product). I am not good with PHP etc.

    If I don’t chose “manage_woocommerce” option, there is no access to WordPress dashboard from that user account.

    From list below I have only first option to chose from Custom capabilities list:

    Shop Manager role:
    manage_woocommerce
    manage_woocommerce_orders
    manage_woocommerce_coupons
    manage_woocommerce_products

    Thread Starter Lindors

    (@lindors)

    Please can you advise me how to do that.

    Regards,
    Dom.

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Those capabilities should be created automatically during WooCommerce installation.
    I suppose that you use some old version of WooCommerce. You need to install the latest one.

    Thread Starter Lindors

    (@lindors)

    Hi,
    Yes, you were right. I had old version of woocommerce.
    Now is everything fine. Thanks

    Regards
    Dom

    Kind of same problem for me. I have updated WooCommerce to the latest version. But I only have this

    manage_capabilities
    manage_product_terms
    manage_shop_coupon_terms
    manage_shop_order_terms
    manage_woocommerce

    If I remove manage_woocommerce the user have no access to dashboard. I would like the user to be able to see orders and reports but not edit the WooCommerce settings.

    Hi,
    I try to give the shop manager only right to see (new) order, print invoice and shipping label, but I didn’ get it. I have new woocommerce.
    Can you help please?
    Thank you very much,
    Ole

    I have checked on

    edit_shop_order
    edit_shop_orders
    manage_woocommerce_orders
    read_shop_order

    The shop manager shows orders and add orders, but when I click as shop manager on “view order” I don’t have access. So the shop manager can’t see the order details to do the packing.

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Try to add ‘edit_others_shop_orders’ capability. ‘View’ link opens order for editing really.

    This works fine, thank you very much!

    Hi there, this is exactly the post item i was looking for but for me no solution here just lke jannejava above.

    There are no capabilities in user role manager for excluding/hiding the woocommerce settings (and add-ons) for shopmanager or editors.

    Can you please advice here valdimir?

    Would be great, thanks!

    Plugin Author Vladimir Garagulya

    (@shinephp)

    User Role Editor Pro “Administrator menu access” add-on may help you:
    https://www.role-editor.com/woocommerce-menu-manage-access

    I found the solution guys (thanks to the support staff):

    WATCH OUT: be really carefull since this may break things down. BAckup your files and shop before you do this.

    Place this in your functions.php:

    add_action( ‘admin_menu’, ‘wooninja_remove_items’, 99, 0 );

    function wooninja_remove_items() {
    $remove = array( ‘wc-settings’, ‘wc-status’, ‘wc-addons’, );
    foreach ( $remove as $slug ) {
    if ( ! current_user_can( ‘update_core’ ) ) {
    remove_submenu_page( ‘woocommerce’, $slug );
    }
    }
    }

    ole_wilkenburg

    (@ole_wilkenburg)

    Hey Vladimir, hope you can help!
    I want to give my shipping helper permission to view products (he needs to know what exact was sold for packing), but not to edit product or add new.
    I assumed read_product would help, but this didn’t show the products.
    I have selected:
    Core capabilities:
    edit_posts
    read
    Custom capabilities:
    edit_others_shop_orders
    edit_shop_order
    edit_shop_orders (btw, what is the different between order and orders)
    manage_woocommerce_orders
    read_shop_order

    How can I give him permission to see the products at backend?
    Thanks,
    Ole

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Hi Ole,

    WooCommerce “Products” is a WordPress custom post type. Similar to the ‘posts’ or ‘pages’ the ‘products’ does not have view capability at back-end. There is no such functionality at WordPress.
    In order to get access to ‘Products’ user should have ‘edit_products’ capability for own products and ‘edit_others_products’ for access to the products of other users.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Prevent shop manager from woocommerce settings.’ is closed to new replies.