Skip to content

bcbrr/CustomerFamily

 
 

Repository files navigation

Customer Family

For create customer families

Compatibility

  • Thelia >= 2.2.0
  • For use on Thelia 2.1.x, use tag 1.1
  • For use on Thelia 2.0.x, use tag 1.0

Installation

Manually

  • 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

Composer

Add it in your main thelia composer.json file

composer require thelia/customer-family-module:~1.0

Usage

This module is visible in the BackOffice Customer Edit.

Loop customer_family

This loop returns client families

Input arguments

Argument Description Version
id family id 1.0
exclude_id exclude family id 1.0

Output values

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

Example

{loop type="customer_family" name="customer_family_loop" current_product=$product_id limit="4"}
    {$CODE} ({$TITLE_CUSTOMER_FAMILY})
{/loop}

Loop customer_customer_family

This loop returns customer family for specific customer

Input arguments

Argument Description Version
customer_id customer id 1.0
customer_family_id family id 1.0

Output values

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

Example

{loop type="customer_customer_family" name="customer_customer_family_loop" customer_id="4"}
    {SIRET}
{/loop}

Form customer_family_customer_create_form

This form extend customer_create_form

Fields

Name Type Required Version
customer_family_id integer true 1.0
siret string false 1.0
vat string false 1.0

Default

By default, two families are created

  • Particular
  • Professional

About

manage customer families

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 94.5%
  • HTML 5.2%
  • JavaScript 0.3%