Search by

shopper / customer-groups

Mckenziearts

Customer groups for Shopper: segment customers and target discounts and price lists by group

Package info

github.com/shopperlabs/customer-groups

pkg:composer/shopper/customer-groups

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-09-25 17:39 UTC

This package is auto-updated.

Last update: 2026-09-25 17:44:22 UTC


README

PHP Version Laravel Shopper Latest Version on Packagist Total Downloads License

Customer segmentation for Shopper: group your customers and target promotions by group, directly from the admin panel.

Features

  • Customer groups create, edit and toggle groups from the admin, under Customers.
  • Members management browse a group's members in a slide-over, add customers through the shared customer picker, remove them one by one or in bulk, and jump to a customer profile.
  • Discount eligibility reserve a promotion for one or more groups. The rule plugs into Shopper's discount eligibility registry, so validation, persistence and the admin form all work without patching the core.
  • API ready groups carry a public ULID identifier, ready to be exposed through the Store API.

Requirements

  • PHP 8.3+
  • Laravel 12.x or 13.x
  • Shopper 3.x

Installation

Require the package:

composer require shopper/customer-groups

Run the migrations:

php artisan migrate

Register the addon in your AppServiceProvider::register():

use Shopper\CustomerGroups\CustomerGroupsAddon;
use Shopper\Facades\Shopper;

Shopper::addons([
    new CustomerGroupsAddon,
]);

A Groups entry appears in the sidebar under Customers, and a Specific groups option is available in the discount eligibility settings.

Extending

The Livewire components can be replaced with your own:

Shopper::addons([
    (new CustomerGroupsAddon)->usingLivewireComponents([
        'customer-groups.index' => App\Livewire\CustomerGroupList::class,
    ]),
]);

License

Customer Groups is open-sourced software licensed under the MIT license.