thienhungho/yii2-customer-management

Yii2 Customer Management

v1.0.5 2018-12-18 12:02 UTC

This package is auto-updated.

Last update: 2024-04-30 00:54:48 UTC


README

Customer Management System for Yii2

This is just an example, memorible moment. The source code may not work for known reasons. This source code include against loss license feature.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist thienhungho/yii2-customer-management "*"

or add

"thienhungho/yii2-customer-management": "*"

to the require section of your composer.json file.

Migration

Run the following command in Terminal for database migration:

yii migrate/up --migrationPath=@vendor/thienhungho/CustomerManagement/migrations

Or use the namespaced migration (requires at least Yii 2.0.10):

// Add namespace to console config:
'controllerMap' => [
    'migrate' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationNamespaces' => [
            'thienhungho\CustomerManagement\migrations\namespaced',
        ],
    ],
],

Then run:

yii migrate/up

Config

Add module CustomerManage to your AppConfig file.

...
'modules'          => [
    ...
    /**
     * Block Manage
     */
    'customer-manage' => [
        'class' => 'thienhungho\CustomerManagement\modules\CustomerManage\CustomerManagerModule',
    ]
    ...
],
...

Modules

CustomerBase, CustomerManage

Functions

Core

Models

Customer, CustomerBillingAddress, CustomerNote, CustomerReminders, CustomerShippingAddress