diff --git b/.gitignore a/.gitignore new file mode 100644 index 0000000..ed6ac16 --- /dev/null +++ a/.gitignore @@ -0,0 +1 @@ +# Created by .gitignore support plugin (hsz.mobi) \ No newline at end of file diff --git b/Module.php a/Module.php new file mode 100644 index 0000000..9e06280 --- /dev/null +++ a/Module.php @@ -0,0 +1,31 @@ + + * @link http://skeeks.com/ + * @copyright 2010 SkeekS (СкикС) + * @date 31.03.2015 + */ +namespace skeeks\modules\cms\shop; + +use skeeks\cms\base\Module as CmsModule; + +/** + * Class Module + * @package skeeks\modules\cms\shop + */ +class Module extends CmsModule +{ + public $controllerNamespace = 'skeeks\modules\cms\shop\controllers'; + + /** + * @return array + */ + protected function _descriptor() + { + return array_merge(parent::_descriptor(), [ + "version" => "0.0.1-dev", + "name" => "Модуль интернет магазин", + ]); + } + +} \ No newline at end of file diff --git b/README.md a/README.md new file mode 100644 index 0000000..4e51305 --- /dev/null +++ a/README.md @@ -0,0 +1,37 @@ +Модуль для SkeekS cms +=================================== + +Игформация о модуле +------------------- + +Установка +------------ + +Модуль в планах на разработку. Пока - пустышка. + +1) Стандартная установка через composer + +``` +php composer.phar require --prefer-dist skeeks/cms-module-shop "*" +``` + +or add + +``` +"skeeks/cms-module-shop": "*" +``` + +to the require section of your `composer.json` file. + + +2) Установка миграций + +``` +php yii migrate @skeeks\modules\cms\shop\migrations +``` + + + +> [![skeeks!](https://gravatar.com/userimage/74431132/13d04d83218593564422770b616e5622.jpg)](http://www.skeeks.com) +Web development has never been so fun! +[www.skeeks.com](http://www.skeeks.com) diff --git b/assets/Asset.php a/assets/Asset.php new file mode 100644 index 0000000..3f4c9d4 --- /dev/null +++ a/assets/Asset.php @@ -0,0 +1,22 @@ + + * @link http://skeeks.com/ + * @copyright 2010 SkeekS (СкикС) + * @date 01.04.2015 + */ +namespace skeeks\modules\cms\shop\assets; +use skeeks\cms\base\AssetBundle; + +/** + * Class Asset + * @package skeeks\modules\cms\shop\assets + */ +class Asset extends AssetBundle +{ + public $sourcePath = '@vendor/skeeks/cms-module-shop/assets'; + + public $css = []; + public $js = []; + public $depends = []; +} diff --git b/assets/icons/shop.png a/assets/icons/shop.png new file mode 100644 index 0000000..20aea2e Binary files /dev/null and a/assets/icons/shop.png differ diff --git b/composer.json a/composer.json new file mode 100644 index 0000000..5f22117 --- /dev/null +++ a/composer.json @@ -0,0 +1,31 @@ +{ + "name": "skeeks/cms-module-shop", + "description": "Модуль интернет магазин SkeekS cms", + "keywords": ["module", "cms", "skeeks", "sx", "app", "yii2", "catalog", "shop"], + "homepage": "http://www.skeeks.com/", + "type": "yii2-extension", + "license": "BSD-3-Clause", + "support": { + "issues": "http://www.skeeks.com/", + "wiki": "http://git.skeeks.com/skeeks/cms-module-shop/tree/master/docs/guide-ru", + "wiki-cms": "http://git.skeeks.com/skeeks/cms/tree/master/docs/guide-ru", + "source": "http://git.skeeks.com/skeeks/cms-module-shop" + }, + "authors": [ + { + "name": "Semenov Alexander", + "email": "semenov@skeeks.com" + } + ], + "minimum-stability": "dev", + "require": { + "skeeks/cms": "*", + "skeeks/cms-module-catalog": "*", + "skeeks/cms-module-money": "*" + }, + "autoload": { + "psr-4": { + "skeeks\\modules\\cms\\shop\\": "" + } + } +} \ No newline at end of file diff --git b/config/admin/menu.php a/config/admin/menu.php new file mode 100644 index 0000000..d5d3020 --- /dev/null +++ a/config/admin/menu.php @@ -0,0 +1,31 @@ + + * @link http://skeeks.com/ + * @copyright 2010 SkeekS (СкикС) + * @date 12.03.2015 + */ +return [ + 'catalog' => + [ + 'label' => 'Интернет магазин', + 'priority' => 0, + + "img" => ['\skeeks\modules\cms\shop\assets\Asset', 'icons/shop.png'], + + 'items' => + [ + [ + "label" => "Заказы", + "url" => ["shop/admin-order"], + "img" => ['\skeeks\modules\cms\shop\assets\Asset', 'icons/shop.png'] + ], + + [ + "label" => "Корзины", + "url" => ["shop/admin-basket"], + "img" => ['\skeeks\modules\cms\shop\assets\Asset', 'icons/shop.png'] + ], + ] + ] +]; \ No newline at end of file diff --git b/config/main-console.php a/config/main-console.php new file mode 100644 index 0000000..943be4a --- /dev/null +++ a/config/main-console.php @@ -0,0 +1,8 @@ + + * @link http://skeeks.com/ + * @copyright 2010 SkeekS (СкикС) + * @date 07.03.2015 + */ +return []; \ No newline at end of file diff --git b/config/main.php a/config/main.php new file mode 100644 index 0000000..a942f3a --- /dev/null +++ a/config/main.php @@ -0,0 +1,55 @@ + + * @link http://skeeks.com/ + * @copyright 2010 SkeekS (СкикС) + * @date 09.03.2015 + */ +return [ + 'components' => + [ + 'urlManager' => [ + 'rules' => [ + '<_c:(cart)>' => 'shop/<_c>/index', + ] + ], + + "registeredWidgets" => [ + 'components' => [ + /*'skeeks\modules\cms\catalog\widgets\products\Products' => + [ + 'name' => 'Виджет списка товаров', + 'description' => 'Виджет списка товаров', + + 'templates' => + [ + 'default' => + [ + 'name' => 'Шаблон по умолчанию' + ] + ], + ],*/ + ] + ], + + 'registeredModels' => + [ + 'components' => + [ + /*'product' => + [ + 'modelClass' => 'skeeks\modules\cms\catalog\models\Product', + 'name' => 'Продукт', + + ],*/ + ] + ], + ], + + 'modules' => + [ + 'shop' => [ + 'class' => '\skeeks\modules\cms\shop\Module', + ] + ] +]; \ No newline at end of file