halumein / yii2-seller-work-station
Sellers's work-station
Installs: 140
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- dvizh/yii2-cart: *
- yiisoft/yii2: *
- yiisoft/yii2-bootstrap: *
- yiisoft/yii2-jui: ^2.0
This package is not auto-updated.
Last update: 2024-11-09 21:01:35 UTC
README
php composer require halumein/yii2-seller-work-station "*"
миграции:
php yii migrate --migrationPath=vendor/halumein/yii2-seller-work-station/migrations
В конфигурационный файл приложения добавить модуль cashbox
'modules' => [ 'sws' => [ 'class' => 'halumein\sws\Module', 'categoryModel' => 'dvizh\shop\models\Category', 'rightBlockWidgets' => [ [ 'widget' => '\dvizh\cart\widgets\ElementsList', 'settings' => ['columns' => '3', 'showCountArrows' => false, 'type' => 'full'] ], [ 'widget' => '\dvizh\promocode\widgets\Enter', 'settings' => null ], [ 'widget' => '\dvizh\cart\widgets\CartInformer', 'settings' => ['htmlTag' => 'span', 'text' => '{c} на {p}'] ], [ 'widget' => '\dvizh\order\widgets\OrderFormLight', 'settings' => ['useAjax' => true], ] ] ], //... 'components' => [ 'sws' => [ 'class' => 'halumein\sws\Sws', ], //... ]
Пример конфига с подключенными виджетами:
'modules' => [ 'sws' => [ 'class' => 'halumein\sws\Module', 'categoryModel' => 'dvizh\shop\models\Category', 'rightBlockWidgets' => [ [ 'widget' => '\dvizh\cart\widgets\ElementsList', 'settings' => ['columns' => '3', 'showCountArrows' => false, 'type' => 'full'] ], [ 'widget' => '\dvizh\promocode\widgets\Enter', 'settings' => null ], [ 'widget' => '\dvizh\cart\widgets\CartInformer', 'settings' => ['htmlTag' => 'span', 'text' => '{c} на {p}'] ], [ 'widget' => '\dvizh\order\widgets\OrderFormLight', 'settings' => ['useAjax' => true], ] ] ], //... ]
дальше обращаться по адресу sws/<имя_контроллера>