Registers B2B user roles and capabilities.
| Role slug | Label | Capabilities |
|---|---|---|
b2b_customer |
B2B Customer | read, b2b_access |
New self-registrations start unverified. Admins verify them under Users → B2B customers.
Each verified customer can have a personal discount percentage (0–100). It is stored in user meta and applied to WooCommerce product prices (catalog, single product, cart, and checkout).
Administrators receive all plugin capabilities automatically.
Requires the Genero Satis repo in your consuming project's composer.json:
{
"repositories": [
{ "type": "composer", "url": "https://generoi.github.io/packagist" }
]
}Then:
composer require generoi/b2b-rolescomposer install
composer lint # check code style
composer lint:fix # apply fixesgh release create vX.Y.Z --title "vX.Y.Z" --notes "..."Publishing the release triggers .github/workflows/release.yml, which builds
the distribution zip and rebuilds the Satis index so the new tag becomes
installable via Composer.