• Resolved rpalach

    (@rpalach)


    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 to see the link]

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

    (@rpalach)

    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

    (@kostarados)

    I’m having the same issue, it seems the ‘not logged-in’ synchronized role is not working?

    Plugin Author Joachim Jensen

    (@intoxstudio)

    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

    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.