Skip to content

zzuutt/CustomerBirthDate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CustomerBirthDate

Add a date of birth input in customers' forms

Installation

Manually

  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is CustomerBirthDate.
  • Activate it in your thelia administration panel

Composer

Add it in your main thelia composer.json file

composer require thelia/customer-birth-date-module:~1.1

Usage

Once activated, inputs asking for customer's birth date appear:

  • in the customer register page
  • in the customer update account page
  • in the admin 'create customer' form
  • in the admin 'customer' page

Loop

customerbirthdate

Input arguments

Argument Description
id The customer id you want to diplay the date of birth

Output arguments

Variable Description
$CUSTOMER_ID The ID of the customer
$BIRTHDATE The date of birth of the customer. Format: yyyy-mm-dd

### Exemple

{loop type="customerbirthdate" name="birth_date"}

Customer ID: {$CUSTOMER_ID} | Date of birth : {$BIRTHDATE}

{/loop}

About

Add a date of birth input in customers' forms

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 95.6%
  • HTML 4.4%