• Resolved matogen

    (@matogen)


    Hi

    Great plugin and works for most of the website but does it actually limit users on the front end with specific roles to only display certain products on the Woocommerce shop? Its not currently working and I have tried limiting specific products but all of them still display in the Woocommerce Shop page.

    Is this possible because this is the only reason I might have to look for alternative plugins for 90% of the site its working perfectly.

    Kind Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter matogen

    (@matogen)

    PS: I did try to create a separate Shop page and limiting the product on the page itself. It works but the URLs redirect to the default Woocommerce shop page instead of the created page.

    Thanks!

    Thread Starter matogen

    (@matogen)

    Apologies just read the Archive pages will still show the data even after being limited to a specific user. Is there any other possible way just for me to be able to know what user is logged in and then hide the necessary products?

    Plugin Author Joachim Jensen

    (@intoxstudio)

    Thank you for reporting this, and you are correct that the plugin unfortunately doesn’t support hiding restricted items on archive pages.

    If you want to hide an item in a theme template, you could use the following code in The Loop:

    $level_id = 0; //change to the level id a user needs to see items
    if(rua_has_user_level(get_current_user_id(),$level_id)) {
        //display restricted item
    } else {
        //display nothing, or a custom message saying item is restricted
    }

    Let me know if this helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trouble limiting user roles to only show specific products on Woocommerce Shop’ is closed to new replies.