PHPackages                             thelia/group-order-module - 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. thelia/group-order-module

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

thelia/group-order-module
=========================

1.0.0(5mo ago)0201LGPL-3.0+PHPCI passing

Since Jan 20Pushed 1mo ago6 watchersCompare

[ Source](https://github.com/thelia-modules/GroupOrder)[ Packagist](https://packagist.org/packages/thelia/group-order-module)[ RSS](/packages/thelia-group-order-module/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Group Order
===========

[](#group-order)

This Module allow you to create group orders

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

[](#installation)

### Manually

[](#manually)

- Copy the module into `/local/modules/` directory and be sure that the name of the module is GroupOrder.
- Activate it in your thelia administration panel

### Composer

[](#composer)

Add it in your main thelia composer.json file

```
composer require thelia/group-order-module:~0.0.1

```

Usage
-----

[](#usage)

During register or in back office you have the possibility to create Main Customers. A main customer can create sub-customers and can fill the cart of the sub-customer.

A sub-customer can connect via the login and password set by the main customer, they have restricted right, they can add items to their cart and once they decide to validate their cart, the cart is sent to the cart of the main-customer.

Hook
----

[](#hook)

### Front

[](#front)

- `register.form-bottom` is used to add the main customer checkbox on the register page
- `account.additional` and `account.javascript-initialization` is used to add the new panel allowing a main customer to create sub customers
- `main.footer-bottom`, `main.stylesheet` and `main.javascript-initialization` is used to display the sticky window for main customers
- `login.main-bottom` is used to add the login form for sub customers connections

### Back

[](#back)

- `customer.edit-js` is used to add the main customer checkbox on the customer edit page

Loop
----

[](#loop)

\[group\_order\_sub\_customer\]

### Input arguments

[](#input-arguments)

ArgumentDescription**id**id of a sub customer**main\_customer**id of the main customer**login**login of a sub customer### Output arguments

[](#output-arguments)

VariableDescription$IDid of the sub customer$MAIN\_CUSTOMER\_IDid of the main customer$FIRSTNAMEfirst name of the sub customer$LASTNAMElast name of the sub customer$EMAILemail of the sub customer$ADDRESS1address of the sub customer$ADDRESS2address2 of the sub customer$ADDRESS3address3 of the sub customer$CITYcity of the sub customer$ZIPCODEzip code of the sub customer$COUNTRY\_IDid of the country$LOGINlogin of the sub customer### Exemple

[](#exemple)

```

    {loop type="group_order_sub_customer" name="my_group_order_sub_customer_loop" main_customer=$mainCustomerId}
        {$FIRSTNAME} {$LASTNAME}
    {/loop}

```

\[group\_order\_main\_customer\]

### Input arguments

[](#input-arguments-1)

ArgumentDescription**id**id of a main customer**sub\_customer\_id**id of a sub customer linked to a main customer**customer\_id**id of a customer linked to a main customer**active**if the main customer is active or not### Output arguments

[](#output-arguments-1)

VariableDescription$IDid of the main customer$CUSTOMER\_IDid of the customer linked to this main customer### Exemple

[](#exemple-1)

```
{loop type="group_order_main_customer" name="main_customer_loop" customer_id=$customer_id active=true}
    {assign "isMainCustomer" 1}
{/loop}

```

\[group\_order\_sub\_order\]

### Input arguments

[](#input-arguments-2)

ArgumentDescription**id**id of a sub order**sub\_customer**id of a sub customer**group\_order**id of the main order### Output arguments

[](#output-arguments-2)

VariableDescription$IDid of the sub order$SUB\_CUSTOMER\_IDid of the sub customer$GROUP\_ORDER\_IDid of the main order$PRODUCT\_IDSids of the product of this sub order$ORDER\_NUMBERRef of the main order$DATECreation date$AMOUNTtotal price of this sub order### Example

[](#example)

Add a complete exemple of your loop

Smarty plugin
-------------

[](#smarty-plugin)

### groupOrderSubCustomerName

[](#groupordersubcustomername)

#### Input arguments

[](#input-arguments-3)

ArgumentDescription**item\_id**id of a cart item**order\_product\_id**id of an order product#### Output arguments

[](#output-arguments-3)

VariableDescription$subCustomerNamefirst name and last name of a sub customer

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance83

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

Every ~126 days

Total

2

Last Release

38d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2196919?v=4)[thelia](/maintainers/thelia)[@thelia](https://github.com/thelia)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/thelia-group-order-module/health.svg)

```
[![Health](https://phpackages.com/badges/thelia-group-order-module/health.svg)](https://phpackages.com/packages/thelia-group-order-module)
```

PHPackages © 2026

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