If your customers are companies, you can install the Magento Commerce for B2B module to extend your Magento Commerce Cloud Pro project to accommodate a business-to-business model. Although this topic provides information specific to installing and configuring the B2B module for Magento Commerce Cloud, you can find additional B2B information in the following guides:
Because we provide B2B as a module for Magento Commerce Cloud, we highly recommend that you have your Magento application fully deployed to an Integration or Staging environment before beginning.
Install B2B module
We recommend working in a development branch when adding the B2B module to your project. If you do not have a branch, see the Get started creating branches topic. When installing the B2B module, the
Magento_B2b module name is automatically inserted in the
app/etc/config.php file. There is no need to edit the file directly.
To install the B2B module:
On your local workstation, change to the Cloud project root directory.
Create or checkout a development branch. See branching.
Add the B2B module to the
requiresection of the
composer require magento/extension-b2b --no-update
Update the project dependencies.
Add, commit, and push code changes.
git add -A
git commit -m "Install the B2B module."
git push origin <branch-name>
After the build and deploy finishes, use SSH to log in to the remote environment and verify that the B2B module installed.
bin/magento module:status Magento_B2b
An extension name uses the format:
Module is enabled
If you encounter deployment errors, see extension deployment failure.
Enable the B2B module
When you install the B2B module using Composer, the deployment process automatically enables the module. If you already have the B2B module installed, you can enable or disable the module using the CLI. See Manage extensions.
Configure the B2B module
After installing the Magento Commerce for B2B module, you must start the message consumers so that you can enable the Shared Catalog module, and you must enable the B2B module in the Magento Admin panel.
For additional information on using and configuring B2B, review the Magento B2B User Guide.