Skip to content

generoi/b2b-roles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

B2B Roles

Registers B2B user roles and capabilities.

Roles

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.

Installation

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-roles

Development

composer install
composer lint       # check code style
composer lint:fix   # apply fixes

Releasing

gh 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.

About

Registers B2B user roles and capabilities.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages