Magento 2 Wholesale and Dealer Extension

Magento 2 Wholesale and Dealer Extension User Guide

Configure a dedicated B2B storefront, register wholesale customers, assign products, set customer group prices, and control catalog access in Magento 2.4.8.

View Product Page

Who This Guide Is For

This guide is for Magento store owners and administrators who operate separate retail and wholesale channels for dealers, distributors, resellers, or other B2B customers.

Features of the Wholesale Extension

  • Dedicated B2B Storefront: Create or repair a separate wholesale website, store group, and active store view.
  • Wholesale Registration: Send B2B visitors to a dedicated registration form and assign the configured wholesale customer group.
  • Customer Group Pricing: Use Magento Advanced Pricing to set prices for wholesale customer groups without duplicating products.
  • Website Assignment: Assign products to the B2B website under Product in Websites.
  • Controlled Access: Reject retail-customer login on a wholesale-only website when that restriction is configured.
  • Optional Customer Activation: Require administrator approval before selected customers can sign in when the companion feature is installed and enabled.
  • Optional Hide Price: Replace prices with configurable text or a login link for selected visitors or customer groups.
  • Optional Catalog Login: Restrict catalog, category, product, and search access when the companion feature is installed and enabled.

Wholesale Configuration

From Magento Admin, go to Stores > Configuration > Agile Codex > Wholesale Settings.

Magento 2 wholesale website configuration in Admin
Select whether wholesale behavior should use an existing website or a separate B2B website.

Create or Select the Wholesale Website

  1. Set Wholesale Type to Wholesale Website when B2B customers should use a dedicated website.
  2. Choose Select Existing Website if the website already exists.
  3. Choose Create New Website and click Create Now to provision the B2B website.
  4. Save the configuration after confirming the selected website and customer access settings.

The Create Now action provisions or repairs the B2B website, store group, and active store view. It should complete missing parts without creating duplicate website records.

Create a Magento 2 B2B website with the Create Now action
Use Create Now when the B2B website has not yet been created or needs repair.

Customer Registration and Access Settings

  • Wholesale Customer Group: Select the group assigned to customers who register through the wholesale form.
  • Customer Activation: Optionally require admin approval before wholesale customers can sign in.
  • Show Address Fields: Include company, phone, street, city, region, postcode, and country fields on the registration form.
  • Show Tax/VAT Number: Make the Tax/VAT field optional, required, or hidden according to the B2B workflow.
  • Hide Price/Catalog: Apply visibility rules at website scope when the optional companion features are enabled.
Magento 2 wholesale customer group and access settings
Set the wholesale group and choose which registration and access controls apply.

Verify the B2B Website, Store Group, and Store View

After website provisioning, confirm the result under Stores > All Stores.

  • The website should have a clear B2B website code.
  • The website should contain a store group with the intended root category.
  • The store group should contain an active store view.
  • Review the website base URLs before testing the storefront.
Magento 2 B2B website store group and active store view
A correctly provisioned B2B website includes a website, store group, and active store view.

Assign Products to the B2B Website

  1. Open the product in Catalog > Products.
  2. Expand Product in Websites.
  3. Select the B2B website along with any retail website where the product should remain available.
  4. Save the product and reindex catalog data when Magento marks indexes invalid.

A product must be assigned to the B2B website before it can appear in that storefront. Also confirm that the B2B store group root category contains the category assigned to the product.

Assign a Magento 2 product to the B2B website
Select the B2B website in Product in Websites before validating storefront visibility.

Configure Customer Group Price and Tier Price

Wholesale pricing is normally configured from Catalog > Products > Advanced Pricing > Customer Group Price.

  1. Edit the product and open Advanced Pricing.
  2. In Customer Group Price, click Add.
  3. Choose the appropriate website and the Wholesale customer group.
  4. Set the quantity and price.
  5. Click Done, then save the product.
Magento 2 customer group price configuration in Advanced Pricing
Add a Customer Group Price row for the Wholesale group and selected website.

Pricing Terms

  • Customer Group Price: A special price for the Wholesale customer group.
  • Tier Price: A price that also depends on purchased quantity.
  • Hide Price: Prevents selected visitors or groups from seeing a product price.
  • Catalog Login: Restricts catalog, category, product, or search access.

Wholesale Registration

On a configured wholesale website, use the canonical registration route /wholesale/account/create/. Customers created through this form are assigned to the configured wholesale customer group.

If Customer Activation is enabled, new wholesale accounts must be approved by an administrator before the customer can sign in. If it is disabled, customers can use the account according to the normal Magento customer workflow.

Magento 2 wholesale customer registration form with company and tax fields
The wholesale registration form can include company, phone, address, and Tax/VAT fields.

Login and Customer Access Behavior

  • Guest: Can access pages allowed by the current catalog and hide-price configuration.
  • Retail customer: Is rejected on a wholesale-only website when retail-login restriction is configured.
  • Approved wholesale customer: Can sign in and access permitted B2B catalog and account areas.
  • Unapproved wholesale customer: Remains blocked until administrator approval when Customer Activation is enabled.

Optional Hide Price

Hide Price is optional and package-dependent. When enabled, go to Stores > Configuration > Agile Codex > Hide Price and configure the replacement text, link URL, and customer-group behavior.

Configure Magento 2 Hide Price and login link
Configure the replacement text and login link shown when product prices are hidden.
Magento 2 B2B product price hidden from a guest customer
“Login to View Price” is shown because Hide Price is enabled.

Optional Catalog Login

Catalog Login is optional and package-dependent. Use it when guests or selected customer groups should be redirected before viewing category pages, product pages, catalog search, or other catalog areas.

Catalog Login is separate from Hide Price. Hide Price leaves the product visible and replaces the price; Catalog Login controls whether the visitor can access catalog pages at all.

Installation

Install and test the extension on a development or staging environment before production.

  1. Copy the supplied package modules into app/code/Acx.
  2. Enable only the modules included in your purchased package.
  3. Run php bin/magento setup:upgrade.
  4. Run php bin/magento setup:di:compile in production mode.
  5. Deploy static content when required.
  6. Run php bin/magento cache:flush.

Customer Activation, Hide Price, and Catalog Login are optional/package-dependent features. Confirm the modules included in your purchased package before enabling related configuration.

Troubleshooting

  • No products appear on B2B: Check Product in Websites, the B2B root category, product status, visibility, stock, and indexes.
  • Wholesale price does not appear: Confirm the Customer Group Price row, selected website, quantity, customer group, and catalog price index.
  • Guest can browse B2B unexpectedly: Verify wholesale website selection and any optional Catalog Login or Hide Price configuration.
  • Wholesale customer cannot sign in: Confirm customer group, website/account-sharing scope, approval status, and password.
  • Registration opens the wrong page: Confirm the configured website and use the canonical /wholesale/account/create/ route.
  • Create Now was already used: Run it again only when the B2B website, store group, or store view is missing; it should repair the setup without duplicates.

Ready to simplify your wholesale workflow in Magento?

Create a B2B storefront, register wholesale customers, assign products, and manage customer group pricing in one Magento workflow.

  • ✔ Dedicated B2B storefront setup
  • ✔ Wholesale customer registration and group assignment
  • ✔ Customer Group Price and tier pricing workflow
  • ✔ Product assignment to the B2B website
  • ✔ Optional customer approval and catalog access controls

30-day money back guarantee • Free lifetime updates • 30 days free support

SUPPORT

For further assistance, please send your query through the Contact AgileCodex Support page.

Magento 2 project support

Tell us what you want to improve in your Magento store.

Share the issue, feature idea, integration, upgrade, or support need. We will review the scope and suggest a practical next step for your store.