• Resolved kristinubute

    (@kristinubute)


    Hi

    When an unauthorised person accesses a particular page that is setup with restrictions based on MEMBERS – Role being MEMBERSHIP2021 within your plugin, it just shows blank (which is OK I suppose) but HOW can I show a simple “You are NOT authorised to view this page” OR redirect to a particular page or something, when someone unauthorised tries to view the page ?

    I am trying to rule out also in case Google picks up on a page that NO-ONE else is supposed to see (unless they are an authorised MEMBER) and IF someone finds it and clicks on it, that they at least get a message “You are NOT authorised to view this page” or something. They are NOT allowed to view the content at all so at least if we get a message clearly then it is piece of mind for all of us.

    ALSO can we restrict All Shop Pages ONLY (Woocommerce) for Logged in Users in the MEMBERS – Role being MEMBERSHIP2021 ?

    ALSO can your plugin CLOSE the SHOP completely when not required ? Is there a setting for that (I am guessing no but thought I would ask). My client doesn’t want the public to see ANYTHING in the SHOP pages at all ever .. so if I restrict with your pluginn the WHOLE SHOP that would work … and then my client ONLY wants sell to the MEMBERS 4 times a year (for 2 weeks at a time) and that’s all. Is this a possibility to CLOSE THE SHOP completely for EVERYONE with your plugin ?

    Thanks in advance

    Regards
    kristin

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    You can go to the edit screen for the Access Level in question, click on the Options tab and look at the “Non-member Action”. Here you can choose whether to redirect unauthorized users to another page, or include the content of another page.

    All you have to do then is to create another page containing “You are NOT authorised to view this page”.

    This will also cover visitors coming from Google, including the Google crawler that indexes pages.

    ALSO can we restrict All Shop Pages ONLY (Woocommerce) for Logged in Users in the MEMBERS – Role being MEMBERSHIP2021 ?

    Yep ?? See how to set that up here https://dev.institute/docs/restrict-user-access/conditions/post-types/

    ALSO can your plugin CLOSE the SHOP completely when not required ?

    Yes, you can create another level and use the condition from the link above, then make sure that no users are members of this level, i.e. everyone is unauthorized.

    I hope this helps!

    Thread Starter kristinubute

    (@kristinubute)

    Hi Joachim

    I love your little plugin. Just to clarify as I’m in the settings now

    If I go to “MEMBERS” tab and want to RESTRICT MEMBERS OR NON-MEMBERS “NOT LOGGED IN” basically which means it is anyone whether a member or non-member that is NOT logged in .. I want to RESTRICT ALL NOT to see the SHOP & ALL Products 4 times a year. Is this the best section to do this in ?

    and when I go to the “ACCESS CONDITIONS” area, I see I can choose “SHOP” here, HOW can I choose to “NOT ALLOW” those that are “NOT LOGGED IN” not to see the shop and all products ? It ONLY seems to allow them to SEE the SHOp & Products but I need to disallow them for that rule.

    I hope I’m making sense and not sounding confusing in my explanation.

    It gives me the option to ALLOW all to see, but I can’t see where I can do the opposite ?

    Or do I create a Rule in the “ACCESS CONDITIONS” as a workaround ? I can’t seem to get that part to work .

    And there is an “EXCEPTION” button here what does that mean ?

    Thanks in advance for responding

    Regards
    Kristin

    Plugin Author Joachim Jensen

    (@intoxstudio)

    It sounds like you are on the right track, but instead of looking at “who should not be able to see” some content, think of “who should have exclusive access to see”.

    So in your case, because you want non-logged in users to NOT see your shop and products, create a new level and sync it with Logged-in Users.

    Add these conditions to that level:
    Products: All
    OR
    Product Categories: All
    OR
    Product Tags: All

    Because only logged-in users are members of this level, everyone else (i.e. logged-out users) will be unauthorized and redirected to the page selected as Non-member action.

    When you want to lockdown the shop completely, edit the level and sync it with the Administrator role instead.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Restrict Shop Content & pages’ is closed to new replies.