Title: Restrict Product Attributes
Last modified: October 30, 2019

---

# Restrict Product Attributes

 *  Resolved [rpalach](https://wordpress.org/support/users/rpalach/)
 * (@rpalach)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/restrict-product-attributes/)
 * Hello,
 * I am trying to restrict a product attribute to non-logged in users but I can’t
   seem to get it working properly. Do you have any links to provide assistance?
   Thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frestrict-product-attributes%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [rpalach](https://wordpress.org/support/users/rpalach/)
 * (@rpalach)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/restrict-product-attributes/#post-12081806)
 * I currently have this set-up:
 * 1.Access conditions
    Meet all of these conditions: Product Categories: All AND
   Product Feature: Specials
 * 2.Members
    Synchronized Role Not logged-in
 * 3. Capabilities
    read_product: denied
 * 4. Options
    Do not extend Redirect: My Account
 *  [kostarados](https://wordpress.org/support/users/kostarados/)
 * (@kostarados)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/restrict-product-attributes/#post-12094065)
 * I’m having the same issue, it seems the ‘not logged-in’ synchronized role is 
   not working?
 *  Plugin Author [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * (@intoxstudio)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/restrict-product-attributes/#post-12125048)
 * Thank you for reporting this.
 * When you select a product attribute in the access conditions, it means that products
   with the selected attributes should be restricted for users without the level.
   It does not prevent the product attributes from being displayed.
 * It can be done by adding a small snippet to your theme template:
 *     ```
       if(rua_get_user()->has_level(rua_get_level_by_name('name-of-level'))) {
           //display product attribute
       } else {
           //do not display product attribute
       }
       ```
   
 * I hope this helps!
 * [@kostarados](https://wordpress.org/support/users/kostarados/)
 * In case you are still having trouble with the plugin, can you create another 
   thread and explain the problem in more detail? That will make it easier to help.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Restrict Product Attributes’ is closed to new replies.

 * ![](https://ps.w.org/restrict-user-access/assets/icon-256x256.png?rev=1815922)
 * [Restrict User Access - Ultimate Membership & Content Protection](https://wordpress.org/plugins/restrict-user-access/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restrict-user-access/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restrict-user-access/)
 * [Active Topics](https://wordpress.org/support/plugin/restrict-user-access/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restrict-user-access/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restrict-user-access/reviews/)

 * 3 replies
 * 1 participant
 * Last reply from: [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/restrict-product-attributes/#post-12125048)
 * Status: resolved