WordPress.org

Ready to get started?Download WordPress

Forums

WP e-Commerce user roles and purchase history
[resolved] grant Store Manager to Editor role for wp-ecommerce (2 posts)

  1. julesjunction
    Member
    Posted 1 year ago #

    Hi, can someone give me some advice on wp-e-commerce, wp-e-commerce-user-roles-and-purchase-history plugins and merging the editor role and the store manager role?

    This is a bit long but please bear with me. I am using wp-e-commerce plugin for a store in WP. I would like my website Editor to be able to access the Store Sales function as well as the usual functionality for an Editor. I don't want to grant Administrator access.

    The default Editor role appears to have access to the Products menu on the dashboard but not the Store Sales function. It is just not shown.

    I have used wp-e-commerce-user-roles-and-purchase-history plugin to create a new role XYZ (copy of Editor role) and have granted the Store Manager capability to XYZ. So in theory, XYZ should have all the functionality that the Editor has and the Store Manager too.

    This isn't working. When I log in as XYZ user role, the Store and Products are showing but a number of the Editor dashboard options are missing from the left hand menu, eg Pages, Media, Posts.

    I notice that in wp-e-commerce-user-roles-and-purchase-history/purchase_history.php the menu options are removed for the 'shop manager' role, ie

    if ( current_user_can( 'shop_manager' )){
    remove_menu_page('upload.php'); // Media
    remove_menu_page('link-manager.php'); // Links
    remove_menu_page('edit.php?post_type=page'); // Pages
    remove_menu_page('edit.php'); // Posts
    remove_menu_page('edit-comments.php'); // Comments
    remove_menu_page('themes.php'); // Appearance
    remove_menu_page('plugins.php'); // Plugins
    remove_menu_page('users.php'); // Users
    }

    I am thinking that if I remove the 'remove_menu_page...' code for Media, Pages and Posts etc, that this will give my XYZ role the ability to manage the store and the editor menu options in the left hand menu bar of the dashboard.

    But I'm wondering why these menu items have been removed and if I will muck something up within the store if I do this???

    http://wordpress.org/extend/plugins/wp-e-commerce and http://wordpress.org/extend/plugins/wp-e-commerce-user-roles-and-purchase-history

  2. julesjunction
    Member
    Posted 1 year ago #

    This seems to be working okay for now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags