Okay
  Public Ticket #4525628
Simple way to see user group products
Open

Comments

  •  1
    Benjamin Jessen started the conversation

    My shop sells clothing, and while a majority of customers in user groups make their purchases through our webshop, some live close by and prefer to come in in person to try sizes and whatnot. Specific user groups have restrictions on what their users are allowed to buy, and currently, the only way I have found to easily see what they are permitted to buy is to make a user for their group that I can then log on to.

    Assuming a solution does not already exist, I would like to make a page on our website (this can only be seen and accessed by admins/superadmins) that has a dropdown which contains every user group by name (preferably alphabetically), and when chosen, it will load in every product that user group has access to, presumably utilizing a querystring based on the user group ID.

    Is this possible to do, and if so, where do I start? I would need to be able to get all groups programmatically for the dropdown list, and then I would need to be able to take the ID from a given group and feed it to a product list/archive in a way that makes it show only that group's products, instead of going off of whatever permissions the current logged in user has.