Set up Magento B2B module

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:

  1. On your local workstation, change to the Cloud project root directory.

  2. Create or checkout a development branch. See branching.

  3. Add the B2B module to the require section of the composer.json file.

    1
    
    composer require magento/extension-b2b --no-update
    
  4. Update the project dependencies.

    1
    
    composer update
    
  5. Add, commit, and push code changes.

    1
    
    git add -A
    
    1
    
    git commit -m "Install the B2B module."
    
    1
    
    git push origin <branch-name>
    
  6. After the build and deploy finishes, use SSH to log in to the remote environment and verify that the B2B module installed.

    1
    
    bin/magento module:status Magento_B2b
    

    An extension name uses the format: <VendorName>_<ComponentName>.

    Sample response:

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

To extend functionality, see the Magento B2B Developer Guide and the Extension Guide.