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

ActiveThelia-module

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

1.0.0(3mo ago)0171LGPL-3.0+PHP

Since Sep 29Pushed 3mo 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 1w ago

READMEChangelog (1)Dependencies (1)Versions (3)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

39

—

LowBetter than 86% of packages

Maintenance78

Regular maintenance activity

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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

119d ago

### Community

Maintainers

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

### 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)
