thelia/easy-customer-manager-module

EasyCustomerManager module for Thelia

Installs: 355

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 8

Forks: 4

Open Issues: 0

Language:HTML

Type:thelia-module

2.0.1 2024-05-24 13:33 UTC

This package is auto-updated.

Last update: 2024-10-24 14:17:14 UTC


README

Add a short description here. You can also add a screenshot if needed.

Installation

Manually

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

Composer

Add it in your main thelia composer.json file

composer require thelia/easy-customer-manager-module:~1.0

Usage

Once activated, you will see a new menu link in Thelia's Back Office. This new page allows you to easly manage all cutsomers thanks to filters and search bars. This module uses Datables.

Events

You can use 2 events to add filters to this module :

BeforeFilterEvent::CUSTOMER_CUSTOMER_BEFORE_FILTER
TemplateFieldEvent::CUSTOMER_CUSTOMER_TEMPLATE_FIELD

In BeforeFilterEvent you have access to the customer query and request.

In TemplateFieldEvent you can use the function addTemplateField(fieldName, templateName) to add a template with your new filter in it. You just need to add js-filter-element class to your filter input. Make sure that fieldName is one of the column names defined in BackController defineColumnsDefinition() of this module.