composer require tomaivanovtomov/yii2-order "1.0.6"
'modules' => [
....
'orders' => [
'class' => 'tomaivanovtomov\order\Module',
],
....
],
php yii migrate/up --migrationPath=@vendor/tomaivanovtomov/yii2-order/migrations
\tomaivanovtomov\order\OrderAssets::register($this);
Image path is set to www.example.com/frontend/web
.
CRUDs and index action:
orders/order/index
orders/currency/index
orders/payment-type/index
orders/status/index
'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.