For create customer families
- Copy the module into
<thelia_root>/local/modules/CustomerFamily
directory and be sure that the name of the module is CustomerFamily. - Activate it in your thelia administration panel
Add it in your main thelia composer.json file
composer require thelia/customer-family-module:~1.0
This module is visible in the BackOffice Customer Edit.
This loop returns client families
Argument | Description | Version |
---|---|---|
id | family id | 1.0 |
exclude_id | exclude family id | 1.0 |
Argument | Description | Version |
---|---|---|
CUSTOMER_FAMILY_ID | customer family id | 1.0 |
CODE | customer family code | 1.0 |
TITLE_CUSTOMER_FAMILY | customer family title | 1.0 |
{loop type="customer_family" name="customer_family_loop" current_product=$product_id limit="4"}
{$CODE} ({$TITLE_CUSTOMER_FAMILY})
{/loop}
This loop returns customer family for specific customer
Argument | Description | Version |
---|---|---|
customer_id | customer id | 1.0 |
customer_family_id | family id | 1.0 |
Argument | Description | Version |
---|---|---|
CUSTOMER_FAMILY_ID | customer family id | 1.0 |
CUSTOMER_ID | customer id | 1.0 |
SIRET | siret number | 1.0 |
VAT | vat number id | 1.0 |
{loop type="customer_customer_family" name="customer_customer_family_loop" customer_id="4"}
{SIRET}
{/loop}
This form extend customer_create_form
Name | Type | Required | Version |
---|---|---|---|
customer_family_id | integer | true | 1.0 |
siret | string | false | 1.0 |
vat | string | false | 1.0 |
By default, two families are created
- Particular
- Professional