Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Allowing non-admin user profiles to see the eStore panel in wp-admin:
Tagged: Administration, User Roles
- This topic has 16 replies, 8 voices, and was last updated 6 years, 8 months ago by admin.
-
AuthorPosts
-
June 13, 2010 at 1:11 am #1357Justin BrockMember
Right now, only people logged in with an Administrator role can see the eStore tab in wp-admin. Is it possible to give access to that tab to someone logged in with an Editor role?
I’m building a site for someone else, and don’t want them editing the theme or changing plugins, but I do want them to see the eStore. The use case is a non-technical business user needing to see some, but not all, of the administrative interface.
Block these –
Subscribers: don’t want them to see the eStore in wp-admin
Authors: don’t want them to see the eStore in wp-admin
Enable these –
Editors: don’t want them to see the eStore in wp-admin
Admins: don’t want them to see the eStore in wp-admin
June 14, 2010 at 3:37 am #21695amin007ParticipantThis one is not hard to do… I am guessing you want the “Editors” and “Admins” to be able to see the “WP eStore” admin menus. This is what you do:
1. Open the “wp_eStore1.php” file and search for the following:
define("ESTORE_MANAGEMENT_PERMISSION", "add_users");
Once you find it replace it with the following:
define("ESTORE_MANAGEMENT_PERMISSION", "edit_pages");
This will make it so both editors and admins can see the WP eStore admin dashboard while the authors, subscribers and contributors cannot.
June 16, 2010 at 1:46 am #21696Justin BrockMemberThank you so much! That worked perfectly.
August 25, 2011 at 11:14 pm #21697jerelmaniMemberSadly. I had this working before i had upgraded to the latest version of the plugin.
Now I have changes the file exactly as it is stated above and it still does not work as it did before. Any thoughts? thanks
August 26, 2011 at 3:58 am #21698adminKeymasterWordPress changed some of these role permission constants. If you tell me which role you want to give access to I should be able to tell you the new constant value.
September 6, 2011 at 4:08 pm #21699BldMemberI also want to know this – how do I now make it so that editors can have access to the store? Need to get this sorted asap.
Thanks
September 7, 2011 at 12:43 am #21700adminKeymasterIf your WordPress version is higher than WPv3.0 then do the following:
1. Open the “wp_eStore1.php” file and search for the following:
define("ESTORE_MANAGEMENT_PERMISSION", "add_users");
2. Once you find it replace it with the following:
define("ESTORE_MANAGEMENT_PERMISSION", "edit_pages");
September 7, 2011 at 11:02 am #21701BldMemberSpot on! That done the trick alright – thanks for your prompt assistance.
July 7, 2015 at 5:36 am #21702morbankMemberIs there a way to do this in wp estore v. 7.2.1? Thank you.
July 7, 2015 at 10:31 pm #21703wzpModeratorHave you tried following the last set of directions, given by @admin? It should still work.
July 21, 2015 at 2:52 am #21704morbankMemberI don’t know where to locate the wp_eStore1.php file. I thought it would be located in the Editor section of the Plug-ins dashboard but I don’t see it!
July 21, 2015 at 3:10 am #21705adminKeymasterIt should be there. May use FileZilla to log into your site via FTP. The following tutorial will show you how to use FileZilla:
https://www.tipsandtricks-hq.com/using-filezilla-ftp-client-for-your-wordpress-site-6566
August 14, 2015 at 12:35 am #21706morbankMemberThank you for your assistance. I was actually able to find the file. However, I have another issue. I’m using a plug-in called User Role Editor, in which I can make up a new role and assign specific functions to it. I wanted to give certain people access to only certain pages, the ones they’ll be maintaining. So I made a role called “Editor_Pages” and checked the box edit_pages. So now they can only see the pages they’ve generated (and not edit anyone else’s). However, now they all have access to the WP estore in the dashboard. So is there another role I can attribute to the shop manager so that she is the only one who can see the WP estore but also be able to manage/maintain the store page? Is there something besides edit_pages I can type into the php file (instead of add_users)…like a capability as a contributor or an author? Thanks.
August 14, 2015 at 5:10 am #21707adminKeymasterYou can use “publish_posts” to give access to author users.
August 14, 2015 at 7:30 am #21708morbankMemberIt worked! Thank you very much!
-
AuthorPosts
- You must be logged in to reply to this topic.