PHPackages                             viraxpress/companyaccounts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. viraxpress/companyaccounts

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

viraxpress/companyaccounts
==========================

ViraXpress Company Accounts Module for Magento 2

1.0.0(3mo ago)01Apache-2.0PHPPHP ~8.1.0||~8.2.0||~8.3.0||~8.4.0

Since Apr 17Pushed 1mo agoCompare

[ Source](https://github.com/viraxpress/CompanyAccounts)[ Packagist](https://packagist.org/packages/viraxpress/companyaccounts)[ RSS](/packages/viraxpress-companyaccounts/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

ViraXpress\_CompanyAccounts
===========================

[](#viraxpress_companyaccounts)

> **B2B Company Account Management for Magento 2**
> Enable corporate purchasing with sub-user management, role-based permissions, and approval workflows — all linked under a single parent company account.

---

Table of Contents
-----------------

[](#table-of-contents)

- [Overview](#overview)
- [Key Features](#key-features)
- [How It Works](#how-it-works)
- [Role &amp; Permission System](#role--permission-system)
- [Installation](#installation)
- [Configuration](#configuration)
- [Frontend Behavior](#frontend-behavior)
- [Developer Notes](#developer-notes)
- [Compatibility](#compatibility)
- [Support &amp; License](#support--license)

---

Overview
--------

[](#overview)

ViraXpress CompanyAccounts transforms your Magento 2 store into a full-featured B2B platform. Once a customer is approved as a **Company Account**, they become a **Company Admin** with the ability to:

- Invite and manage **sub-users** under the same company umbrella
- Define **roles** with fine-grained permissions
- Control what each sub-user can see and do on the storefront
- Ensure **all orders placed by sub-users are automatically associated with the parent company account**

This makes it easy for purchasing managers, buyers, and department heads to operate under one company — with full audit visibility and centralized order tracking.

---

Key Features
------------

[](#key-features)

### Company Registration &amp; Approval

[](#company-registration--approval)

- Customers can apply to register a company account from the storefront
- Admin reviews and **approves or rejects** requests via the Magento backend
- Email notifications are sent at every stage: registration, approval, rejection, and sub-user invitations
- Approved companies are automatically mapped to a configured **Customer Group**

### Company Dashboard

[](#company-dashboard)

- Dedicated dashboard for company admins to manage users, roles, and company details
- Quick access to company orders, sub-user activity, and profile settings

### Sub-User Management

[](#sub-user-management)

- Company admins can **add, edit, and deactivate sub-users**
- Each sub-user is linked to the parent company account
- All orders placed by sub-users are **automatically created under the parent account** for centralized tracking

### Role &amp; Permission Control

[](#role--permission-control)

- Company admins create **custom roles** with specific permission sets
- Assign roles to individual sub-users
- Permissions control access to storefront navigation tabs, ordering capabilities, and account sections
- Sub-users only see the menu tabs and actions their role permits

### Order Management &amp; Approval Workflows

[](#order-management--approval-workflows)

- **Direct Ordering**: Certain roles can place orders immediately
- **Order for Approval**: Sub-users with restricted access can submit orders that require admin approval before processing
- **Access All Company Orders**: Roles can be granted visibility into all orders placed across the company
- All sub-user orders are always linked back to the parent company account

### Store View Restrictions

[](#store-view-restrictions)

- Company registration and features can be enabled per store view
- Useful for multi-store setups with separate B2B and B2C storefronts

---

How It Works
------------

[](#how-it-works)

```
Company Registration (Frontend)
        │
        ▼
Admin Review & Approval (Backend)
        │
        ▼
Company Account Created ──► Customer Group Assigned
        │
        ▼
Company Admin Logs In
        │
        ├──► Creates Roles & Assigns Permissions
        │
        └──► Invites Sub-Users ──► Sub-Users Assigned to Roles
                                          │
                                          ▼
                               Sub-User Places Order
                                          │
                                          ▼
                          Order Linked to Parent Company Account
                          (Approval workflow triggered if required)

```

---

Role &amp; Permission System
----------------------------

[](#role--permission-system)

The module ships with a structured permission tree. Company admins can mix and match permissions when creating custom roles.

### Permission Tree

[](#permission-tree)

CategoryPermission**Account Overview**Access Company DashboardDownload Digital PurchasesManage Wishlist Items**Address Management**Manage Addresses**Payment Settings**View Saved Payment Methods**User &amp; Role Management**Manage Sub-UsersManage User RolesView Sub-User Activity Logs**Order Processing**Create and Submit OrdersApprove Orders Submitted by OthersAccess All Company OrdersDirect Ordering Privilege### Navigation Tab Visibility

[](#navigation-tab-visibility)

Storefront navigation tabs are dynamically shown or hidden based on the sub-user's assigned role. For example:

- A sub-user **without** `Access All Company Orders` will not see the company orders menu item
- A sub-user **without** `Manage Sub-Users` will not see the user management section
- Sub-users are never shown the company admin controls

---

Installation
------------

[](#installation)

### Requirements

[](#requirements)

- Magento 2.4.x
- PHP 8.x compatible

### Via Composer

[](#via-composer)

```
composer require viraxpress/companyaccounts
```

### Enable &amp; Deploy

[](#enable--deploy)

```
php bin/magento module:enable ViraXpress_CompanyAccounts
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
```

---

Frontend Behavior
-----------------

[](#frontend-behavior)

### For Company Admins

[](#for-company-admins)

- Access the full **Company Dashboard** from the customer account sidebar
- Manage sub-users and roles under dedicated menu tabs
- View all orders placed by any sub-user in the company
- Edit company profile and addresses

### For Sub-Users

[](#for-sub-users)

- See only the navigation tabs permitted by their assigned role
- Place orders as themselves — all orders are automatically linked to the parent company
- If the role requires approval, orders enter an approval queue rather than processing immediately
- Sub-users cannot access or modify company settings, users, or roles unless explicitly permitted

### Custom Labels for B2B Tabs

[](#custom-labels-for-b2b-tabs)

When a sub-user is part of a company, certain tabs are relabelled for B2B context:

- **My Orders** → **Company Orders**
- **My Downloadable Products** → **Company's Digital Purchases**

Compatibility
-------------

[](#compatibility)

ComponentVersionMagento Open Source / Commerce2.4.xPHP8.1 / 8.2ViraXpress ThemeRecommended for full UI support---

Support &amp; License
---------------------

[](#support--license)

- **Documentation &amp; Support:**
- **License:** ViraXpress Proprietary License —

> Modifications to module files are discouraged to ensure seamless upgrades and compatibility with future releases. If you need to extend functionality, use Magento's standard plugin/preference/observer system in a separate custom module.

---

© 2026 ViraXpress. All rights reserved.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance86

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

99d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dfa4cf8adc10a78f5b538cdf399be5d1059c4cfecf5ca5e38e44351bcaf84367?d=identicon)[viraxpress](/maintainers/viraxpress)

---

Top Contributors

[![viraxpress](https://avatars.githubusercontent.com/u/179798477?v=4)](https://github.com/viraxpress "viraxpress (1 commits)")

### Embed Badge

![Health badge](/badges/viraxpress-companyaccounts/health.svg)

```
[![Health](https://phpackages.com/badges/viraxpress-companyaccounts/health.svg)](https://phpackages.com/packages/viraxpress-companyaccounts)
```

###  Alternatives

[mzur/kirby-uniform

A versatile Kirby plugin to handle web form actions.

26173.5k20](/packages/mzur-kirby-uniform)[stuttter/wp-multi-network

Provides a Network Management Interface for global administrators in WordPress Multisite installations.

23524.7k1](/packages/stuttter-wp-multi-network)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
