• The back story is I have an ecommerce site and the user is demanding access to edit a few things. I am trying to give them access only to the absolute minimum because they will shoot themselves in the foot. The site of course uses Woocommerce and I am also using User-Role Editor. I’ve got things worked out quite well, except when it comes to the Shop Manager role. I’ve included a link here to a screen shot of the User Restriction page that I am using.

    User Restrictions

    The post ID entries of 649, 467, and 676 are the Page Id’s I want them to have access to and those work fine.

    The category id of 19 is the default category of user submitted posts. This allows the Editor to view all the posts as they have to approve them before they are published. This works fine as well.

    My issue is I need to allow the Shop Manager role to see the orders so they manage them. They see no orders now because I have specified the specifics of what I am willing to allow and I have nothing specified about the Orders. One exception to that is back to the post ID, the id of 628 is one of the orders and when I specify it, the Shop Manager role then sees that one order. Obviously I can’t do it that way as I won’t know the id’s of new orders. So, how do I get around this?

    Do Shop Orders default to a taxonomy id that I can use? I believe of I have that, then I can specify that id in the category.taxonomy ID section and I will be set. I just cannot find anything on a taxonomy id.

    Can you help me here?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    Try to exclude orders from the “edit restrictions” scope of view using this filter
    ure_restrict_edit_post_type“. Replace ‘editor’ with ‘shop_manager’ and ‘post’ with ‘shop_order’ at the code snippet. Shop manager will have access to all orders then.

    I recommend to use the dedicated forums at https://www.role-editor.com/forums for questions related to the Pro version.

    Thread Starter jschmidtsbss

    (@jschmidtsbss)

    Thank you for your response Vladimir, I do appreciate it. Unfortunately I am not a programmer andI ahve no idea where to put the code snippet you provided. Could you prove me with a bit more explanation of how I go about using that snippet and I will try it.

    Thanks,

    Jim

    Plugin Author Vladimir Garagulya

    (@shinephp)

    WordPress allows to execute custom code automatically without need to setup is as a usual plugin:
    1st variant: insert code to the end of the active theme’s functions.php file;
    2nd variant: insert code to the separate .php file (do not forget to start such file from the <?php row) and put such .php file into the wp-content/mu-plugins/ folder as a must use plugin.

    Thread Starter jschmidtsbss

    (@jschmidtsbss)

    Vladimir,

    Thank you so much first of all for this great plugin! I hesitated buying the Pro version as I wasn’t sure if it would do what I wanted. Boy, did it ever! And I think the best part is the support you gave. I followed your advice with the code snippet and how to use it and bingo, it solved my issue! I am thrilled beyond belief and I thank you so much!!!

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Thanks a lot for your feedback.

    Thread Starter jschmidtsbss

    (@jschmidtsbss)

    Vladimir, help!

    I am not sure what happened. This worked when I first put it in and now today it is not. I did add a couple more plugins so I went back and deactivated them but it did not help. I then went ahead and deactivated all plugins and still no change. I then tried switching themes to twenty-fifteen and still no change. Can you please help me figure out w3hat is wrong?

    Thanks,

    Jim

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Hi Jim,

    Send me a message to support [at-sign] role-editor.com

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Taxonomy Id’s’ is closed to new replies.