Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/jamesonrgrieve/wp-woo-b2b-companies/archive/refs/heads/main.zipB2B for WooCommerce: companies, locations, buyers, payment terms, group pricing and catalogs.
A companion to wp-woo-idempotent-importer: the importer mirrors stores from Shopify, BigCommerce, Squarespace, Wix, Magento, Lightspeed, Ecwid, Etsy and Square into WooCommerce, and must enforce everything the source store enforced. Where WooCommerce can't hold a concern natively, a companion plugin like this one holds it, one plugin per concern.
Scope
- Companies with their locations and buyers.
- Payment terms (net 30 etc.), with orders on terms at checkout.
- Customer groups, group and company price lists, and restricted catalogs.
- Tax exemptions.
Contract
- A stable data model and a PHP API the importer writes into idempotently: an unchanged source causes zero writes.
- Usable on its own as a WooCommerce plugin, with an admin UI to view and edit its records.
- Requires WooCommerce; it does nothing until they are active.
Status
Scaffold: the plugin boots, checks its required plugins and runs the full quality gate. The features above are tracked on its Deck card (http://192.168.1.12/index.php/apps/deck/board/3/card/402).
Development
composer install # also wires the pre-commit hook
composer check # lint, format, PHPStan max, unit tests, audit, validate
License
AGPL-3.0-or-later.