Support » Plugin: WooCommerce » Shop Manager Role Issues

  • Hello,
    I had a problem with the role of the shop manager.
    On my website the user with that can only see/edit the products but not orders and stats and settings.
    And it is only after i have added that to the functions.php of my theme.
    so i just redeclared the add_cap… and so before that shop manager was not even able to see the products in the store.
    is there anything else i can do for the Shop Manager to see the Settings and Orders and stuff like that.

    function ch_role_manager() {
    		global $wp_roles;
    // Main Shop capabilities for admin
    			$wp_roles->add_cap( 'shop_manager', 'manage_woocommerce' );
    			$wp_roles->add_cap( 'shop_manager', 'manage_woocommerce_orders' );
    			$wp_roles->add_cap( 'shop_manager', 'manage_woocommerce_coupons' );
    			$wp_roles->add_cap( 'shop_manager', 'manage_woocommerce_products' );
    			$wp_roles->add_cap( 'shop_manager', 'view_woocommerce_reports' );

  • The topic ‘Shop Manager Role Issues’ is closed to new replies.