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.
Create or Select the Wholesale Website
- Set Wholesale Type to Wholesale Website when B2B customers should use a dedicated website.
- Choose Select Existing Website if the website already exists.
- Choose Create New Website and click Create Now to provision the B2B website.
- 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.
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.
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.
Assign Products to the B2B Website
- Open the product in Catalog > Products.
- Expand Product in Websites.
- Select the B2B website along with any retail website where the product should remain available.
- 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.
Configure Customer Group Price and Tier Price
Wholesale pricing is normally configured from Catalog > Products > Advanced Pricing > Customer Group Price.
- Edit the product and open Advanced Pricing.
- In Customer Group Price, click Add.
- Choose the appropriate website and the Wholesale customer group.
- Set the quantity and price.
- Click Done, then save the product.
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.
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.
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.
- Copy the supplied package modules into app/code/Acx.
- Enable only the modules included in your purchased package.
- Run php bin/magento setup:upgrade.
- Run php bin/magento setup:di:compile in production mode.
- Deploy static content when required.
- 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.