Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Allowing non-admin user profiles to see the eStore panel in wp-admin:

by

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 5 years ago by admin.
Viewing 15 posts - 1 through 15 (of 17 total)
1 2 →
  • Author
    Posts
  • June 13, 2010 at 1:11 am #1357
    Justin Brock
    Member

    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 #21695
    amin007
    Participant

    This 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 #21696
    Justin Brock
    Member

    Thank you so much! That worked perfectly.

    August 25, 2011 at 11:14 pm #21697
    jerelmani
    Member

    Sadly. 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 #21698
    admin
    Keymaster

    WordPress 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 #21699
    Bld
    Member

    I 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 #21700
    admin
    Keymaster

    If 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 #21701
    Bld
    Member

    Spot on! That done the trick alright – thanks for your prompt assistance.

    July 7, 2015 at 5:36 am #21702
    morbank
    Member

    Is there a way to do this in wp estore v. 7.2.1? Thank you.

    July 7, 2015 at 10:31 pm #21703
    wzp
    Moderator

    Have you tried following the last set of directions, given by @admin? It should still work.

    July 21, 2015 at 2:52 am #21704
    morbank
    Member

    I 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 #21705
    admin
    Keymaster

    It 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 #21706
    morbank
    Member

    Thank 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 #21707
    admin
    Keymaster

    You can use “publish_posts” to give access to author users.

    August 14, 2015 at 7:30 am #21708
    morbank
    Member

    It worked! Thank you very much!

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 17 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ