Skip to content

TomaIvanovTomov/yii2-order

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STILL IN DEVELOPMENT!!!!

Installation

composer require tomaivanovtomov/yii2-order "1.0.6"

Configuration

Add the Module class to `config.php`:
'modules' => [
    ....
    'orders' => [
        'class' => 'tomaivanovtomov\order\Module',
    ],
    ....
],

Add migrations

Migrate tables
php yii migrate/up --migrationPath=@vendor/tomaivanovtomov/yii2-order/migrations

Register assets

Register order assets on top of your `layout\main.php`
\tomaivanovtomov\order\OrderAssets::register($this);

Image path is set to www.example.com/frontend/web .

Usage

CRUDs and index action:

orders/order/index
orders/currency/index
orders/payment-type/index
orders/status/index

Multilingual part

Copy these line in `params.php`:
'language-information' => [
    'BG' => [
        'title' => 'Български',
        'extension' => 'bg',
    ],
    'EN' => [
        'title' => 'English',
        'extension' => 'en',
    ],
],
'languageDefault' => 'bg'

This portion of code is linked with the multilingual model functionality. You can override the model and adapt it to your needs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages