WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Shop Manager Role Issues (1 post)

  1. karbanovich
    Member
    Posted 1 year ago #

    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.
    THanks!

    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' );
    }

    http://wordpress.org/extend/plugins/woocommerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic