• Resolved Sam

    (@sammazza)


    I am not sure this questions belongs here. But it seems that the default Group for a visitor on a site (even one that has not logged in) is Registered. Is that how it is supposed to be? if so, how do I distinguish between a logged in and not logged in visitor?

    https://www.ads-software.com/plugins/groups/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author itthinx

    (@itthinx)

    The Registered group is the default group to which users (i.e. those with an account on the site) belong. Plain visitors (not logged in) do not belong to that group.

    The answer to your question depends on what you want to do with that information. If it’s displaying content to someone who is logged in while the same content should be hidden from a normal visitor, then you could use:

    [groups_member group="Registered"]
    Only registered users can see this.
    [/groups_member]

    Read more here: https://www.itthinx.com/documentation/groups/shortcodes/

    Thread Starter Sam

    (@sammazza)

    Thank you for the quick answer. The issue is that with wooCommerce, if I use a Group attribute to made some decisions, the visitor who is not signed on on is not listed in Users. Maybe there should be a Guest value to users who make a purchase in Groups?

    I am not sure how the User and Group functionality interact but it seems that it might be useful to have a Group value attributed to Guests.

    is there a way to add a group for guests?

    Plugin Author itthinx

    (@itthinx)

    Within Groups’ context, it wouldn’t make sense to have a group for guests.

    One approach to show something for guests would be the exclusion equivalent of the short code mentioned before:

    [groups_non_member group="Registered"]
    Only those who don't belong to the Registered group can see this.
    [/groups_non_member]

    And of course you can also use a dedicated shortcode like shown here.

    I’m using groups to set product pages to visible/hidden. The default is to hide the product unless a group is specified for that product. So the issue is, I want people not logged in to also see products, so I need a group for that. To create a group, I need a role to assign to the group. So I’m looking for an anonymous role or something that I can assign to a group that includes users not logged in.

    Any suggestions?

    FYI, I just created a new topic for my question since this topic was resolved already. https://www.ads-software.com/support/topic/add-anonymous-user-not-logged-in-to-group?replies=1

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Registered Group’ is closed to new replies.