diff --git a/composer.json b/composer.json index 75737c25f..7c2bf94e3 100644 --- a/composer.json +++ b/composer.json @@ -18,6 +18,7 @@ "laravel/framework": "5.6.*", "laravel/tinker": "^1.0", "nwidart/laravel-modules": "^3.2", + "pragmarx/countries": "^0.5.9", "prettus/l5-repository": "^2.6", "propaganistas/laravel-intl": "^2.0" }, diff --git a/composer.lock b/composer.lock index d3653b9fa..7bd87efb9 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,72 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "762c5c196d8a9a7814101fd53d60b1cf", + "content-hash": "78d80b8455ca268cc52ce6456fee6ee0", "packages": [ + { + "name": "colinodell/json5", + "version": "v1.0.5", + "source": { + "type": "git", + "url": "https://github.com/colinodell/json5.git", + "reference": "8c73e1a5cd933ed0e29fb5d5997f23902bd9804c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/colinodell/json5/zipball/8c73e1a5cd933ed0e29fb5d5997f23902bd9804c", + "reference": "8c73e1a5cd933ed0e29fb5d5997f23902bd9804c", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "php": "^5.4.8|^7.0" + }, + "require-dev": { + "mikehaertl/php-shellcommand": "^1.2.5", + "phpunit/phpunit": "^4.8.36|^7.3", + "squizlabs/php_codesniffer": "^2.3", + "symfony/finder": "^2.8|^3.4|^4.1" + }, + "bin": [ + "bin/json5" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "psr-4": { + "ColinODell\\Json5\\": "src" + }, + "files": [ + "src/global.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Developer" + } + ], + "description": "UTF-8 compatible JSON5 parser for PHP", + "homepage": "https://github.com/colinodell/json5", + "keywords": [ + "JSON5", + "json", + "json5_decode", + "json_decode" + ], + "time": "2018-09-20T15:43:07+00:00" + }, { "name": "commerceguys/intl", "version": "v1.0.1", @@ -1506,6 +1570,219 @@ ], "time": "2018-03-19T15:50:49+00:00" }, + { + "name": "nette/caching", + "version": "v2.5.8", + "source": { + "type": "git", + "url": "https://github.com/nette/caching.git", + "reference": "7fba7c7ab2585fafb7b31152f2595e1551120555" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/caching/zipball/7fba7c7ab2585fafb7b31152f2595e1551120555", + "reference": "7fba7c7ab2585fafb7b31152f2595e1551120555", + "shasum": "" + }, + "require": { + "nette/finder": "^2.2 || ~3.0.0", + "nette/utils": "^2.4 || ~3.0.0", + "php": ">=5.6.0" + }, + "conflict": { + "nette/nette": "<2.2" + }, + "require-dev": { + "latte/latte": "^2.4", + "nette/di": "^2.4 || ~3.0.0", + "nette/tester": "^2.0", + "tracy/tracy": "^2.4" + }, + "suggest": { + "ext-pdo_sqlite": "to use SQLiteStorage or SQLiteJournal" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.5-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0", + "GPL-3.0" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "⏱ Nette Caching: library with easy-to-use API and many cache backends.", + "homepage": "https://nette.org", + "keywords": [ + "cache", + "journal", + "memcached", + "nette", + "sqlite" + ], + "time": "2018-03-21T11:04:32+00:00" + }, + { + "name": "nette/finder", + "version": "v2.4.2", + "source": { + "type": "git", + "url": "https://github.com/nette/finder.git", + "reference": "ee951a656cb8ac622e5dd33474a01fd2470505a0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/finder/zipball/ee951a656cb8ac622e5dd33474a01fd2470505a0", + "reference": "ee951a656cb8ac622e5dd33474a01fd2470505a0", + "shasum": "" + }, + "require": { + "nette/utils": "~2.4", + "php": ">=5.6.0" + }, + "conflict": { + "nette/nette": "<2.2" + }, + "require-dev": { + "nette/tester": "~2.0", + "tracy/tracy": "^2.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0", + "GPL-3.0" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🔍 Nette Finder: find files and directories with an intuitive API.", + "homepage": "https://nette.org", + "keywords": [ + "filesystem", + "glob", + "iterator", + "nette" + ], + "time": "2018-06-28T11:49:23+00:00" + }, + { + "name": "nette/utils", + "version": "v2.5.3", + "source": { + "type": "git", + "url": "https://github.com/nette/utils.git", + "reference": "17b9f76f2abd0c943adfb556e56f2165460b15ce" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/utils/zipball/17b9f76f2abd0c943adfb556e56f2165460b15ce", + "reference": "17b9f76f2abd0c943adfb556e56f2165460b15ce", + "shasum": "" + }, + "require": { + "php": ">=5.6.0" + }, + "conflict": { + "nette/nette": "<2.2" + }, + "require-dev": { + "nette/tester": "~2.0", + "tracy/tracy": "^2.3" + }, + "suggest": { + "ext-gd": "to use Image", + "ext-iconv": "to use Strings::webalize() and toAscii()", + "ext-intl": "for script transliteration in Strings::webalize() and toAscii()", + "ext-json": "to use Nette\\Utils\\Json", + "ext-mbstring": "to use Strings::lower() etc...", + "ext-xml": "to use Strings::length() etc. when mbstring is not available" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.5-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ], + "files": [ + "src/loader.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0", + "GPL-3.0" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.", + "homepage": "https://nette.org", + "keywords": [ + "array", + "core", + "datetime", + "images", + "json", + "nette", + "paginator", + "password", + "slugify", + "string", + "unicode", + "utf-8", + "utility", + "validation" + ], + "time": "2018-09-18T10:22:16+00:00" + }, { "name": "nikic/php-parser", "version": "v4.0.3", @@ -1672,6 +1949,334 @@ ], "time": "2018-07-02T15:55:56+00:00" }, + { + "name": "pragmarx/coollection", + "version": "v0.6.1", + "source": { + "type": "git", + "url": "https://github.com/antonioribeiro/coollection.git", + "reference": "3a155ded3186f723774e65c9ea2d79ab439c4a84" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/antonioribeiro/coollection/zipball/3a155ded3186f723774e65c9ea2d79ab439c4a84", + "reference": "3a155ded3186f723774e65c9ea2d79ab439c4a84", + "shasum": "" + }, + "require": { + "php": ">=7.0", + "pragmarx/ia-arr": ">=5.5.33", + "pragmarx/ia-collection": ">=5.5.33", + "pragmarx/ia-str": ">=5.5.33" + }, + "require-dev": { + "mockery/mockery": "~1.0", + "phpunit/php-timer": ">=1.0|>=2.0", + "phpunit/phpunit": ">=6.0|>=7.0", + "squizlabs/php_codesniffer": "^2.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "PragmaRX\\Coollection\\Package\\": "src/package", + "PragmaRX\\Coollection\\Tests\\": "tests", + "IlluminateExtracted\\": "src/package/Support/IlluminateExtracted", + "IlluminateExtracted\\Tests\\": "tests/IlluminateExtracted" + }, + "files": [ + "src/package/Support/helpers.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Antonio Carlos Ribeiro", + "email": "acr@antoniocarlosribeiro.com", + "homepage": "https://antoniocarlosribeiro.com", + "role": "Creator" + } + ], + "description": "Laravel Illuminate collection with objectified properties", + "homepage": "https://github.com/antonioribeiro/coollection", + "keywords": [ + "collection", + "laravel", + "pragmarx" + ], + "time": "2018-09-26T21:11:58+00:00" + }, + { + "name": "pragmarx/countries", + "version": "v0.5.9", + "source": { + "type": "git", + "url": "https://github.com/antonioribeiro/countries.git", + "reference": "26290e847ebc7fbed4cf6226ab7ad89a1fe74ccf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/antonioribeiro/countries/zipball/26290e847ebc7fbed4cf6226ab7ad89a1fe74ccf", + "reference": "26290e847ebc7fbed4cf6226ab7ad89a1fe74ccf", + "shasum": "" + }, + "require": { + "colinodell/json5": "^1.0", + "nette/caching": "^2.5", + "php": ">=7.0", + "pragmarx/coollection": "^0.6", + "psr/simple-cache": "^1.0" + }, + "require-dev": { + "gasparesganga/php-shapefile": "^2.4", + "phpunit/phpunit": "~6.0|~7.0", + "squizlabs/php_codesniffer": "^2.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "PragmaRX\\Countries\\Package\\": "src/package", + "PragmaRX\\Countries\\Update\\": "src/update" + }, + "files": [ + "src/package/Support/helpers.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Antonio Carlos Ribeiro", + "email": "acr@antoniocarlosribeiro.com", + "role": "Creator" + } + ], + "description": "PHP Countries and Currencies", + "keywords": [ + "borders", + "cities", + "countries", + "currencies", + "flag", + "geometry", + "states", + "taxes", + "timezones", + "topology" + ], + "time": "2018-09-28T16:50:37+00:00" + }, + { + "name": "pragmarx/ia-arr", + "version": "v5.6.33", + "source": { + "type": "git", + "url": "https://github.com/antonioribeiro/ia-arr.git", + "reference": "4c0fd512616064822b6d50ca0e6bc8aa8eb3c067" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/antonioribeiro/ia-arr/zipball/4c0fd512616064822b6d50ca0e6bc8aa8eb3c067", + "reference": "4c0fd512616064822b6d50ca0e6bc8aa8eb3c067", + "shasum": "" + }, + "require": { + "php": ">=7.0", + "symfony/var-dumper": "~3.3|~4.0" + }, + "require-dev": { + "mockery/mockery": "~1.0", + "nesbot/carbon": "~1.20", + "phpunit/phpunit": ">=6.0", + "squizlabs/php_codesniffer": "^2.3" + }, + "suggest": { + "nesbot/carbon": "Required to use Carbon datetime." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "IlluminateAgnostic\\Arr\\": "src/", + "IlluminateAgnostic\\Arr\\Tests\\": "tests/" + }, + "files": [ + "src/Support/helpers.php", + "src/Support/alias.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Antonio Carlos Ribeiro", + "email": "acr@antoniocarlosribeiro.com", + "homepage": "https://antoniocarlosribeiro.com", + "role": "Creator" + } + ], + "description": "Laravel Illuminate Agnostic Arr", + "homepage": "https://github.com/antonioribeiro/ia-arr", + "keywords": [ + "arr", + "array", + "helpers", + "laravel", + "pragmarx" + ], + "time": "2018-08-19T20:20:32+00:00" + }, + { + "name": "pragmarx/ia-collection", + "version": "v5.7.5", + "source": { + "type": "git", + "url": "https://github.com/antonioribeiro/ia-collection.git", + "reference": "a7bdd40c452e60f55ce81a9af01e12fea0c60a93" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/antonioribeiro/ia-collection/zipball/a7bdd40c452e60f55ce81a9af01e12fea0c60a93", + "reference": "a7bdd40c452e60f55ce81a9af01e12fea0c60a93", + "shasum": "" + }, + "require": { + "nesbot/carbon": "~1.22", + "php": ">=7.0", + "ramsey/uuid": "^3.7", + "symfony/var-dumper": "~3.3|~4.0" + }, + "require-dev": { + "mockery/mockery": "~1.0", + "moontoast/math": "^1.1", + "phpunit/phpunit": ">=6.0", + "squizlabs/php_codesniffer": "^2.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "IlluminateAgnostic\\Collection\\": "src/", + "IlluminateAgnostic\\Collection\\Tests\\": "tests/" + }, + "files": [ + "src/Support/helpers.php", + "src/Support/alias.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Antonio Carlos Ribeiro", + "email": "acr@antoniocarlosribeiro.com", + "homepage": "https://antoniocarlosribeiro.com", + "role": "Creator" + } + ], + "description": "Laravel Illuminate Agnostic Collection", + "homepage": "https://github.com/antonioribeiro/ia-collection", + "keywords": [ + "collection", + "helpers", + "laravel", + "pragmarx" + ], + "time": "2018-09-20T18:19:48+00:00" + }, + { + "name": "pragmarx/ia-str", + "version": "v5.6.33", + "source": { + "type": "git", + "url": "https://github.com/antonioribeiro/ia-str.git", + "reference": "1572361ef0472404e3f3c53d9448a933fa86e33b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/antonioribeiro/ia-str/zipball/1572361ef0472404e3f3c53d9448a933fa86e33b", + "reference": "1572361ef0472404e3f3c53d9448a933fa86e33b", + "shasum": "" + }, + "require": { + "php": ">=7.0" + }, + "require-dev": { + "doctrine/inflector": "^1.2", + "mockery/mockery": "~1.0", + "moontoast/math": "^1.1", + "nesbot/carbon": "~1.22", + "phpunit/phpunit": ">=6.0", + "ramsey/uuid": "^3.7", + "squizlabs/php_codesniffer": "^2.3", + "symfony/var-dumper": "~3.3|~4.0" + }, + "suggest": { + "doctrine/inflector": "", + "nesbot/carbon": "", + "ramsey/uuid": "", + "symfony/var-dumper": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "IlluminateAgnostic\\Str\\": "src/", + "IlluminateAgnostic\\Str\\Tests\\": "tests/" + }, + "files": [ + "src/Support/helpers.php", + "src/Support/alias.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Antonio Carlos Ribeiro", + "email": "acr@antoniocarlosribeiro.com", + "homepage": "https://antoniocarlosribeiro.com", + "role": "Creator" + } + ], + "description": "Laravel Illuminate Agnostic Str", + "homepage": "https://github.com/antonioribeiro/ia-str", + "keywords": [ + "helpers", + "laravel", + "pragmarx", + "str", + "string" + ], + "time": "2018-08-19T20:21:49+00:00" + }, { "name": "prettus/l5-repository", "version": "2.6.32", diff --git a/packages/Webkul/Admin/src/Database/Seeders/DatabaseSeeder.php b/packages/Webkul/Admin/src/Database/Seeders/DatabaseSeeder.php new file mode 100644 index 000000000..d865fcf1e --- /dev/null +++ b/packages/Webkul/Admin/src/Database/Seeders/DatabaseSeeder.php @@ -0,0 +1,23 @@ +call(AttributeSeeder::class); + $this->call(CoreSeeder::class); + $this->call(UserSeeder::class); + } +} diff --git a/packages/Webkul/Admin/src/Resources/views/catalog/products/create.blade.php b/packages/Webkul/Admin/src/Resources/views/catalog/products/create.blade.php index 4881672cc..cd14cc08a 100644 --- a/packages/Webkul/Admin/src/Resources/views/catalog/products/create.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/catalog/products/create.blade.php @@ -99,13 +99,13 @@ @foreach($configurableFamily->configurable_attributes as $attribute) - {{ $attribute->name }} + {{ $attribute->admin_name }} @foreach($attribute->options as $option) - {{ $option->label }} + {{ $option->admin_name }} diff --git a/packages/Webkul/Admin/src/Resources/views/settings/channels/create.blade.php b/packages/Webkul/Admin/src/Resources/views/settings/channels/create.blade.php index a4401caf5..da37a4e50 100644 --- a/packages/Webkul/Admin/src/Resources/views/settings/channels/create.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/settings/channels/create.blade.php @@ -63,16 +63,16 @@ @{{ errors.first('locales[]') }} -
- - @foreach(core()->getAllLocales() as $locale) - @endforeach - @{{ errors.first('default_locale') }} + @{{ errors.first('default_locale_id') }}
@@ -87,16 +87,16 @@ @{{ errors.first('currencies[]') }}
-
- - @foreach(core()->getAllCurrencies() as $currency) - @endforeach - @{{ errors.first('base_currency') }} + @{{ errors.first('base_currency_id') }}
diff --git a/packages/Webkul/Admin/src/Resources/views/settings/channels/edit.blade.php b/packages/Webkul/Admin/src/Resources/views/settings/channels/edit.blade.php index 085b83936..a6f4fe2da 100644 --- a/packages/Webkul/Admin/src/Resources/views/settings/channels/edit.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/settings/channels/edit.blade.php @@ -66,9 +66,9 @@
- - default_locale_id ?> - @foreach(core()->getAllLocales() as $locale)
- - base_currency_id ?> - @foreach(core()->getAllCurrencies() as $currency)