Customer Managed Groups

Customer Managed Groups

Allow customers to manage their own groups. Customer Managed Groups can have Group Admins and Group members.

npm install @pinelab/vendure-plugin-customer-managed-groups
Latest version1.5.0
Compatibility>=2.2.0
Last publishedDec 20, 2024
Pinelab
PinelabWebshops for mission-driven brands and wholesalers

This plugin allows customers to manage their own groups, called Customer Managed Groups. Customer Managed Groups can have Group Admins and Group members.

  • Group admins and members are stored as Vendure's built-in customers, and the groups are the built-in Customer Group entities.
  • Customers can only be in one group, and they are either group participant or group admin. (Customers can still be in multiple)
  • Customers can create groups and add other non-admin customers to their group. Adding others to your group automatically makes you administrator of the group.
  • Group Admins can fetch placed orders for everyone in the group.
  • Group Admins can update profile details of members of their group.

Getting started

Add the plugin to your config:

You can create your own group via the Shop API, if you are logged in as a customer, by inviting another customer by email:

You can also remove participants again, by passing in the customer id that should be removed:

Admins are allowed to fetch orders of all customers in a group. You can do this with the following query:

These are all the GraphQL queries and mutations exposed by this plugin:

Contributions

Thanks @mschipperheyn for his contributions on this plugin.