Pinelab Plugins Pinelab
# Install this plugin
npm install @pinelab/vendure-plugin-public-customer-groups

Vendure Public Customer Groups

This plugin adds a custom field isPublic to CustomerGroups, so that we can determine if a CustomerGroup is publicly available. It also adds a GraphQL field Customer.customerGroups that returns the public customerGroups to the Shop API.

Getting started

Add the plugin to your vendure-config.ts:

import { PublicCustomerGroupsPlugin } from '@pinelab/vendure-plugin-public-customer-groups';
plugins: [PublicCustomerGroupsPlugin];

Run a database migration to add the isPublic custom field to Customer Group.

In the admin UI, under customer groups, you can now expose a customer group by setting isPublic=true.

Security

We try to keep plugins small and focussed, with minimal external dependencies: preferably none. Most of our plugins are using NPM Trusted Publishing with OIDC, and the ones that aren't are in the process of being migrated.

Need help? Get In Touch