diff --git a/composer.json b/composer.json index 54ab83a..e4e0cda 100644 --- a/composer.json +++ b/composer.json @@ -19,6 +19,7 @@ "composer/installers": "^1.2", "cweagans/composer-patches": "^1.6", "drupal-composer/drupal-scaffold": "^2.2", + "drupal/commerce": "^2.0", "drupal/console": "~1.0", "drupal/core": "~8.0", "drupal/google_map_field": "^1.4", diff --git a/composer.lock b/composer.lock index ca123b9..555e089 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "5436946fb315057f77e40f8eba35432d", + "hash": "2e990bc0ebaf8282d3855837b81f43e9", + "content-hash": "56a177dcbb63cd824272252793499c8f", "packages": [ { "name": "alchemy/zippy", @@ -68,7 +69,7 @@ "tar", "zip" ], - "time": "2016-11-03T16:10:31+00:00" + "time": "2016-11-03 16:10:31" }, { "name": "asm89/stack-cors", @@ -120,7 +121,152 @@ "cors", "stack" ], - "time": "2017-04-11T20:03:41+00:00" + "time": "2017-04-11 20:03:41" + }, + { + "name": "commerceguys/addressing", + "version": "v1.0.0-beta3", + "source": { + "type": "git", + "url": "https://github.com/commerceguys/addressing.git", + "reference": "615464980031d353865fd0a4b5da3acb3f567129" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/commerceguys/addressing/zipball/615464980031d353865fd0a4b5da3acb3f567129", + "reference": "615464980031d353865fd0a4b5da3acb3f567129", + "shasum": "" + }, + "require": { + "commerceguys/enum": "~1.0", + "doctrine/collections": "~1.0", + "php": ">=5.5.0" + }, + "require-dev": { + "mikey179/vfsstream": "1.*", + "phpunit/phpunit": "~4.0", + "squizlabs/php_codesniffer": "2.*", + "symfony/intl": ">=2.3", + "symfony/validator": ">=2.3" + }, + "suggest": { + "commerceguys/intl": "to use it as the source of country data", + "symfony/intl": "to use it as the source of country data", + "symfony/validator": "to validate addresses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "CommerceGuys\\Addressing\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bojan Zivanovic" + }, + { + "name": "Damien Tournoud" + } + ], + "description": "Addressing library powered by Google's address data.", + "keywords": [ + "address", + "internationalization", + "localization", + "postal" + ], + "time": "2017-04-20 12:32:07" + }, + { + "name": "commerceguys/enum", + "version": "v1.0", + "source": { + "type": "git", + "url": "https://github.com/commerceguys/enum.git", + "reference": "1d9db2dbeb1a02500e7a14589ae2f9cb402c5c95" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/commerceguys/enum/zipball/1d9db2dbeb1a02500e7a14589ae2f9cb402c5c95", + "reference": "1d9db2dbeb1a02500e7a14589ae2f9cb402c5c95", + "shasum": "" + }, + "require": { + "php": ">=5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "CommerceGuys\\Enum\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bojan Zivanovic" + } + ], + "description": "A PHP 5.4+ enumeration library.", + "time": "2015-02-27 21:36:56" + }, + { + "name": "commerceguys/intl", + "version": "v0.7.4", + "source": { + "type": "git", + "url": "https://github.com/commerceguys/intl.git", + "reference": "edfcfc26ed8505c4f6fcf862eb36dfda1af74b00" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/commerceguys/intl/zipball/edfcfc26ed8505c4f6fcf862eb36dfda1af74b00", + "reference": "edfcfc26ed8505c4f6fcf862eb36dfda1af74b00", + "shasum": "" + }, + "require": { + "php": ">=5.4.0" + }, + "require-dev": { + "mikey179/vfsstream": "1.*", + "phpunit/phpunit": "~4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "0.x-dev" + } + }, + "autoload": { + "psr-4": { + "CommerceGuys\\Intl\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bojan Zivanovic" + } + ], + "description": "Internationalization library powered by CLDR data.", + "time": "2016-12-13 12:33:19" }, { "name": "composer/installers", @@ -227,7 +373,7 @@ "zend", "zikula" ], - "time": "2016-08-13T20:53:52+00:00" + "time": "2016-08-13 20:53:52" }, { "name": "composer/semver", @@ -289,7 +435,7 @@ "validation", "versioning" ], - "time": "2016-08-30T16:08:34+00:00" + "time": "2016-08-30 16:08:34" }, { "name": "consolidation/annotated-command", @@ -341,7 +487,7 @@ } ], "description": "Initialize Symfony Console commands from annotated command class methods.", - "time": "2017-04-03T22:37:00+00:00" + "time": "2017-04-03 22:37:00" }, { "name": "consolidation/output-formatters", @@ -390,7 +536,7 @@ } ], "description": "Format text by applying transformations provided by plug-in formatters.", - "time": "2017-03-01T20:54:45+00:00" + "time": "2017-03-01 20:54:45" }, { "name": "cweagans/composer-patches", @@ -434,7 +580,7 @@ } ], "description": "Provides a way to patch Composer packages.", - "time": "2017-03-19T18:18:52+00:00" + "time": "2017-03-19 18:18:52" }, { "name": "dflydev/dot-access-configuration", @@ -494,7 +640,7 @@ "config", "configuration" ], - "time": "2014-11-14T03:26:12+00:00" + "time": "2014-11-14 03:26:12" }, { "name": "dflydev/dot-access-data", @@ -553,7 +699,7 @@ "dot", "notation" ], - "time": "2017-01-20T21:14:22+00:00" + "time": "2017-01-20 21:14:22" }, { "name": "dflydev/placeholder-resolver", @@ -605,7 +751,7 @@ "placeholder", "resolver" ], - "time": "2012-10-28T21:08:28+00:00" + "time": "2012-10-28 21:08:28" }, { "name": "dnoegel/php-xdg-base-dir", @@ -638,7 +784,7 @@ "MIT" ], "description": "implementation of xdg base directory specification for php", - "time": "2014-10-24T07:27:01+00:00" + "time": "2014-10-24 07:27:01" }, { "name": "doctrine/annotations", @@ -706,7 +852,7 @@ "docblock", "parser" ], - "time": "2015-08-31T12:32:49+00:00" + "time": "2015-08-31 12:32:49" }, { "name": "doctrine/cache", @@ -776,7 +922,7 @@ "cache", "caching" ], - "time": "2016-10-29T11:16:17+00:00" + "time": "2016-10-29 11:16:17" }, { "name": "doctrine/collections", @@ -842,7 +988,7 @@ "collections", "iterator" ], - "time": "2015-04-14T22:21:58+00:00" + "time": "2015-04-14 22:21:58" }, { "name": "doctrine/common", @@ -915,7 +1061,7 @@ "persistence", "spl" ], - "time": "2017-01-13T14:02:13+00:00" + "time": "2017-01-13 14:02:13" }, { "name": "doctrine/inflector", @@ -982,7 +1128,7 @@ "singularize", "string" ], - "time": "2015-11-06T14:35:42+00:00" + "time": "2015-11-06 14:35:42" }, { "name": "doctrine/lexer", @@ -1036,7 +1182,7 @@ "lexer", "parser" ], - "time": "2014-09-09T13:34:57+00:00" + "time": "2014-09-09 13:34:57" }, { "name": "drupal-composer/drupal-scaffold", @@ -1077,7 +1223,146 @@ "GPL-2.0+" ], "description": "Composer Plugin for updating the Drupal scaffold files when using drupal/core", - "time": "2016-11-05T10:46:44+00:00" + "time": "2016-11-05 10:46:44" + }, + { + "name": "drupal/address", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://git.drupal.org/project/address", + "reference": "8.x-1.2" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/address-8.x-1.2.zip", + "reference": "8.x-1.2", + "shasum": "041445ac14087be943c0c1c562b9bf800d87f7e8" + }, + "require": { + "commerceguys/addressing": "~1.0", + "commerceguys/intl": "~0.7", + "drupal/core": "*" + }, + "type": "drupal-module", + "extra": { + "branch-alias": { + "dev-1.x": "1.x-dev" + }, + "drupal": { + "version": "8.x-1.2", + "datestamp": "1505896144", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "bojanz", + "homepage": "https://www.drupal.org/user/86106" + }, + { + "name": "googletorp", + "homepage": "https://www.drupal.org/user/386230" + }, + { + "name": "rszrama", + "homepage": "https://www.drupal.org/user/49344" + } + ], + "description": "Provides functionality for storing, validating and displaying international postal addresses.", + "homepage": "http://drupal.org/project/address", + "support": { + "source": "http://cgit.drupalcode.org/address" + } + }, + { + "name": "drupal/commerce", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://git.drupal.org/project/commerce", + "reference": "8.x-2.0" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/commerce-8.x-2.0.zip", + "reference": "8.x-2.0", + "shasum": "66428eeb51841d601f1978c42405c2c534f5cff4" + }, + "require": { + "commerceguys/intl": "~0.7", + "drupal/address": "~1.0", + "drupal/core": "~8.3", + "drupal/entity": "~1.0", + "drupal/entity_reference_revisions": "~1.0", + "drupal/inline_entity_form": "~1.0", + "drupal/profile": "~1.0", + "drupal/state_machine": "~1.0" + }, + "require-dev": { + "drupal/commerce_cart": "*", + "drupal/commerce_order": "*", + "drupal/commerce_payment": "*", + "drupal/commerce_price": "*", + "drupal/commerce_product": "*", + "drupal/commerce_store": "*", + "drupal/entity_reference_revisions": "*", + "drupal/inline_entity_form": "*", + "drupal/profile": "*", + "drupal/state_machine": "*" + }, + "type": "drupal-module", + "extra": { + "branch-alias": { + "dev-2.x": "2.x-dev" + }, + "drupal": { + "version": "8.x-2.0", + "datestamp": "1505910843", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "Damien Tournoud", + "homepage": "https://www.drupal.org/user/22211" + }, + { + "name": "bojanz", + "homepage": "https://www.drupal.org/user/86106" + }, + { + "name": "jsacksick", + "homepage": "https://www.drupal.org/user/972218" + }, + { + "name": "mglaman", + "homepage": "https://www.drupal.org/user/2416470" + }, + { + "name": "rszrama", + "homepage": "https://www.drupal.org/user/49344" + } + ], + "description": "Drupal Commerce is a flexible eCommerce solution.", + "homepage": "http://drupal.org/project/commerce", + "support": { + "source": "http://cgit.drupalcode.org/commerce" + } }, { "name": "drupal/console", @@ -1155,7 +1440,7 @@ "drupal", "symfony" ], - "time": "2017-02-09T18:54:29+00:00" + "time": "2017-02-09 18:54:29" }, { "name": "drupal/console-core", @@ -1236,7 +1521,7 @@ "drupal", "symfony" ], - "time": "2017-02-09T18:22:32+00:00" + "time": "2017-02-09 18:22:32" }, { "name": "drupal/console-en", @@ -1290,7 +1575,7 @@ "drupal", "symfony" ], - "time": "2017-02-09T16:02:27+00:00" + "time": "2017-02-09 16:02:27" }, { "name": "drupal/console-extend-plugin", @@ -1331,7 +1616,7 @@ } ], "description": "Drupal Console Extend Plugin", - "time": "2017-02-14T08:38:49+00:00" + "time": "2017-02-14 08:38:49" }, { "name": "drupal/core", @@ -1513,7 +1798,70 @@ "GPL-2.0+" ], "description": "Drupal is an open source content management platform powering millions of websites and applications.", - "time": "2017-04-06T00:12:44+00:00" + "time": "2017-04-06 00:12:44" + }, + { + "name": "drupal/entity", + "version": "1.0.0-beta1", + "source": { + "type": "git", + "url": "https://git.drupal.org/project/entity", + "reference": "8.x-1.0-beta1" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/entity-8.x-1.0-beta1.zip", + "reference": "8.x-1.0-beta1", + "shasum": "6965349818de8cb820113b6841076162190c1a4c" + }, + "require": { + "drupal/core": "~8.3" + }, + "type": "drupal-module", + "extra": { + "branch-alias": { + "dev-1.x": "1.x-dev" + }, + "drupal": { + "version": "8.x-1.0-beta1", + "datestamp": "1505895844", + "security-coverage": { + "status": "not-covered", + "message": "Beta releases are not covered by Drupal security advisories." + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "Berdir", + "homepage": "https://www.drupal.org/user/214652" + }, + { + "name": "bojanz", + "homepage": "https://www.drupal.org/user/86106" + }, + { + "name": "dawehner", + "homepage": "https://www.drupal.org/user/99340" + }, + { + "name": "dixon_", + "homepage": "https://www.drupal.org/user/239911" + }, + { + "name": "fago", + "homepage": "https://www.drupal.org/user/16747" + } + ], + "description": "Provides expanded entity APIs, which will be moved to Drupal core one day.", + "homepage": "http://drupal.org/project/entity", + "support": { + "source": "http://cgit.drupalcode.org/entity" + } }, { "name": "drupal/entity_reference_revisions", @@ -1620,6 +1968,72 @@ "source": "http://cgit.drupalcode.org/google_map_field" } }, + { + "name": "drupal/inline_entity_form", + "version": "1.0.0-beta1", + "source": { + "type": "git", + "url": "https://git.drupal.org/project/inline_entity_form", + "reference": "8.x-1.0-beta1" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/inline_entity_form-8.x-1.0-beta1.zip", + "reference": "8.x-1.0-beta1", + "shasum": "185ffc28a7b68d19cce057855d1c111f1741a3ea" + }, + "require": { + "drupal/core": "~8.0" + }, + "require-dev": { + "drupal/entity_reference_revisions": "*" + }, + "type": "drupal-module", + "extra": { + "branch-alias": { + "dev-1.x": "1.x-dev" + }, + "drupal": { + "version": "8.x-1.0-beta1", + "datestamp": "1477868343", + "security-coverage": { + "status": "not-covered", + "message": "Beta releases are not covered by Drupal security advisories." + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "bojanz", + "homepage": "https://www.drupal.org/user/86106" + }, + { + "name": "dawehner", + "homepage": "https://www.drupal.org/user/99340" + }, + { + "name": "rszrama", + "homepage": "https://www.drupal.org/user/49344" + }, + { + "name": "slashrsm", + "homepage": "https://www.drupal.org/user/744628" + }, + { + "name": "webflo", + "homepage": "https://www.drupal.org/user/254778" + } + ], + "description": "Provides a widget for inline management (creation, modification, removal) of referenced entities.", + "homepage": "https://www.drupal.org/project/inline_entity_form", + "support": { + "source": "http://cgit.drupalcode.org/inline_entity_form" + } + }, { "name": "drupal/nexus", "version": "1.0.0-beta1", @@ -1689,7 +2103,7 @@ "dist": { "type": "zip", "url": "https://ftp.drupal.org/files/projects/paragraphs-8.x-1.1.zip", - "reference": null, + "reference": "8.x-1.1", "shasum": "c678e5704a98c6a0549e415412da081cfeb03a00" }, "require": { @@ -1746,6 +2160,165 @@ "source": "http://cgit.drupalcode.org/paragraphs" } }, + { + "name": "drupal/profile", + "version": "1.0.0-rc1", + "source": { + "type": "git", + "url": "https://git.drupal.org/project/profile", + "reference": "8.x-1.0-rc1" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/profile-8.x-1.0-rc1.zip", + "reference": "8.x-1.0-rc1", + "shasum": "cc537ca25412adc4fa601ff42cf2fb5cbc6e7b6b" + }, + "require": { + "drupal/core": "~8.1", + "drupal/entity": "*" + }, + "type": "drupal-module", + "extra": { + "branch-alias": { + "dev-1.x": "1.x-dev" + }, + "drupal": { + "version": "8.x-1.0-rc1", + "datestamp": "1505830145", + "security-coverage": { + "status": "not-covered", + "message": "RC releases are not covered by Drupal security advisories." + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "bojanz", + "homepage": "https://www.drupal.org/user/86106" + }, + { + "name": "dakala", + "homepage": "https://www.drupal.org/user/53175" + }, + { + "name": "fago", + "homepage": "https://www.drupal.org/user/16747" + }, + { + "name": "mglaman", + "homepage": "https://www.drupal.org/user/2416470" + }, + { + "name": "pcambra", + "homepage": "https://www.drupal.org/user/122101" + } + ], + "description": "Provides configurable user profiles.", + "homepage": "http://drupal.org/project/profile", + "support": { + "source": "http://cgit.drupalcode.org/profile" + } + }, + { + "name": "drupal/state_machine", + "version": "1.0.0-beta3", + "source": { + "type": "git", + "url": "https://git.drupal.org/project/state_machine", + "reference": "8.x-1.0-beta3" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/state_machine-8.x-1.0-beta3.zip", + "reference": "8.x-1.0-beta3", + "shasum": "9ca0101738db00673f2511707a76d6ea0c9ce4db" + }, + "require": { + "drupal/core": "~8.0" + }, + "type": "drupal-module", + "extra": { + "branch-alias": { + "dev-1.x": "1.x-dev" + }, + "drupal": { + "version": "8.x-1.0-beta3", + "datestamp": "1477868939", + "security-coverage": { + "status": "not-covered", + "message": "Beta releases are not covered by Drupal security advisories." + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "Brandonian", + "homepage": "https://www.drupal.org/user/77766" + }, + { + "name": "Elijah Lynn", + "homepage": "https://www.drupal.org/user/353190" + }, + { + "name": "arithmetric", + "homepage": "https://www.drupal.org/user/162305" + }, + { + "name": "bojanz", + "homepage": "https://www.drupal.org/user/86106" + }, + { + "name": "das-peter", + "homepage": "https://www.drupal.org/user/762870" + }, + { + "name": "e2thex", + "homepage": "https://www.drupal.org/user/189123" + }, + { + "name": "ericduran", + "homepage": "https://www.drupal.org/user/244460" + }, + { + "name": "fmitchell", + "homepage": "https://www.drupal.org/user/213574" + }, + { + "name": "indytechcook", + "homepage": "https://www.drupal.org/user/245817" + }, + { + "name": "robeano", + "homepage": "https://www.drupal.org/user/67660" + }, + { + "name": "stevector", + "homepage": "https://www.drupal.org/user/179805" + }, + { + "name": "timcosgrove", + "homepage": "https://www.drupal.org/user/118452" + }, + { + "name": "zroger", + "homepage": "https://www.drupal.org/user/67977" + } + ], + "description": "Provides code-driven workflow functionality.", + "homepage": "https://www.drupal.org/project/state_machine", + "support": { + "source": "http://cgit.drupalcode.org/state_machine" + } + }, { "name": "drush/drush", "version": "8.1.10", @@ -1849,7 +2422,7 @@ ], "description": "Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.", "homepage": "http://www.drush.org", - "time": "2017-02-23T20:46:12+00:00" + "time": "2017-02-23 20:46:12" }, { "name": "easyrdf/easyrdf", @@ -1911,7 +2484,7 @@ "rdfa", "sparql" ], - "time": "2015-02-27T09:45:49+00:00" + "time": "2015-02-27 09:45:49" }, { "name": "egulias/email-validator", @@ -1963,7 +2536,7 @@ "validation", "validator" ], - "time": "2017-02-03T22:48:59+00:00" + "time": "2017-02-03 22:48:59" }, { "name": "gabordemooij/redbean", @@ -2004,7 +2577,7 @@ "keywords": [ "orm" ], - "time": "2016-10-03T21:25:17+00:00" + "time": "2016-10-03 21:25:17" }, { "name": "guzzlehttp/guzzle", @@ -2066,7 +2639,7 @@ "rest", "web service" ], - "time": "2017-02-28T22:50:30+00:00" + "time": "2017-02-28 22:50:30" }, { "name": "guzzlehttp/promises", @@ -2117,7 +2690,7 @@ "keywords": [ "promise" ], - "time": "2016-12-20T10:07:11+00:00" + "time": "2016-12-20 10:07:11" }, { "name": "guzzlehttp/psr7", @@ -2182,7 +2755,7 @@ "uri", "url" ], - "time": "2017-03-20T17:10:46+00:00" + "time": "2017-03-20 17:10:46" }, { "name": "ircmaxell/password-compat", @@ -2224,7 +2797,7 @@ "hashing", "password" ], - "time": "2014-11-20T16:49:30+00:00" + "time": "2014-11-20 16:49:30" }, { "name": "jakub-onderka/php-console-color", @@ -2267,7 +2840,7 @@ "homepage": "http://www.acci.cz" } ], - "time": "2014-04-08T15:00:19+00:00" + "time": "2014-04-08 15:00:19" }, { "name": "jakub-onderka/php-console-highlighter", @@ -2311,7 +2884,7 @@ "homepage": "http://www.acci.cz/" } ], - "time": "2015-04-20T18:58:01+00:00" + "time": "2015-04-20 18:58:01" }, { "name": "masterminds/html5", @@ -2376,7 +2949,7 @@ "serializer", "xml" ], - "time": "2016-09-22T11:01:11+00:00" + "time": "2016-09-22 11:01:11" }, { "name": "nikic/php-parser", @@ -2427,7 +3000,7 @@ "parser", "php" ], - "time": "2017-03-05T18:23:57+00:00" + "time": "2017-03-05 18:23:57" }, { "name": "paragonie/random_compat", @@ -2475,7 +3048,7 @@ "pseudorandom", "random" ], - "time": "2017-03-13T16:27:32+00:00" + "time": "2017-03-13 16:27:32" }, { "name": "pear/console_table", @@ -2530,7 +3103,7 @@ "keywords": [ "console" ], - "time": "2016-01-21T16:14:31+00:00" + "time": "2016-01-21 16:14:31" }, { "name": "phpdocumentor/reflection-docblock", @@ -2579,7 +3152,7 @@ "email": "mike.vanriel@naenius.com" } ], - "time": "2015-02-03T12:10:50+00:00" + "time": "2015-02-03 12:10:50" }, { "name": "psr/http-message", @@ -2629,7 +3202,7 @@ "request", "response" ], - "time": "2016-08-06T14:39:51+00:00" + "time": "2016-08-06 14:39:51" }, { "name": "psr/log", @@ -2676,7 +3249,7 @@ "psr", "psr-3" ], - "time": "2016-10-10T12:19:37+00:00" + "time": "2016-10-10 12:19:37" }, { "name": "psy/psysh", @@ -2749,7 +3322,7 @@ "interactive", "shell" ], - "time": "2017-03-19T21:40:44+00:00" + "time": "2017-03-19 21:40:44" }, { "name": "stack/builder", @@ -2798,7 +3371,7 @@ "keywords": [ "stack" ], - "time": "2016-06-02T06:58:42+00:00" + "time": "2016-06-02 06:58:42" }, { "name": "stecman/symfony-console-completion", @@ -2843,7 +3416,7 @@ } ], "description": "Automatic BASH completion for Symfony Console Component based applications.", - "time": "2016-02-24T05:08:54+00:00" + "time": "2016-02-24 05:08:54" }, { "name": "symfony-cmf/routing", @@ -2902,7 +3475,7 @@ "database", "routing" ], - "time": "2016-03-31T09:11:39+00:00" + "time": "2016-03-31 09:11:39" }, { "name": "symfony/class-loader", @@ -2955,7 +3528,7 @@ ], "description": "Symfony ClassLoader Component", "homepage": "https://symfony.com", - "time": "2017-02-18T19:13:35+00:00" + "time": "2017-02-18 19:13:35" }, { "name": "symfony/config", @@ -3011,7 +3584,7 @@ ], "description": "Symfony Config Component", "homepage": "https://symfony.com", - "time": "2017-04-04T15:24:26+00:00" + "time": "2017-04-04 15:24:26" }, { "name": "symfony/console", @@ -3072,7 +3645,7 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2017-04-03T20:37:06+00:00" + "time": "2017-04-03 20:37:06" }, { "name": "symfony/css-selector", @@ -3125,7 +3698,7 @@ ], "description": "Symfony CssSelector Component", "homepage": "https://symfony.com", - "time": "2017-02-21T08:33:48+00:00" + "time": "2017-02-21 08:33:48" }, { "name": "symfony/debug", @@ -3182,7 +3755,7 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2017-02-18T19:13:35+00:00" + "time": "2017-02-18 19:13:35" }, { "name": "symfony/dependency-injection", @@ -3245,7 +3818,7 @@ ], "description": "Symfony DependencyInjection Component", "homepage": "https://symfony.com", - "time": "2017-04-03T22:14:48+00:00" + "time": "2017-04-03 22:14:48" }, { "name": "symfony/dom-crawler", @@ -3301,7 +3874,7 @@ ], "description": "Symfony DomCrawler Component", "homepage": "https://symfony.com", - "time": "2017-02-21T09:12:04+00:00" + "time": "2017-02-21 09:12:04" }, { "name": "symfony/event-dispatcher", @@ -3361,7 +3934,7 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2017-04-03T20:37:06+00:00" + "time": "2017-04-03 20:37:06" }, { "name": "symfony/expression-language", @@ -3410,7 +3983,7 @@ ], "description": "Symfony ExpressionLanguage Component", "homepage": "https://symfony.com", - "time": "2017-04-03T23:11:44+00:00" + "time": "2017-04-03 23:11:44" }, { "name": "symfony/filesystem", @@ -3459,7 +4032,7 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2017-03-26T15:40:40+00:00" + "time": "2017-03-26 15:40:40" }, { "name": "symfony/finder", @@ -3508,7 +4081,7 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2017-03-20T08:46:40+00:00" + "time": "2017-03-20 08:46:40" }, { "name": "symfony/http-foundation", @@ -3563,7 +4136,7 @@ ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", - "time": "2017-04-04T15:24:26+00:00" + "time": "2017-04-04 15:24:26" }, { "name": "symfony/http-kernel", @@ -3645,7 +4218,7 @@ ], "description": "Symfony HttpKernel Component", "homepage": "https://symfony.com", - "time": "2017-04-05T04:04:34+00:00" + "time": "2017-04-05 04:04:34" }, { "name": "symfony/polyfill-apcu", @@ -3698,7 +4271,7 @@ "portable", "shim" ], - "time": "2016-11-14T01:06:16+00:00" + "time": "2016-11-14 01:06:16" }, { "name": "symfony/polyfill-iconv", @@ -3757,7 +4330,7 @@ "portable", "shim" ], - "time": "2016-11-14T01:06:16+00:00" + "time": "2016-11-14 01:06:16" }, { "name": "symfony/polyfill-mbstring", @@ -3816,7 +4389,7 @@ "portable", "shim" ], - "time": "2016-11-14T01:06:16+00:00" + "time": "2016-11-14 01:06:16" }, { "name": "symfony/polyfill-php54", @@ -3874,7 +4447,7 @@ "portable", "shim" ], - "time": "2016-11-14T01:06:16+00:00" + "time": "2016-11-14 01:06:16" }, { "name": "symfony/polyfill-php55", @@ -3930,7 +4503,7 @@ "portable", "shim" ], - "time": "2016-11-14T01:06:16+00:00" + "time": "2016-11-14 01:06:16" }, { "name": "symfony/process", @@ -3979,7 +4552,7 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2017-03-04T12:20:59+00:00" + "time": "2017-03-04 12:20:59" }, { "name": "symfony/psr-http-message-bridge", @@ -4039,7 +4612,7 @@ "http-message", "psr-7" ], - "time": "2016-09-14T18:37:20+00:00" + "time": "2016-09-14 18:37:20" }, { "name": "symfony/routing", @@ -4114,7 +4687,7 @@ "uri", "url" ], - "time": "2017-03-02T15:56:34+00:00" + "time": "2017-03-02 15:56:34" }, { "name": "symfony/serializer", @@ -4178,7 +4751,7 @@ ], "description": "Symfony Serializer Component", "homepage": "https://symfony.com", - "time": "2017-03-21T22:47:17+00:00" + "time": "2017-03-21 22:47:17" }, { "name": "symfony/translation", @@ -4242,7 +4815,7 @@ ], "description": "Symfony Translation Component", "homepage": "https://symfony.com", - "time": "2017-03-21T21:39:01+00:00" + "time": "2017-03-21 21:39:01" }, { "name": "symfony/validator", @@ -4315,7 +4888,7 @@ ], "description": "Symfony Validator Component", "homepage": "https://symfony.com", - "time": "2017-03-23T16:08:03+00:00" + "time": "2017-03-23 16:08:03" }, { "name": "symfony/var-dumper", @@ -4381,7 +4954,7 @@ "debug", "dump" ], - "time": "2017-03-12T16:01:59+00:00" + "time": "2017-03-12 16:01:59" }, { "name": "symfony/yaml", @@ -4430,7 +5003,7 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2017-03-20T09:41:44+00:00" + "time": "2017-03-20 09:41:44" }, { "name": "twig/twig", @@ -4492,7 +5065,7 @@ "keywords": [ "templating" ], - "time": "2017-03-22T15:40:09+00:00" + "time": "2017-03-22 15:40:09" }, { "name": "webflo/drupal-finder", @@ -4529,7 +5102,7 @@ } ], "description": "Helper class to locate a Drupal installation from a given path.", - "time": "2016-11-28T18:50:45+00:00" + "time": "2016-11-28 18:50:45" }, { "name": "webmozart/assert", @@ -4579,7 +5152,7 @@ "check", "validate" ], - "time": "2016-11-23T20:04:58+00:00" + "time": "2016-11-23 20:04:58" }, { "name": "webmozart/path-util", @@ -4625,7 +5198,7 @@ } ], "description": "A robust cross-platform utility for normalizing, comparing and modifying file paths.", - "time": "2015-12-17T08:42:14+00:00" + "time": "2015-12-17 08:42:14" }, { "name": "zendframework/zend-diactoros", @@ -4677,7 +5250,7 @@ "psr", "psr-7" ], - "time": "2017-04-06T16:18:34+00:00" + "time": "2017-04-06 16:18:34" }, { "name": "zendframework/zend-escaper", @@ -4721,7 +5294,7 @@ "escaper", "zf2" ], - "time": "2016-06-30T19:48:38+00:00" + "time": "2016-06-30 19:48:38" }, { "name": "zendframework/zend-feed", @@ -4782,7 +5355,7 @@ "feed", "zf2" ], - "time": "2017-04-01T15:03:14+00:00" + "time": "2017-04-01 15:03:14" }, { "name": "zendframework/zend-stdlib", @@ -4827,7 +5400,7 @@ "stdlib", "zf2" ], - "time": "2016-09-13T14:38:50+00:00" + "time": "2016-09-13 14:38:50" } ], "packages-dev": [ @@ -4887,7 +5460,7 @@ "testing", "web" ], - "time": "2016-03-05T08:26:18+00:00" + "time": "2016-03-05 08:26:18" }, { "name": "behat/mink-browserkit-driver", @@ -4943,7 +5516,7 @@ "browser", "testing" ], - "time": "2016-03-05T08:59:47+00:00" + "time": "2016-03-05 08:59:47" }, { "name": "behat/mink-goutte-driver", @@ -4998,7 +5571,7 @@ "headless", "testing" ], - "time": "2016-03-05T09:04:22+00:00" + "time": "2016-03-05 09:04:22" }, { "name": "doctrine/instantiator", @@ -5052,7 +5625,7 @@ "constructor", "instantiate" ], - "time": "2015-06-14T21:17:01+00:00" + "time": "2015-06-14 21:17:01" }, { "name": "fabpot/goutte", @@ -5101,7 +5674,7 @@ "keywords": [ "scraper" ], - "time": "2017-01-03T13:21:43+00:00" + "time": "2017-01-03 13:21:43" }, { "name": "jcalderonzumba/gastonjs", @@ -5158,7 +5731,7 @@ "headless", "phantomjs" ], - "time": "2016-05-04T16:27:07+00:00" + "time": "2016-05-04 16:27:07" }, { "name": "jcalderonzumba/mink-phantomjs-driver", @@ -5216,7 +5789,7 @@ "phantomjs", "testing" ], - "time": "2016-12-01T10:57:30+00:00" + "time": "2016-12-01 10:57:30" }, { "name": "mikey179/vfsStream", @@ -5262,7 +5835,7 @@ ], "description": "Virtual file system to mock the real file system in unit tests.", "homepage": "http://vfs.bovigo.org/", - "time": "2016-07-18T14:02:57+00:00" + "time": "2016-07-18 14:02:57" }, { "name": "phpspec/prophecy", @@ -5325,7 +5898,7 @@ "spy", "stub" ], - "time": "2017-03-02T20:05:34+00:00" + "time": "2017-03-02 20:05:34" }, { "name": "phpunit/php-code-coverage", @@ -5387,7 +5960,7 @@ "testing", "xunit" ], - "time": "2015-10-06T15:47:00+00:00" + "time": "2015-10-06 15:47:00" }, { "name": "phpunit/php-file-iterator", @@ -5434,7 +6007,7 @@ "filesystem", "iterator" ], - "time": "2016-10-03T07:40:28+00:00" + "time": "2016-10-03 07:40:28" }, { "name": "phpunit/php-text-template", @@ -5475,7 +6048,7 @@ "keywords": [ "template" ], - "time": "2015-06-21T13:50:34+00:00" + "time": "2015-06-21 13:50:34" }, { "name": "phpunit/php-timer", @@ -5524,7 +6097,7 @@ "keywords": [ "timer" ], - "time": "2017-02-26T11:10:40+00:00" + "time": "2017-02-26 11:10:40" }, { "name": "phpunit/php-token-stream", @@ -5573,7 +6146,7 @@ "keywords": [ "tokenizer" ], - "time": "2017-02-27T10:12:30+00:00" + "time": "2017-02-27 10:12:30" }, { "name": "phpunit/phpunit", @@ -5645,7 +6218,7 @@ "testing", "xunit" ], - "time": "2017-02-06T05:18:07+00:00" + "time": "2017-02-06 05:18:07" }, { "name": "phpunit/phpunit-mock-objects", @@ -5701,7 +6274,7 @@ "mock", "xunit" ], - "time": "2015-10-02T06:51:40+00:00" + "time": "2015-10-02 06:51:40" }, { "name": "sebastian/comparator", @@ -5765,7 +6338,7 @@ "compare", "equality" ], - "time": "2017-01-29T09:50:25+00:00" + "time": "2017-01-29 09:50:25" }, { "name": "sebastian/diff", @@ -5817,7 +6390,7 @@ "keywords": [ "diff" ], - "time": "2015-12-08T07:14:41+00:00" + "time": "2015-12-08 07:14:41" }, { "name": "sebastian/environment", @@ -5867,7 +6440,7 @@ "environment", "hhvm" ], - "time": "2016-08-18T05:49:44+00:00" + "time": "2016-08-18 05:49:44" }, { "name": "sebastian/exporter", @@ -5934,7 +6507,7 @@ "export", "exporter" ], - "time": "2016-06-17T09:04:28+00:00" + "time": "2016-06-17 09:04:28" }, { "name": "sebastian/global-state", @@ -5985,7 +6558,7 @@ "keywords": [ "global state" ], - "time": "2015-10-12T03:26:01+00:00" + "time": "2015-10-12 03:26:01" }, { "name": "sebastian/recursion-context", @@ -6038,7 +6611,7 @@ ], "description": "Provides functionality to recursively process PHP variables", "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "time": "2016-10-03T07:41:43+00:00" + "time": "2016-10-03 07:41:43" }, { "name": "sebastian/version", @@ -6073,7 +6646,7 @@ ], "description": "Library that helps with managing the version number of Git-hosted PHP projects", "homepage": "https://github.com/sebastianbergmann/version", - "time": "2015-06-21T13:59:46+00:00" + "time": "2015-06-21 13:59:46" }, { "name": "symfony/browser-kit", @@ -6130,7 +6703,7 @@ ], "description": "Symfony BrowserKit Component", "homepage": "https://symfony.com", - "time": "2017-02-21T09:12:04+00:00" + "time": "2017-02-21 09:12:04" } ], "aliases": [], diff --git a/config/sync/commerce_checkout.commerce_checkout_flow.default.yml b/config/sync/commerce_checkout.commerce_checkout_flow.default.yml new file mode 100644 index 0000000..259f203 --- /dev/null +++ b/config/sync/commerce_checkout.commerce_checkout_flow.default.yml @@ -0,0 +1,34 @@ +uuid: e37e9ace-f484-4376-9fa8-a1bfc9c738be +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: wwkDVBiXUqSzRifJbb71ajFBklJdNJ_DgS67IF-_qgY +id: default +label: Default +plugin: multistep_default +configuration: + display_checkout_progress: true + panes: + login: + allow_guest_checkout: true + allow_registration: false + step: login + weight: 0 + contact_information: + double_entry: true + step: order_information + weight: 1 + billing_information: + step: order_information + weight: 2 + review: + step: review + weight: 3 + completion_message: + step: complete + weight: 4 + order_summary: + view: commerce_checkout_order_summary + step: _sidebar + weight: 5 diff --git a/config/sync/commerce_order.commerce_order_item_type.default.yml b/config/sync/commerce_order.commerce_order_item_type.default.yml new file mode 100644 index 0000000..04beea9 --- /dev/null +++ b/config/sync/commerce_order.commerce_order_item_type.default.yml @@ -0,0 +1,14 @@ +uuid: 0d82c3ec-b813-4cdf-89ca-f07cac211e4c +langcode: en +status: true +dependencies: + enforced: + module: + - commerce_product +_core: + default_config_hash: jNPt_s6r5tiynMJ5tvaDZjlOtQ4ply0Ii-GBJ7lMZ7Y +label: Default +id: default +purchasableEntityType: commerce_product_variation +orderType: default +traits: { } diff --git a/config/sync/commerce_order.commerce_order_type.default.yml b/config/sync/commerce_order.commerce_order_type.default.yml new file mode 100644 index 0000000..3f2efb0 --- /dev/null +++ b/config/sync/commerce_order.commerce_order_type.default.yml @@ -0,0 +1,14 @@ +uuid: 51a61492-9e83-48f0-a7b2-643c82929e91 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: zf7YA-OOtWhhrphbf3YOlc49POwC9rePktH9cBavEiA +label: Default +id: default +workflow: order_default +traits: { } +refresh_mode: customer +refresh_frequency: 300 +sendReceipt: true +receiptBcc: '' diff --git a/config/sync/commerce_payment.commerce_payment_gateway.euplatesc.yml b/config/sync/commerce_payment.commerce_payment_gateway.euplatesc.yml new file mode 100644 index 0000000..3ed1a4d --- /dev/null +++ b/config/sync/commerce_payment.commerce_payment_gateway.euplatesc.yml @@ -0,0 +1,20 @@ +uuid: a2f6d2c9-c00a-4022-8c0a-6b41319f135c +langcode: en +status: true +dependencies: + module: + - commerce_euplatesc +id: euplatesc +label: EuPlatesc +weight: null +plugin: euplatesc_checkout +configuration: + merchant_id: '44840984745' + secret_key: 7c57877d6a8029c4b75082255f5250cbabcbaeb2 + redirect_method: post + display_label: EuPlatesc + mode: test + payment_method_types: + - credit_card +conditions: { } +conditionOperator: AND diff --git a/config/sync/commerce_price.commerce_currency.RON.yml b/config/sync/commerce_price.commerce_currency.RON.yml new file mode 100644 index 0000000..28231bf --- /dev/null +++ b/config/sync/commerce_price.commerce_currency.RON.yml @@ -0,0 +1,9 @@ +uuid: 42eb760d-3875-4f6c-9a88-d7d20d6412a1 +langcode: en +status: true +dependencies: { } +currencyCode: RON +name: 'Romanian Leu' +numericCode: '946' +symbol: RON +fractionDigits: 2 diff --git a/config/sync/commerce_price.commerce_currency.USD.yml b/config/sync/commerce_price.commerce_currency.USD.yml new file mode 100644 index 0000000..5561449 --- /dev/null +++ b/config/sync/commerce_price.commerce_currency.USD.yml @@ -0,0 +1,9 @@ +uuid: 3b6d33e0-6f50-49fc-a7c0-35a9f4fdd025 +langcode: en +status: true +dependencies: { } +currencyCode: USD +name: 'US Dollar' +numericCode: '840' +symbol: $ +fractionDigits: 2 diff --git a/config/sync/commerce_product.commerce_product_type.default.yml b/config/sync/commerce_product.commerce_product_type.default.yml new file mode 100644 index 0000000..f3bd23a --- /dev/null +++ b/config/sync/commerce_product.commerce_product_type.default.yml @@ -0,0 +1,12 @@ +uuid: e115d7aa-d469-4762-ab97-e362f22c8b10 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: 96ryTApvzUl00vKGZusJUDgPHQALAKN8Mb13Jxm02KU +id: default +label: Default +description: '' +variationType: default +injectVariationFields: true +traits: { } diff --git a/config/sync/commerce_product.commerce_product_variation_type.default.yml b/config/sync/commerce_product.commerce_product_variation_type.default.yml new file mode 100644 index 0000000..98839da --- /dev/null +++ b/config/sync/commerce_product.commerce_product_variation_type.default.yml @@ -0,0 +1,11 @@ +uuid: 5b5e2044-7574-43f8-afc9-d73fc921e0d8 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: QPuFH9E4612ox18hXdUXL8FhU021rCvOtYISSmvMQzc +id: default +label: Default +orderItemType: default +generateTitle: true +traits: { } diff --git a/config/sync/commerce_store.commerce_store_type.online.yml b/config/sync/commerce_store.commerce_store_type.online.yml new file mode 100644 index 0000000..155bfab --- /dev/null +++ b/config/sync/commerce_store.commerce_store_type.online.yml @@ -0,0 +1,10 @@ +uuid: 98a363e3-c5bf-452c-9429-87fd4e8db71c +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: uXc7SNfdNF3TJ81MWGMvCjsKlNSElo6Cc0lTrhLSels +id: online +label: Online +description: '' +traits: { } diff --git a/config/sync/commerce_store.settings.yml b/config/sync/commerce_store.settings.yml new file mode 100644 index 0000000..2c1decf --- /dev/null +++ b/config/sync/commerce_store.settings.yml @@ -0,0 +1,3 @@ +default_store: 389bb4d1-0150-4c08-9042-c8bc270381bf +_core: + default_config_hash: B9ZFGR76POyzj9f3Sh66F346_Jp-wnnUc78Hk3Q-60o diff --git a/config/sync/core.entity_form_display.commerce_order.default.default.yml b/config/sync/core.entity_form_display.commerce_order.default.default.yml new file mode 100644 index 0000000..80c9fdc --- /dev/null +++ b/config/sync/core.entity_form_display.commerce_order.default.default.yml @@ -0,0 +1,50 @@ +uuid: ec6e191f-5bd4-475b-8b98-368a41e055eb +langcode: en +status: true +dependencies: + config: + - commerce_order.commerce_order_type.default + - field.field.commerce_order.default.order_items + module: + - commerce_order + - inline_entity_form +_core: + default_config_hash: 1NKrIQBqELStd0cyiuHeNArhuPvOZj36faDEG1dWqEA +id: commerce_order.default.default +targetEntityType: commerce_order +bundle: default +mode: default +content: + adjustments: + type: commerce_adjustment_default + weight: 2 + settings: { } + third_party_settings: { } + region: content + billing_profile: + type: commerce_billing_profile + weight: 0 + settings: { } + third_party_settings: { } + region: content + order_items: + type: inline_entity_form_complex + weight: 1 + settings: + override_labels: true + label_singular: 'order item' + label_plural: 'order items' + allow_new: true + match_operator: CONTAINS + allow_existing: false + form_mode: default + third_party_settings: { } + region: content +hidden: + created: true + ip_address: true + mail: true + order_number: true + state: true + store_id: true + uid: true diff --git a/config/sync/core.entity_form_display.commerce_order_item.default.add_to_cart.yml b/config/sync/core.entity_form_display.commerce_order_item.default.add_to_cart.yml new file mode 100644 index 0000000..e38d181 --- /dev/null +++ b/config/sync/core.entity_form_display.commerce_order_item.default.add_to_cart.yml @@ -0,0 +1,32 @@ +uuid: c926f58b-d788-4306-baa9-9b92889fc944 +langcode: en +status: true +dependencies: + config: + - commerce_order.commerce_order_item_type.default + - core.entity_form_mode.commerce_order_item.add_to_cart + enforced: + module: + - commerce_cart + - commerce_product + module: + - commerce_product +_core: + default_config_hash: dEAP3rR9rAW6OwN2i5jskLxvkOBHsclejItF8RL_KVQ +id: commerce_order_item.default.add_to_cart +targetEntityType: commerce_order_item +bundle: default +mode: add_to_cart +content: + purchased_entity: + type: commerce_product_variation_attributes + weight: 0 + settings: { } + third_party_settings: { } + region: content +hidden: + created: true + quantity: true + status: true + uid: true + unit_price: true diff --git a/config/sync/core.entity_form_display.commerce_order_item.default.default.yml b/config/sync/core.entity_form_display.commerce_order_item.default.default.yml new file mode 100644 index 0000000..520773d --- /dev/null +++ b/config/sync/core.entity_form_display.commerce_order_item.default.default.yml @@ -0,0 +1,46 @@ +uuid: 9f5da0fa-9135-4fbd-b1b1-fbfed7c1c0a4 +langcode: en +status: true +dependencies: + config: + - commerce_order.commerce_order_item_type.default + enforced: + module: + - commerce_product + module: + - commerce_order +_core: + default_config_hash: AI9120ApX7uexCUMTuO3RgE5bWu8175i_bNlPMRXe7M +id: commerce_order_item.default.default +targetEntityType: commerce_order_item +bundle: default +mode: default +content: + purchased_entity: + type: entity_reference_autocomplete + weight: 0 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + third_party_settings: { } + region: content + quantity: + type: commerce_quantity + weight: 1 + settings: + placeholder: '' + step: '1' + third_party_settings: { } + region: content + unit_price: + type: commerce_unit_price + weight: 2 + settings: + require_confirmation: true + third_party_settings: { } + region: content +hidden: + created: true + status: true + uid: true diff --git a/config/sync/core.entity_form_display.commerce_product.default.default.yml b/config/sync/core.entity_form_display.commerce_product.default.default.yml new file mode 100644 index 0000000..4885ffe --- /dev/null +++ b/config/sync/core.entity_form_display.commerce_product.default.default.yml @@ -0,0 +1,96 @@ +uuid: ae24e52f-130a-410a-a114-013f4cc8d64b +langcode: en +status: true +dependencies: + config: + - commerce_product.commerce_product_type.default + - field.field.commerce_product.default.body + - field.field.commerce_product.default.stores + - field.field.commerce_product.default.variations + module: + - commerce + - inline_entity_form + - path + - text +_core: + default_config_hash: gcsrKJ5HqxdoqA7GqRhz33UrCLp_PxvLAMxSKJKI4uU +id: commerce_product.default.default +targetEntityType: commerce_product +bundle: default +mode: default +content: + body: + type: text_textarea_with_summary + weight: 2 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 5 + settings: { } + third_party_settings: { } + region: content + langcode: + type: language_select + weight: 3 + region: content + settings: { } + third_party_settings: { } + path: + type: path + weight: 7 + settings: { } + third_party_settings: { } + region: content + status: + type: boolean_checkbox + weight: 8 + region: content + settings: + display_label: true + third_party_settings: { } + stores: + type: commerce_entity_select + weight: 0 + settings: + hide_single_entity: true + autocomplete_threshold: 7 + autocomplete_size: 60 + autocomplete_placeholder: '' + third_party_settings: { } + region: content + title: + type: string_textfield + weight: 1 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + region: content + uid: + type: entity_reference_autocomplete + weight: 4 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + third_party_settings: { } + region: content + variations: + type: inline_entity_form_complex + weight: 6 + settings: + match_operator: CONTAINS + override_labels: false + label_singular: '' + label_plural: '' + allow_new: true + allow_existing: false + form_mode: default + third_party_settings: { } + region: content +hidden: { } diff --git a/config/sync/core.entity_form_display.commerce_product_variation.default.default.yml b/config/sync/core.entity_form_display.commerce_product_variation.default.default.yml new file mode 100644 index 0000000..295944a --- /dev/null +++ b/config/sync/core.entity_form_display.commerce_product_variation.default.default.yml @@ -0,0 +1,45 @@ +uuid: 9ec70abf-3067-4df1-b291-7727b5e78541 +langcode: en +status: true +dependencies: + config: + - commerce_product.commerce_product_variation_type.default + module: + - commerce_price +_core: + default_config_hash: tPYXAFcoBHG1jtgfl021t-ns7EE7da_S-o2zfS7aLUQ +id: commerce_product_variation.default.default +targetEntityType: commerce_product_variation +bundle: default +mode: default +content: + langcode: + type: language_select + weight: 2 + region: content + settings: { } + third_party_settings: { } + price: + type: commerce_price_default + weight: 0 + settings: { } + third_party_settings: { } + region: content + sku: + type: string_textfield + weight: -4 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + region: content + status: + type: boolean_checkbox + weight: 10 + settings: + display_label: true + third_party_settings: { } + region: content +hidden: + created: true + uid: true diff --git a/config/sync/core.entity_form_display.profile.customer.default.yml b/config/sync/core.entity_form_display.profile.customer.default.yml new file mode 100644 index 0000000..daac351 --- /dev/null +++ b/config/sync/core.entity_form_display.profile.customer.default.yml @@ -0,0 +1,26 @@ +uuid: bc59a245-50fd-470e-80fb-c0decb7c325e +langcode: en +status: true +dependencies: + config: + - field.field.profile.customer.address + - profile.type.customer + enforced: + module: + - commerce_order + module: + - address +_core: + default_config_hash: 7mnnVkJkUSPhil9xoiTfdTivMqxCUloT_71AHWNUbJg +id: profile.customer.default +targetEntityType: profile +bundle: customer +mode: default +content: + address: + type: address_default + weight: 0 + settings: { } + third_party_settings: { } + region: content +hidden: { } diff --git a/config/sync/core.entity_form_mode.commerce_order_item.add_to_cart.yml b/config/sync/core.entity_form_mode.commerce_order_item.add_to_cart.yml new file mode 100644 index 0000000..6495627 --- /dev/null +++ b/config/sync/core.entity_form_mode.commerce_order_item.add_to_cart.yml @@ -0,0 +1,15 @@ +uuid: 924cf8e7-8f8a-409d-9ade-1ce664f87417 +langcode: en +status: true +dependencies: + enforced: + module: + - commerce_cart + module: + - commerce_order +_core: + default_config_hash: BeqBf6Mm59Nebv4SsV0yvK5EspkCegPqvwnqwEBvEp0 +id: commerce_order_item.add_to_cart +label: 'Add to cart' +targetEntityType: commerce_order_item +cache: true diff --git a/config/sync/core.entity_view_display.commerce_order.default.default.yml b/config/sync/core.entity_view_display.commerce_order.default.default.yml new file mode 100644 index 0000000..266616d --- /dev/null +++ b/config/sync/core.entity_view_display.commerce_order.default.default.yml @@ -0,0 +1,95 @@ +uuid: 3cf15f59-0d14-4201-9a8f-1561187bf78c +langcode: en +status: true +dependencies: + config: + - commerce_order.commerce_order_type.default + - field.field.commerce_order.default.order_items + module: + - commerce_order + - state_machine + - user +_core: + default_config_hash: DGdHybHLw9uLIR4f16miPoJYlsJxbxZk_li7kD13aE4 +id: commerce_order.default.default +targetEntityType: commerce_order +bundle: default +mode: default +content: + changed: + type: timestamp + weight: 4 + label: inline + settings: + date_format: short + custom_date_format: '' + timezone: '' + third_party_settings: { } + region: content + completed: + label: inline + type: timestamp + weight: 2 + settings: + date_format: short + custom_date_format: '' + timezone: '' + third_party_settings: { } + region: content + ip_address: + label: inline + type: string + weight: 7 + settings: + link_to_entity: false + third_party_settings: { } + region: content + mail: + label: inline + type: basic_string + weight: 6 + settings: { } + third_party_settings: { } + region: content + order_items: + type: commerce_order_item_table + weight: 0 + settings: { } + third_party_settings: { } + label: hidden + region: content + placed: + label: inline + type: timestamp + weight: 3 + settings: + date_format: short + custom_date_format: '' + timezone: '' + third_party_settings: { } + region: content + state: + label: hidden + type: state_transition_form + weight: 8 + settings: { } + third_party_settings: { } + region: content + total_price: + type: commerce_order_total_summary + weight: 1 + settings: { } + third_party_settings: { } + label: hidden + region: content + uid: + label: inline + type: author + weight: 5 + settings: { } + third_party_settings: { } + region: content +hidden: + billing_profile: true + order_number: true + store_id: true diff --git a/config/sync/core.entity_view_display.commerce_order.default.user.yml b/config/sync/core.entity_view_display.commerce_order.default.user.yml new file mode 100644 index 0000000..1a5f030 --- /dev/null +++ b/config/sync/core.entity_view_display.commerce_order.default.user.yml @@ -0,0 +1,89 @@ +uuid: 4907c139-b02e-470d-bcd2-5a1ad18d1274 +langcode: en +status: true +dependencies: + config: + - commerce_order.commerce_order_type.default + - core.entity_view_mode.commerce_order.user + - field.field.commerce_order.default.order_items + module: + - commerce_order + - entity_reference_revisions + - options +_core: + default_config_hash: UcQydNwgf9NMjqKyyPwC9mJu-QmHqV7HKOcIp0VuV7w +id: commerce_order.default.user +targetEntityType: commerce_order +bundle: default +mode: user +content: + billing_profile: + type: entity_reference_revisions_entity_view + weight: 0 + label: above + settings: + view_mode: default + link: '' + third_party_settings: { } + region: content + completed: + label: inline + type: timestamp + weight: 2 + settings: + date_format: short + custom_date_format: '' + timezone: '' + third_party_settings: { } + region: content + mail: + label: inline + type: basic_string + weight: 1 + settings: { } + third_party_settings: { } + region: content + order_items: + type: commerce_order_item_table + weight: 5 + settings: { } + third_party_settings: { } + label: hidden + region: content + order_number: + type: string + weight: 0 + label: inline + settings: + link_to_entity: false + third_party_settings: { } + region: content + placed: + label: inline + type: timestamp + weight: 3 + settings: + date_format: short + custom_date_format: '' + timezone: '' + third_party_settings: { } + region: content + state: + type: list_default + weight: 4 + label: inline + settings: { } + third_party_settings: { } + region: content + total_price: + type: commerce_order_total_summary + weight: 6 + settings: { } + third_party_settings: { } + label: hidden + region: content +hidden: + changed: true + ip_address: true + store_id: true + uid: true diff --git a/config/sync/core.entity_view_display.commerce_order_item.default.default.yml b/config/sync/core.entity_view_display.commerce_order_item.default.default.yml new file mode 100644 index 0000000..30dee2a --- /dev/null +++ b/config/sync/core.entity_view_display.commerce_order_item.default.default.yml @@ -0,0 +1,58 @@ +uuid: affbce11-04a0-480b-ac78-d69c30acdf6f +langcode: en +status: true +dependencies: + config: + - commerce_order.commerce_order_item_type.default + enforced: + module: + - commerce_product + module: + - commerce_price +_core: + default_config_hash: YvPk7-s7bZEOuxWBbu1G5wo4qc-OOnZpmCwPUdhp40o +id: commerce_order_item.default.default +targetEntityType: commerce_order_item +bundle: default +mode: default +content: + purchased_entity: + type: entity_reference_entity_view + weight: 0 + settings: + view_mode: default + link: false + third_party_settings: { } + label: above + region: content + quantity: + type: number_decimal + weight: 1 + settings: + thousand_separator: '' + decimal_separator: . + scale: 2 + prefix_suffix: true + third_party_settings: { } + label: above + region: content + total_price: + type: commerce_price_default + weight: 3 + settings: + strip_trailing_zeroes: false + display_currency_code: false + third_party_settings: { } + label: above + region: content + unit_price: + type: commerce_price_default + weight: 2 + settings: + strip_trailing_zeroes: false + display_currency_code: false + third_party_settings: { } + label: above + region: content +hidden: + adjustments: true diff --git a/config/sync/core.entity_view_display.commerce_product.default.default.yml b/config/sync/core.entity_view_display.commerce_product.default.default.yml new file mode 100644 index 0000000..066cd1d --- /dev/null +++ b/config/sync/core.entity_view_display.commerce_product.default.default.yml @@ -0,0 +1,41 @@ +uuid: 3f9b20ea-2d5a-4239-84e1-f3cd6b2eb670 +langcode: en +status: true +dependencies: + config: + - commerce_product.commerce_product_type.default + - field.field.commerce_product.default.body + - field.field.commerce_product.default.stores + - field.field.commerce_product.default.variations + module: + - commerce_product + - text +_core: + default_config_hash: gT03TFcuSod4d9uPQNs_gqK1F1QZ0Ray5CBYW0BNLnk +id: commerce_product.default.default +targetEntityType: commerce_product +bundle: default +mode: default +content: + body: + type: text_default + weight: 0 + label: hidden + settings: { } + third_party_settings: { } + region: content + variations: + type: commerce_add_to_cart + weight: 1 + label: hidden + settings: + default_quantity: '1' + combine: true + show_quantity: false + third_party_settings: { } + region: content +hidden: + created: true + langcode: true + stores: true + uid: true diff --git a/config/sync/core.entity_view_display.commerce_product_variation.default.cart.yml b/config/sync/core.entity_view_display.commerce_product_variation.default.cart.yml new file mode 100644 index 0000000..00898a1 --- /dev/null +++ b/config/sync/core.entity_view_display.commerce_product_variation.default.cart.yml @@ -0,0 +1,31 @@ +uuid: 3b14aeb9-c9a2-4f94-bf65-bac05760d20c +langcode: en +status: true +dependencies: + config: + - commerce_product.commerce_product_variation_type.default + - core.entity_view_mode.commerce_product_variation.cart + enforced: + module: + - commerce_cart + - commerce_product +_core: + default_config_hash: EVn6BiYwtiYYiS-9vG5bvZDkkX9hQq1SgIqeQ_iPC-I +id: commerce_product_variation.default.cart +targetEntityType: commerce_product_variation +bundle: default +mode: cart +content: + product_id: + type: entity_reference_label + weight: 0 + label: hidden + settings: + link: true + third_party_settings: { } + region: content +hidden: + langcode: true + price: true + sku: true + title: true diff --git a/config/sync/core.entity_view_display.commerce_product_variation.default.summary.yml b/config/sync/core.entity_view_display.commerce_product_variation.default.summary.yml new file mode 100644 index 0000000..04fc143 --- /dev/null +++ b/config/sync/core.entity_view_display.commerce_product_variation.default.summary.yml @@ -0,0 +1,34 @@ +uuid: 1533acfd-769b-40c1-b727-1de5d82862d2 +langcode: en +status: true +dependencies: + config: + - commerce_product.commerce_product_variation_type.default + - core.entity_view_mode.commerce_product_variation.summary +_core: + default_config_hash: nWr1ZTB007GRrqbIhsncMGNe3-kSio6mGWfNkEgE28M +id: commerce_product_variation.default.summary +targetEntityType: commerce_product_variation +bundle: default +mode: summary +content: + product_id: + type: entity_reference_label + weight: 0 + label: hidden + settings: + link: true + third_party_settings: { } + region: content + title: + label: hidden + type: string + weight: -5 + settings: + link_to_entity: false + third_party_settings: { } + region: content +hidden: + langcode: true + price: true + sku: true diff --git a/config/sync/core.entity_view_display.commerce_store.online.default.yml b/config/sync/core.entity_view_display.commerce_store.online.default.yml new file mode 100644 index 0000000..ade1a79 --- /dev/null +++ b/config/sync/core.entity_view_display.commerce_store.online.default.yml @@ -0,0 +1,28 @@ +uuid: 0b679ff5-65a5-4658-bd58-10d40f691d17 +langcode: en +status: true +dependencies: + config: + - commerce_store.commerce_store_type.online + module: + - address +_core: + default_config_hash: fUxrlZt5z8U8dKAADqGtH0YQWZSVXIkH9Ga5abq8HwU +id: commerce_store.online.default +targetEntityType: commerce_store +bundle: online +mode: default +content: + address: + type: address_default + weight: 1 + label: above + settings: { } + third_party_settings: { } + region: content +hidden: + billing_countries: true + default_currency: true + langcode: true + mail: true + name: true diff --git a/config/sync/core.entity_view_display.node.about_us.teaser.yml b/config/sync/core.entity_view_display.node.about_us.teaser.yml index d820b18..6c3ac29 100644 --- a/config/sync/core.entity_view_display.node.about_us.teaser.yml +++ b/config/sync/core.entity_view_display.node.about_us.teaser.yml @@ -26,4 +26,6 @@ content: weight: 100 region: content hidden: + field_board_members: true + field_legal_framework: true langcode: true diff --git a/config/sync/core.entity_view_display.node.event.event_listing.yml b/config/sync/core.entity_view_display.node.event.event_listing.yml index 03e1a7c..58374db 100644 --- a/config/sync/core.entity_view_display.node.event.event_listing.yml +++ b/config/sync/core.entity_view_display.node.event.event_listing.yml @@ -68,6 +68,7 @@ content: type: datetime_default region: content hidden: + field_image: true field_location: true langcode: true links: true diff --git a/config/sync/core.entity_view_display.node.event.full.yml b/config/sync/core.entity_view_display.node.event.full.yml index 8dc4b22..5872804 100644 --- a/config/sync/core.entity_view_display.node.event.full.yml +++ b/config/sync/core.entity_view_display.node.event.full.yml @@ -75,5 +75,6 @@ content: type: datetime_default region: content hidden: + field_image: true langcode: true links: true diff --git a/config/sync/core.entity_view_display.node.event.teaser.yml b/config/sync/core.entity_view_display.node.event.teaser.yml index 250b976..2ef0264 100644 --- a/config/sync/core.entity_view_display.node.event.teaser.yml +++ b/config/sync/core.entity_view_display.node.event.teaser.yml @@ -22,6 +22,7 @@ hidden: body: true field_ending_date: true field_event_type: true + field_image: true field_location: true field_organizer: true field_starting_date: true diff --git a/config/sync/core.entity_view_display.profile.customer.default.yml b/config/sync/core.entity_view_display.profile.customer.default.yml new file mode 100644 index 0000000..0a2961a --- /dev/null +++ b/config/sync/core.entity_view_display.profile.customer.default.yml @@ -0,0 +1,27 @@ +uuid: c8ebe89f-b389-418e-b546-a48abfbec38a +langcode: en +status: true +dependencies: + config: + - field.field.profile.customer.address + - profile.type.customer + enforced: + module: + - commerce_order + module: + - address +_core: + default_config_hash: '-D8G44VGLIAIFvoHm_u7-Awnie4iCenOWfldrpNy_ys' +id: profile.customer.default +targetEntityType: profile +bundle: customer +mode: default +content: + address: + type: address_default + weight: 0 + label: hidden + settings: { } + third_party_settings: { } + region: content +hidden: { } diff --git a/config/sync/core.entity_view_mode.commerce_order.user.yml b/config/sync/core.entity_view_mode.commerce_order.user.yml new file mode 100644 index 0000000..6889cc9 --- /dev/null +++ b/config/sync/core.entity_view_mode.commerce_order.user.yml @@ -0,0 +1,12 @@ +uuid: 4bee9cfc-25ae-449d-aeda-ef1bfb264657 +langcode: en +status: true +dependencies: + module: + - commerce_order +_core: + default_config_hash: zGcQPC5MWgNSsQxarSWsXNIVpjb_vDAdcDLPupYmxQ8 +id: commerce_order.user +label: User +targetEntityType: commerce_order +cache: true diff --git a/config/sync/core.entity_view_mode.commerce_product_attribute_value.add_to_cart.yml b/config/sync/core.entity_view_mode.commerce_product_attribute_value.add_to_cart.yml new file mode 100644 index 0000000..3e477af --- /dev/null +++ b/config/sync/core.entity_view_mode.commerce_product_attribute_value.add_to_cart.yml @@ -0,0 +1,12 @@ +uuid: 5cbcc635-f224-421c-a3b9-715b471a7935 +langcode: en +status: true +dependencies: + module: + - commerce_product +_core: + default_config_hash: ry5RvX-mOnp2GQWzMqSYjPz-jKfP1nSo4Xo4kJCodlE +id: commerce_product_attribute_value.add_to_cart +label: 'Add to Cart Form' +targetEntityType: commerce_product_attribute_value +cache: true diff --git a/config/sync/core.entity_view_mode.commerce_product_variation.cart.yml b/config/sync/core.entity_view_mode.commerce_product_variation.cart.yml new file mode 100644 index 0000000..8134180 --- /dev/null +++ b/config/sync/core.entity_view_mode.commerce_product_variation.cart.yml @@ -0,0 +1,16 @@ +uuid: eac161b8-89af-462d-aeec-406afd1f909a +langcode: en +status: true +dependencies: + enforced: + module: + - commerce_cart + - commerce_product + module: + - commerce_product +_core: + default_config_hash: SjZo-csuMc7wQHh55OpVRuTrQTp8zy3k6cR9RykDWIg +id: commerce_product_variation.cart +label: Cart +targetEntityType: commerce_product_variation +cache: true diff --git a/config/sync/core.entity_view_mode.commerce_product_variation.summary.yml b/config/sync/core.entity_view_mode.commerce_product_variation.summary.yml new file mode 100644 index 0000000..a593df3 --- /dev/null +++ b/config/sync/core.entity_view_mode.commerce_product_variation.summary.yml @@ -0,0 +1,12 @@ +uuid: 95f17c0b-96c0-46c1-9cbc-38634b38683d +langcode: en +status: true +dependencies: + module: + - commerce_product +_core: + default_config_hash: QL02YVm5CFmG2b5knIj9s_FkzaNGqMWtMsTER6zzCtE +id: commerce_product_variation.summary +label: Summary +targetEntityType: commerce_product_variation +cache: true diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 93f0e53..a039990 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -1,4 +1,5 @@ module: + address: 0 automated_cron: 0 block: 0 block_content: 0 @@ -6,6 +7,15 @@ module: ckeditor: 0 color: 0 comment: 0 + commerce: 0 + commerce_cart: 0 + commerce_checkout: 0 + commerce_euplatesc: 0 + commerce_order: 0 + commerce_payment: 0 + commerce_price: 0 + commerce_product: 0 + commerce_store: 0 config: 0 contact: 0 contextual: 0 @@ -14,6 +24,7 @@ module: dblog: 0 dynamic_page_cache: 0 editor: 0 + entity: 0 entity_reference_revisions: 0 field: 0 field_ui: 0 @@ -23,6 +34,7 @@ module: help: 0 history: 0 image: 0 + inline_entity_form: 0 language: 0 link: 0 locale: 0 @@ -31,11 +43,13 @@ module: options: 0 page_cache: 0 path: 0 + profile: 0 quickedit: 0 rdf: 0 search: 0 serialization: 0 shortcut: 0 + state_machine: 0 system: 0 taxonomy: 0 text: 0 diff --git a/config/sync/field.field.commerce_order.default.order_items.yml b/config/sync/field.field.commerce_order.default.order_items.yml new file mode 100644 index 0000000..ba7587b --- /dev/null +++ b/config/sync/field.field.commerce_order.default.order_items.yml @@ -0,0 +1,23 @@ +uuid: 7707033e-817a-4aa9-a81e-ef1b1e138023 +langcode: en +status: true +dependencies: + config: + - commerce_order.commerce_order_type.default + - field.storage.commerce_order.order_items +_core: + default_config_hash: iqPSpcfsl-SdT3MtQLp1uBc4udRzM_185m3Yqd5KdTA +id: commerce_order.default.order_items +field_name: order_items +entity_type: commerce_order +bundle: default +label: 'Order items' +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:commerce_order_item' + handler_settings: { } +field_type: entity_reference diff --git a/config/sync/field.field.commerce_product.default.body.yml b/config/sync/field.field.commerce_product.default.body.yml new file mode 100644 index 0000000..f337299 --- /dev/null +++ b/config/sync/field.field.commerce_product.default.body.yml @@ -0,0 +1,24 @@ +uuid: ce9101be-d3eb-4772-98ee-fbbf918f7a5f +langcode: en +status: true +dependencies: + config: + - commerce_product.commerce_product_type.default + - field.storage.commerce_product.body + module: + - text +_core: + default_config_hash: ObNdu_OSuSmozy8UUi9cKY41dPs7s1ZOuWhG6Q5KdR8 +id: commerce_product.default.body +field_name: body +entity_type: commerce_product +bundle: default +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: false +field_type: text_with_summary diff --git a/config/sync/field.field.commerce_product.default.stores.yml b/config/sync/field.field.commerce_product.default.stores.yml new file mode 100644 index 0000000..9ee2660 --- /dev/null +++ b/config/sync/field.field.commerce_product.default.stores.yml @@ -0,0 +1,23 @@ +uuid: 289292bd-d503-4b6a-8e5a-49990247bba0 +langcode: en +status: true +dependencies: + config: + - commerce_product.commerce_product_type.default + - field.storage.commerce_product.stores +_core: + default_config_hash: RYNTEdoNOXnNo71_mrAz8Gz37XTuuUsXOZTzAYx9wI8 +id: commerce_product.default.stores +field_name: stores +entity_type: commerce_product +bundle: default +label: Stores +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:commerce_store' + handler_settings: { } +field_type: entity_reference diff --git a/config/sync/field.field.commerce_product.default.variations.yml b/config/sync/field.field.commerce_product.default.variations.yml new file mode 100644 index 0000000..d74978f --- /dev/null +++ b/config/sync/field.field.commerce_product.default.variations.yml @@ -0,0 +1,26 @@ +uuid: 50986b8e-f027-4107-8e88-3ad23fb72b0f +langcode: en +status: true +dependencies: + config: + - commerce_product.commerce_product_type.default + - commerce_product.commerce_product_variation_type.default + - field.storage.commerce_product.variations +_core: + default_config_hash: '-I2JKkD4E2ths6CAmEuI9IWXzBLBO5CcOKVIyc81CNE' +id: commerce_product.default.variations +field_name: variations +entity_type: commerce_product +bundle: default +label: Variations +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:commerce_product_variation' + handler_settings: + target_bundles: + - default +field_type: entity_reference diff --git a/config/sync/field.field.profile.customer.address.yml b/config/sync/field.field.profile.customer.address.yml new file mode 100644 index 0000000..d0a6cbf --- /dev/null +++ b/config/sync/field.field.profile.customer.address.yml @@ -0,0 +1,37 @@ +uuid: ea373860-aab1-476c-9ce4-0c497397a0a3 +langcode: en +status: true +dependencies: + config: + - field.storage.profile.address + - profile.type.customer + module: + - address +_core: + default_config_hash: 0lW9atu6EsqDPufp7ZJ4IVzmKSzeZv0vhbHwZ2fIh8k +id: profile.customer.address +field_name: address +entity_type: profile +bundle: customer +label: Address +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + available_countries: { } + fields: + administrativeArea: administrativeArea + locality: locality + dependentLocality: dependentLocality + postalCode: postalCode + sortingCode: sortingCode + addressLine1: addressLine1 + addressLine2: addressLine2 + organization: organization + givenName: givenName + additionalName: additionalName + familyName: familyName + langcode_override: '' +field_type: address diff --git a/config/sync/field.field.user.user.commerce_remote_id.yml b/config/sync/field.field.user.user.commerce_remote_id.yml new file mode 100644 index 0000000..6364457 --- /dev/null +++ b/config/sync/field.field.user.user.commerce_remote_id.yml @@ -0,0 +1,26 @@ +uuid: dd4b341a-e382-4103-9563-1c742680ee4e +langcode: en +status: true +dependencies: + config: + - field.storage.user.commerce_remote_id + enforced: + module: + - commerce_payment + module: + - commerce + - user +_core: + default_config_hash: Zu4REVGzMPlwpQVE7u1sM_74HqLCp0u42VNWlAwZcIw +id: user.user.commerce_remote_id +field_name: commerce_remote_id +entity_type: user +bundle: user +label: 'Remote ID' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: commerce_remote_id diff --git a/config/sync/field.storage.commerce_order.order_items.yml b/config/sync/field.storage.commerce_order.order_items.yml new file mode 100644 index 0000000..113f8cf --- /dev/null +++ b/config/sync/field.storage.commerce_order.order_items.yml @@ -0,0 +1,21 @@ +uuid: 2f4d3c36-b482-4cff-b739-a91eb09c205b +langcode: en +status: true +dependencies: + module: + - commerce_order +_core: + default_config_hash: XXkG3364KELPh2dm7U58qNcPNoUgrvC2zj9LTHF4V5E +id: commerce_order.order_items +field_name: order_items +entity_type: commerce_order +type: entity_reference +settings: + target_type: commerce_order_item +module: core +locked: true +cardinality: -1 +translatable: false +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.commerce_product.body.yml b/config/sync/field.storage.commerce_product.body.yml new file mode 100644 index 0000000..d9d8100 --- /dev/null +++ b/config/sync/field.storage.commerce_product.body.yml @@ -0,0 +1,21 @@ +uuid: 53c92c49-cd3f-4d20-ba4e-78c2667b725e +langcode: en +status: true +dependencies: + module: + - commerce_product + - text +_core: + default_config_hash: nhYtx4dRhENXHM78QmiysOM5d1H8OLi_837Ukf5Mpb8 +id: commerce_product.body +field_name: body +entity_type: commerce_product +type: text_with_summary +settings: { } +module: text +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.commerce_product.stores.yml b/config/sync/field.storage.commerce_product.stores.yml new file mode 100644 index 0000000..1d4acce --- /dev/null +++ b/config/sync/field.storage.commerce_product.stores.yml @@ -0,0 +1,22 @@ +uuid: a1ee62a1-47cb-4faf-9796-23ce5da16119 +langcode: en +status: true +dependencies: + module: + - commerce_product + - commerce_store +_core: + default_config_hash: qzJaXjkjRd_-1CF6EnCb5fpCcA6mnBB34P4qOOQ6n9g +id: commerce_product.stores +field_name: stores +entity_type: commerce_product +type: entity_reference +settings: + target_type: commerce_store +module: core +locked: true +cardinality: -1 +translatable: false +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.commerce_product.variations.yml b/config/sync/field.storage.commerce_product.variations.yml new file mode 100644 index 0000000..10a245e --- /dev/null +++ b/config/sync/field.storage.commerce_product.variations.yml @@ -0,0 +1,21 @@ +uuid: db40cf78-14ee-44d1-86c5-03b13133db38 +langcode: en +status: true +dependencies: + module: + - commerce_product +_core: + default_config_hash: '-sSnK9eimilO8WwVtSpdX2rg9gGrtSKccb6s59G_kBM' +id: commerce_product.variations +field_name: variations +entity_type: commerce_product +type: entity_reference +settings: + target_type: commerce_product_variation +module: core +locked: true +cardinality: -1 +translatable: false +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.profile.address.yml b/config/sync/field.storage.profile.address.yml new file mode 100644 index 0000000..be35df4 --- /dev/null +++ b/config/sync/field.storage.profile.address.yml @@ -0,0 +1,24 @@ +uuid: c2fdfd8c-dace-4b85-bd7b-67c6dc25964e +langcode: en +status: true +dependencies: + enforced: + module: + - commerce_order + module: + - address + - profile +_core: + default_config_hash: Epax3eTdFPMQ3dTymm1zHnwqZ9DmyyHA0F18AMuUKtE +id: profile.address +field_name: address +entity_type: profile +type: address +settings: { } +module: address +locked: true +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.user.commerce_remote_id.yml b/config/sync/field.storage.user.commerce_remote_id.yml new file mode 100644 index 0000000..1034d5e --- /dev/null +++ b/config/sync/field.storage.user.commerce_remote_id.yml @@ -0,0 +1,24 @@ +uuid: 332ba3c7-a84d-4255-a98d-e6dc7078d155 +langcode: en +status: true +dependencies: + enforced: + module: + - commerce_payment + module: + - commerce + - user +_core: + default_config_hash: YLh2hnX0ZtVtJpFWUkcjkpbgJAP85JuAamng9bLk8M8 +id: user.commerce_remote_id +field_name: commerce_remote_id +entity_type: user +type: commerce_remote_id +settings: { } +module: commerce +locked: true +cardinality: -1 +translatable: false +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/language.negotiation.yml b/config/sync/language.negotiation.yml index 22d932d..afcf540 100644 --- a/config/sync/language.negotiation.yml +++ b/config/sync/language.negotiation.yml @@ -4,6 +4,7 @@ url: source: path_prefix prefixes: en: '' + '': null domains: en: '' selected_langcode: site_default diff --git a/config/sync/profile.type.customer.yml b/config/sync/profile.type.customer.yml new file mode 100644 index 0000000..a4bf0cf --- /dev/null +++ b/config/sync/profile.type.customer.yml @@ -0,0 +1,17 @@ +uuid: 8b7ce71a-e1f6-4b40-9a6b-18c9f82c44d6 +langcode: en +status: true +dependencies: + enforced: + module: + - commerce_order +_core: + default_config_hash: PZl4AQDUouSVwavb0FNRlcbJx924n5FtCq8l73AMj5g +id: customer +label: Customer +registration: false +multiple: true +roles: { } +weight: 0 +use_revisions: false +description: null diff --git a/config/sync/search.settings.yml b/config/sync/search.settings.yml index 52301dd..8d3840d 100644 --- a/config/sync/search.settings.yml +++ b/config/sync/search.settings.yml @@ -1,5 +1,4 @@ and_or_limit: 7 -default_page: node_search index: cron_limit: 100 overlap_cjk: true diff --git a/config/sync/system.action.commerce_order_delete_action.yml b/config/sync/system.action.commerce_order_delete_action.yml new file mode 100644 index 0000000..e3aab6b --- /dev/null +++ b/config/sync/system.action.commerce_order_delete_action.yml @@ -0,0 +1,16 @@ +uuid: 39a76ab7-a712-4a28-8060-ee31081a39df +langcode: en +status: true +dependencies: + enforced: + module: + - commerce_order + module: + - entity +_core: + default_config_hash: GDUgwBmDhcGNHBz3FBgXqXvyuMJVsKy9oytH9wNOJns +id: commerce_order_delete_action +label: 'Delete order' +type: commerce_order +plugin: 'entity_delete_action:commerce_order' +configuration: { } diff --git a/config/sync/system.action.commerce_product_delete_action.yml b/config/sync/system.action.commerce_product_delete_action.yml new file mode 100644 index 0000000..385cf00 --- /dev/null +++ b/config/sync/system.action.commerce_product_delete_action.yml @@ -0,0 +1,16 @@ +uuid: 6369ef76-8ba6-4991-a875-a27badf7a9b0 +langcode: en +status: true +dependencies: + enforced: + module: + - commerce_product + module: + - entity +_core: + default_config_hash: rxmGRw66r86CkHY9zkcXVic946t0v1Qn0boxBY5n6c0 +id: commerce_product_delete_action +label: 'Delete product' +type: commerce_product +plugin: 'entity_delete_action:commerce_product' +configuration: { } diff --git a/config/sync/system.action.commerce_publish_product.yml b/config/sync/system.action.commerce_publish_product.yml new file mode 100644 index 0000000..23b860a --- /dev/null +++ b/config/sync/system.action.commerce_publish_product.yml @@ -0,0 +1,13 @@ +uuid: 80108cc0-3711-4038-ab87-12559365ea28 +langcode: en +status: true +dependencies: + module: + - commerce_product +_core: + default_config_hash: 83abjxFWTlkso65OfwvUzv_VvAc9iIswF2kW_MGZmY8 +id: commerce_publish_product +label: 'Publish product' +type: commerce_product +plugin: commerce_publish_product +configuration: { } diff --git a/config/sync/system.action.commerce_store_delete_action.yml b/config/sync/system.action.commerce_store_delete_action.yml new file mode 100644 index 0000000..408e8c7 --- /dev/null +++ b/config/sync/system.action.commerce_store_delete_action.yml @@ -0,0 +1,16 @@ +uuid: 0a8d9651-6aa2-4f23-82c6-0cfbf8244c2b +langcode: en +status: true +dependencies: + enforced: + module: + - commerce_store + module: + - entity +_core: + default_config_hash: UdhJAuixyuIu-hp_uqul-Gm97CiABMd1mM6GgzdwL3I +id: commerce_store_delete_action +label: 'Delete store' +type: commerce_store +plugin: 'entity_delete_action:commerce_store' +configuration: { } diff --git a/config/sync/system.action.commerce_unpublish_product.yml b/config/sync/system.action.commerce_unpublish_product.yml new file mode 100644 index 0000000..45ea1cf --- /dev/null +++ b/config/sync/system.action.commerce_unpublish_product.yml @@ -0,0 +1,13 @@ +uuid: b283cb76-33b8-43e0-bede-f305910f580f +langcode: en +status: true +dependencies: + module: + - commerce_product +_core: + default_config_hash: 6gfQWDjHFkJsE2C2ayhUL7x1jBGPgOhr3SGF15Kxy-w +id: commerce_unpublish_product +label: 'Unpublish product' +type: commerce_product +plugin: commerce_unpublish_product +configuration: { } diff --git a/config/sync/system.action.profile_delete_action.yml b/config/sync/system.action.profile_delete_action.yml new file mode 100644 index 0000000..7c42171 --- /dev/null +++ b/config/sync/system.action.profile_delete_action.yml @@ -0,0 +1,13 @@ +uuid: 1ffe4597-d78c-4b5f-a9c8-7524f6d5ffb1 +langcode: en +status: true +dependencies: + module: + - profile +_core: + default_config_hash: 7iaCHiR7rJnpuIcqcYxtZ6OFm7HnFfjZJdE1s-8K4RM +id: profile_delete_action +label: 'Delete selected profile' +type: profile +plugin: profile_delete_action +configuration: { } diff --git a/config/sync/system.action.profile_publish_action.yml b/config/sync/system.action.profile_publish_action.yml new file mode 100644 index 0000000..ef38ef1 --- /dev/null +++ b/config/sync/system.action.profile_publish_action.yml @@ -0,0 +1,13 @@ +uuid: 6a4842f4-01ec-46df-a7eb-87290a8fb254 +langcode: en +status: true +dependencies: + module: + - profile +_core: + default_config_hash: dz5_l09fj1m6b4MZVYlHjYHsXSlG9aQHGGoupPb8phg +id: profile_publish_action +label: 'Publish selected profile' +type: profile +plugin: profile_publish_action +configuration: { } diff --git a/config/sync/system.action.profile_unpublish_action.yml b/config/sync/system.action.profile_unpublish_action.yml new file mode 100644 index 0000000..ac76ee0 --- /dev/null +++ b/config/sync/system.action.profile_unpublish_action.yml @@ -0,0 +1,13 @@ +uuid: a50c41cf-6e8b-4932-8119-24daf1957050 +langcode: en +status: true +dependencies: + module: + - profile +_core: + default_config_hash: QWiXic0BIuoYYgvkiSTxsCsPPi7k1mYuHOTIAPhoT4Q +id: profile_unpublish_action +label: 'Unpublish selected profile' +type: profile +plugin: profile_unpublish_action +configuration: { } diff --git a/config/sync/user.role.anonymous.yml b/config/sync/user.role.anonymous.yml index ddcc79e..9b7fcc4 100644 --- a/config/sync/user.role.anonymous.yml +++ b/config/sync/user.role.anonymous.yml @@ -9,6 +9,9 @@ label: 'Anonymous user' weight: 0 is_admin: false permissions: + - 'access cart' + - 'access checkout' - 'access comments' - 'access content' - 'search content' + - 'view commerce_product' diff --git a/config/sync/user.role.authenticated.yml b/config/sync/user.role.authenticated.yml index 5823782..ba89ee3 100644 --- a/config/sync/user.role.authenticated.yml +++ b/config/sync/user.role.authenticated.yml @@ -9,9 +9,12 @@ label: 'Authenticated user' weight: 1 is_admin: false permissions: + - 'access cart' + - 'access checkout' - 'access comments' - 'access content' - 'access shortcuts' - 'post comments' - 'search content' - 'skip comment approval' + - 'view commerce_product' diff --git a/config/sync/user.settings.yml b/config/sync/user.settings.yml index 7627c6b..d10a86b 100644 --- a/config/sync/user.settings.yml +++ b/config/sync/user.settings.yml @@ -9,7 +9,7 @@ notify: register_admin_created: true register_no_approval_required: true register_pending_approval: true -register: visitors_admin_approval +register: visitors cancel_method: user_cancel_block password_reset_timeout: 86400 password_strength: true diff --git a/config/sync/views.view.commerce_cart_block.yml b/config/sync/views.view.commerce_cart_block.yml new file mode 100644 index 0000000..ad4a066 --- /dev/null +++ b/config/sync/views.view.commerce_cart_block.yml @@ -0,0 +1,398 @@ +uuid: 31ab0e97-9e55-40ff-aae4-f29c6ff565e1 +langcode: en +status: true +dependencies: + enforced: + module: + - commerce_cart + module: + - commerce_order + - commerce_price +_core: + default_config_hash: l3fypt3kcp9rdktG4mKnQvlejXH8I0q2mXlAOFAknzU +id: commerce_cart_block +label: 'Cart block' +module: views +description: '' +tag: commerce_cart_block +base_table: commerce_order +base_field: order_id +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: none + options: { } + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: none + options: + offset: 0 + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + override: true + sticky: false + caption: '' + summary: '' + description: '' + columns: + order_number: order_number + info: + order_number: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + default: '-1' + empty_table: false + row: + type: fields + options: + inline: { } + separator: '' + hide_empty: false + default_field_elements: true + fields: + quantity: + id: quantity + table: commerce_order_item + field: quantity + relationship: order_items + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: true + text: '{{ quantity }} x' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: number_decimal + settings: + thousand_separator: '' + prefix_suffix: false + decimal_separator: . + scale: 0 + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order_item + entity_field: quantity + plugin_id: field + title: + id: title + table: commerce_order_item + field: title + relationship: order_items + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: false + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order_item + entity_field: title + plugin_id: field + total_price__number: + id: total_price__number + table: commerce_order_item + field: total_price__number + relationship: order_items + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: number + type: commerce_price_default + settings: + strip_trailing_zeroes: false + display_currency_code: false + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order_item + entity_field: total_price + plugin_id: field + filters: + cart: + id: cart + table: commerce_order + field: cart + relationship: none + group_type: group + admin_label: '' + operator: '=' + value: '1' + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: commerce_order + entity_field: cart + plugin_id: boolean + sorts: + order_item_id: + id: order_item_id + table: commerce_order_item + field: order_item_id + relationship: order_items + group_type: group + admin_label: '' + order: ASC + exposed: false + expose: + label: '' + entity_type: commerce_order_item + entity_field: order_item_id + plugin_id: standard + header: { } + footer: { } + empty: { } + relationships: + order_items: + id: order_items + table: commerce_order__order_items + field: order_items + relationship: none + group_type: group + admin_label: 'order_items: Order Item' + required: true + plugin_id: standard + arguments: + order_id: + id: order_id + table: commerce_order + field: order_id + relationship: none + group_type: group + admin_label: '' + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: fixed + default_argument_options: + argument: '' + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: false + not: false + entity_type: commerce_order + entity_field: order_id + plugin_id: numeric + display_extenders: { } + cache_metadata: + max-age: 0 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + tags: { } diff --git a/config/sync/views.view.commerce_cart_form.yml b/config/sync/views.view.commerce_cart_form.yml new file mode 100644 index 0000000..7e95681 --- /dev/null +++ b/config/sync/views.view.commerce_cart_form.yml @@ -0,0 +1,469 @@ +uuid: cc85d552-9be3-4540-9232-d06de5d230eb +langcode: en +status: true +dependencies: + enforced: + module: + - commerce_cart + module: + - commerce_cart + - commerce_order + - commerce_price +_core: + default_config_hash: T_mtP2LLBvuVrP8WWfFLVJQI2Hk18Zt9Wv3V63du1jk +id: commerce_cart_form +label: 'Cart form' +module: views +description: '' +tag: commerce_cart_form +base_table: commerce_order +base_field: order_id +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: none + options: { } + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: none + options: + offset: 0 + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + override: true + sticky: false + caption: '' + summary: '' + description: '' + columns: + order_number: order_number + info: + order_number: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + default: '-1' + empty_table: false + row: + type: fields + options: + inline: { } + separator: '' + hide_empty: false + default_field_elements: true + fields: + purchased_entity: + id: purchased_entity + table: commerce_order_item + field: purchased_entity + relationship: order_items + group_type: group + admin_label: '' + label: Item + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_entity_view + settings: + view_mode: cart + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order_item + entity_field: purchased_entity + plugin_id: field + unit_price__number: + id: unit_price__number + table: commerce_order_item + field: unit_price__number + relationship: order_items + group_type: group + admin_label: '' + label: Price + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: number + type: commerce_price_default + settings: + strip_trailing_zeroes: false + display_currency_code: false + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order_item + entity_field: unit_price + plugin_id: field + edit_quantity: + id: edit_quantity + table: commerce_order_item + field: edit_quantity + relationship: order_items + group_type: group + admin_label: '' + label: Quantity + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + allow_decimal: false + entity_type: commerce_order_item + plugin_id: commerce_order_item_edit_quantity + remove_button: + id: remove_button + table: commerce_order_item + field: remove_button + relationship: order_items + group_type: group + admin_label: '' + label: Remove + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + entity_type: commerce_order_item + plugin_id: commerce_order_item_remove_button + total_price__number: + id: total_price__number + table: commerce_order_item + field: total_price__number + relationship: order_items + group_type: group + admin_label: '' + label: Total + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: number + type: commerce_price_default + settings: + strip_trailing_zeroes: false + display_currency_code: false + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order_item + entity_field: total_price + plugin_id: field + filters: { } + sorts: + order_item_id: + id: order_item_id + table: commerce_order_item + field: order_item_id + relationship: order_items + group_type: group + admin_label: '' + order: ASC + exposed: false + expose: + label: '' + entity_type: commerce_order_item + entity_field: order_item_id + plugin_id: standard + header: { } + footer: + commerce_order_total: + id: commerce_order_total + table: views + field: commerce_order_total + relationship: none + group_type: group + admin_label: '' + empty: false + plugin_id: commerce_order_total + empty: { } + relationships: + order_items: + id: order_items + table: commerce_order__order_items + field: order_items + relationship: none + group_type: group + admin_label: 'order_items: Order Item' + required: true + plugin_id: standard + arguments: + order_id: + id: order_id + table: commerce_order + field: order_id + relationship: none + group_type: group + admin_label: '' + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: fixed + default_argument_options: + argument: '' + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: false + not: false + entity_type: commerce_order + entity_field: order_id + plugin_id: numeric + display_extenders: { } + cache_metadata: + max-age: 0 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + tags: { } diff --git a/config/sync/views.view.commerce_carts.yml b/config/sync/views.view.commerce_carts.yml new file mode 100644 index 0000000..f96520f --- /dev/null +++ b/config/sync/views.view.commerce_carts.yml @@ -0,0 +1,785 @@ +uuid: 830e6831-289c-4ec8-8deb-fa214d3f7761 +langcode: en +status: true +dependencies: + enforced: + module: + - commerce_cart + module: + - commerce + - commerce_order + - commerce_price + - commerce_store + - system + - user +_core: + default_config_hash: bGAM41fAo6XN1BYIWEsfcsAVEvOIRQlCQzZXRnOz9Ic +id: commerce_carts +label: Carts +module: views +description: '' +tag: Commerce +base_table: commerce_order +base_field: order_id +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access commerce_order overview' + cache: + type: none + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Filter + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: full + options: + items_per_page: 50 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: '‹ previous' + next: 'next ›' + first: '« first' + last: 'last »' + quantity: 9 + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + override: true + sticky: false + caption: '' + summary: '' + description: '' + columns: + type: type + store_id: store_id + uid: uid + mail: uid + total_price__number: total_price__number + changed: changed + operations: operations + info: + type: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: true + responsive: priority-medium + store_id: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: true + responsive: priority-medium + uid: + sortable: false + default_sort_order: asc + align: '' + separator: '
' + empty_column: false + responsive: '' + mail: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + total_price__number: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + changed: + sortable: true + default_sort_order: desc + align: '' + separator: '' + empty_column: true + responsive: '' + operations: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + default: changed + empty_table: true + row: + type: fields + fields: + commerce_order_bulk_form: + id: commerce_order_bulk_form + table: commerce_order + field: commerce_order_bulk_form + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + action_title: 'With selection' + include_exclude: exclude + selected_actions: { } + entity_type: commerce_order + plugin_id: bulk_form + type: + id: type + table: commerce_order + field: type + relationship: none + group_type: group + admin_label: '' + label: Type + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: false + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + hide_single_bundle: true + entity_type: commerce_order + entity_field: type + plugin_id: commerce_entity_bundle + store_id: + id: store_id + table: commerce_order + field: store_id + relationship: none + group_type: group + admin_label: '' + label: Store + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: true + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + hide_single_store: true + entity_type: commerce_order + entity_field: store_id + plugin_id: commerce_store + uid: + id: uid + table: commerce_order + field: uid + relationship: none + group_type: group + admin_label: '' + label: Customer + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: true + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order + entity_field: uid + plugin_id: field + mail: + id: mail + table: commerce_order + field: mail + relationship: none + group_type: group + admin_label: '' + label: Email + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: basic_string + settings: { } + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order + entity_field: mail + plugin_id: field + total_price__number: + id: total_price__number + table: commerce_order + field: total_price__number + relationship: none + group_type: group + admin_label: '' + label: Total + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: number + type: commerce_price_default + settings: + strip_trailing_zeroes: false + display_currency_code: false + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order + entity_field: total_price + plugin_id: field + changed: + id: changed + table: commerce_order + field: changed + relationship: none + group_type: group + admin_label: '' + label: Updated + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: timestamp_ago + settings: + granularity: 2 + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order + entity_field: changed + plugin_id: field + operations: + id: operations + table: commerce_order + field: operations + relationship: none + group_type: group + admin_label: '' + label: Operations + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + destination: true + entity_type: commerce_order + plugin_id: entity_operations + filters: + cart: + id: cart + table: commerce_order + field: cart + relationship: none + group_type: group + admin_label: '' + operator: '=' + value: '1' + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: commerce_order + entity_field: cart + plugin_id: boolean + type: + id: type + table: commerce_order + field: type + relationship: none + group_type: group + admin_label: '' + operator: in + value: { } + group: 1 + exposed: true + expose: + operator_id: type_op + label: Type + description: '' + use_operator: false + operator: type_op + identifier: type + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + reduce: false + hide_single_bundle: true + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: commerce_order + entity_field: type + plugin_id: commerce_entity_bundle + sorts: { } + title: Carts + header: { } + footer: { } + empty: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + empty: true + tokenize: false + content: 'No orders available.' + plugin_id: text_custom + relationships: { } + arguments: { } + display_extenders: { } + use_ajax: false + cache_metadata: + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.permissions + cacheable: false + max-age: 0 + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: admin/commerce/orders/carts + menu: + type: tab + title: Carts + description: '' + expanded: false + parent: '' + weight: 0 + context: '0' + menu_name: admin + cache_metadata: + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.permissions + cacheable: false + max-age: 0 + tags: { } diff --git a/config/sync/views.view.commerce_checkout_order_summary.yml b/config/sync/views.view.commerce_checkout_order_summary.yml new file mode 100644 index 0000000..3dc6f94 --- /dev/null +++ b/config/sync/views.view.commerce_checkout_order_summary.yml @@ -0,0 +1,369 @@ +uuid: 9c0ff9f5-b22d-45c3-abfe-3ba9909c2dba +langcode: en +status: true +dependencies: + enforced: + module: + - commerce_order + module: + - commerce_order + - commerce_price +_core: + default_config_hash: D-aj_NEmyw-wjss4Gsqim6DzfB4_YRl65ROmEI7v96U +id: commerce_checkout_order_summary +label: 'Checkout Order Summary' +module: views +description: '' +tag: commerce_order_summary +base_table: commerce_order +base_field: order_id +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: none + options: { } + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: none + options: + offset: 0 + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + override: true + sticky: false + caption: '' + summary: '' + description: '' + columns: + order_number: order_number + info: + order_number: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + default: '-1' + empty_table: false + row: + type: fields + options: + inline: { } + separator: '' + hide_empty: false + default_field_elements: true + fields: + quantity: + id: quantity + table: commerce_order_item + field: quantity + relationship: order_items + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: true + text: '{{ quantity }} x' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: number_decimal + settings: + thousand_separator: '' + prefix_suffix: false + decimal_separator: . + scale: 0 + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order_item + entity_field: quantity + plugin_id: field + purchased_entity: + id: purchased_entity + table: commerce_order_item + field: purchased_entity + relationship: order_items + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_entity_view + settings: + view_mode: summary + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order_item + entity_field: purchased_entity + plugin_id: field + total_price__number: + id: total_price__number + table: commerce_order_item + field: total_price__number + relationship: order_items + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: number + type: commerce_price_default + settings: + strip_trailing_zeroes: false + display_currency_code: false + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order_item + entity_field: total_price + plugin_id: field + filters: { } + sorts: + order_item_id: + id: order_item_id + table: commerce_order_item + field: order_item_id + relationship: order_items + group_type: group + admin_label: '' + order: ASC + exposed: false + expose: + label: '' + entity_type: commerce_order_item + entity_field: order_item_id + plugin_id: standard + header: { } + footer: + commerce_order_total: + id: commerce_order_total + table: views + field: commerce_order_total + relationship: none + group_type: group + admin_label: '' + empty: false + plugin_id: commerce_order_total + empty: { } + relationships: + order_items: + id: order_items + table: commerce_order__order_items + field: order_items + relationship: none + group_type: group + admin_label: 'order_items: Order Item' + required: true + plugin_id: standard + arguments: + order_id: + id: order_id + table: commerce_order + field: order_id + relationship: none + group_type: group + admin_label: '' + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: fixed + default_argument_options: + argument: '' + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: false + not: false + entity_type: commerce_order + entity_field: order_id + plugin_id: numeric + display_extenders: { } + cache_metadata: + max-age: 0 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + tags: { } diff --git a/config/sync/views.view.commerce_order_item_table.yml b/config/sync/views.view.commerce_order_item_table.yml new file mode 100644 index 0000000..d2bff4d --- /dev/null +++ b/config/sync/views.view.commerce_order_item_table.yml @@ -0,0 +1,400 @@ +uuid: cf004440-8363-4cd9-a870-845f1879313b +langcode: en +status: true +dependencies: + module: + - commerce_order + - commerce_price +_core: + default_config_hash: n9Ex_quBSEoJSBauWflhu627_KJLiobwpc1HvKLcv8Q +id: commerce_order_item_table +label: 'Order items' +module: views +description: 'Display a set of order items in a table.' +tag: '' +base_table: commerce_order_item +base_field: order_item_id +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: none + options: { } + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: none + options: + offset: 0 + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + override: true + sticky: false + caption: '' + summary: '' + description: '' + columns: + title: title + info: + title: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + default: '-1' + empty_table: false + row: + type: fields + options: + inline: { } + separator: '' + hide_empty: false + default_field_elements: true + fields: + title: + id: title + table: commerce_order_item + field: title + relationship: none + group_type: group + admin_label: '' + label: Title + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: false + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: null + entity_field: title + plugin_id: field + unit_price__number: + id: unit_price__number + table: commerce_order_item + field: unit_price__number + relationship: none + group_type: group + admin_label: '' + label: 'Unit price' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: number + type: commerce_price_default + settings: + strip_trailing_zeroes: false + display_currency_code: false + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order_item + entity_field: unit_price + plugin_id: field + quantity: + id: quantity + table: commerce_order_item + field: quantity + relationship: none + group_type: group + admin_label: '' + label: Quantity + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: number_decimal + settings: + thousand_separator: '' + prefix_suffix: true + decimal_separator: . + scale: 2 + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order_item + entity_field: quantity + plugin_id: field + total_price__number: + id: total_price__number + table: commerce_order_item + field: total_price__number + relationship: none + group_type: group + admin_label: '' + label: 'Total price' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: number + type: commerce_price_default + settings: + strip_trailing_zeroes: false + display_currency_code: false + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order_item + entity_field: total_price + plugin_id: field + filters: { } + sorts: { } + header: { } + footer: { } + empty: { } + relationships: { } + arguments: + order_id: + id: order_id + table: commerce_order_item + field: order_id + relationship: none + group_type: group + admin_label: '' + default_action: 'not found' + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: fixed + default_argument_options: + argument: '' + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: false + not: false + entity_type: commerce_order_item + entity_field: order_id + plugin_id: numeric + display_extenders: { } + cache_metadata: + max-age: 0 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + tags: { } diff --git a/config/sync/views.view.commerce_orders.yml b/config/sync/views.view.commerce_orders.yml new file mode 100644 index 0000000..f2de6e7 --- /dev/null +++ b/config/sync/views.view.commerce_orders.yml @@ -0,0 +1,983 @@ +uuid: c1592e6b-e2af-40bf-b5ab-6cc2e30f6832 +langcode: en +status: true +dependencies: + module: + - commerce + - commerce_order + - commerce_price + - commerce_store + - options + - state_machine + - system + - user +_core: + default_config_hash: tpDt6NuuckyWNxkctwBhb-wOuIK--Fk8OBMk6OuRCZg +id: commerce_orders +label: Orders +module: views +description: '' +tag: Commerce +base_table: commerce_order +base_field: order_id +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access commerce_order overview' + cache: + type: none + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Filter + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: full + options: + items_per_page: 50 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: '‹ previous' + next: 'next ›' + first: '« first' + last: 'last »' + quantity: 9 + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + override: true + sticky: false + caption: '' + summary: '' + description: '' + columns: + order_number: order_number + placed: placed + type: type + store_id: store_id + uid: uid + mail: uid + state: state + total_price__number: total_price__number + operations: operations + info: + order_number: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + placed: + sortable: true + default_sort_order: desc + align: '' + separator: '' + empty_column: false + responsive: '' + type: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: true + responsive: priority-medium + store_id: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: true + responsive: priority-medium + uid: + sortable: false + default_sort_order: asc + align: '' + separator: '
' + empty_column: false + responsive: '' + mail: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + state: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + total_price__number: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + operations: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + default: placed + empty_table: true + row: + type: fields + fields: + commerce_order_bulk_form: + id: commerce_order_bulk_form + table: commerce_order + field: commerce_order_bulk_form + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + action_title: 'With selection' + include_exclude: exclude + selected_actions: { } + entity_type: commerce_order + plugin_id: bulk_form + order_number: + id: order_number + table: commerce_order + field: order_number + relationship: none + group_type: group + admin_label: '' + label: '#' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: null + entity_field: order_number + plugin_id: field + placed: + id: placed + table: commerce_order + field: placed + relationship: none + group_type: group + admin_label: '' + label: Date + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: N/A + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: timestamp + settings: + date_format: short + custom_date_format: '' + timezone: '' + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order + entity_field: placed + plugin_id: field + type: + id: type + table: commerce_order + field: type + relationship: none + group_type: group + admin_label: '' + label: Type + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: false + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + hide_single_bundle: true + entity_type: commerce_order + entity_field: type + plugin_id: commerce_entity_bundle + store_id: + id: store_id + table: commerce_order + field: store_id + relationship: none + group_type: group + admin_label: '' + label: Store + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: true + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + hide_single_store: true + entity_type: commerce_order + entity_field: store_id + plugin_id: commerce_store + uid: + id: uid + table: commerce_order + field: uid + relationship: none + group_type: group + admin_label: '' + label: Customer + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: true + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order + entity_field: uid + plugin_id: field + mail: + id: mail + table: commerce_order + field: mail + relationship: none + group_type: group + admin_label: '' + label: Email + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: basic_string + settings: { } + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order + entity_field: mail + plugin_id: field + state: + id: state + table: commerce_order + field: state + relationship: none + group_type: group + admin_label: '' + label: State + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: list_default + settings: { } + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order + entity_field: status + plugin_id: field + total_price__number: + id: total_price__number + table: commerce_order + field: total_price__number + relationship: none + group_type: group + admin_label: '' + label: Total + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: number + type: commerce_price_default + settings: + strip_trailing_zeroes: false + display_currency_code: false + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order + entity_field: total_price + plugin_id: field + operations: + id: operations + table: commerce_order + field: operations + relationship: none + group_type: group + admin_label: '' + label: Operations + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + destination: true + entity_type: commerce_order + plugin_id: entity_operations + filters: + order_number: + id: order_number + table: commerce_order + field: order_number + relationship: none + group_type: group + admin_label: '' + operator: starts + value: '' + group: 1 + exposed: true + expose: + operator_id: order_number_op + label: 'Order number' + description: '' + use_operator: false + operator: order_number_op + identifier: order_number + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: commerce_order + entity_field: order_number + plugin_id: string + type: + id: type + table: commerce_order + field: type + relationship: none + group_type: group + admin_label: '' + operator: in + value: { } + group: 1 + exposed: true + expose: + operator_id: type_op + label: Type + description: '' + use_operator: false + operator: type_op + identifier: type + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + reduce: false + hide_single_bundle: true + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: commerce_order + entity_field: type + plugin_id: commerce_entity_bundle + state: + id: state + table: commerce_order + field: state + relationship: none + group_type: group + admin_label: '' + operator: in + value: { } + group: 1 + exposed: true + expose: + operator_id: state_op + label: State + description: '' + use_operator: false + operator: state_op + identifier: state + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: commerce_order + entity_field: state + plugin_id: state_machine_state + sorts: { } + title: Orders + header: { } + footer: { } + empty: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + empty: true + tokenize: false + content: 'No orders available.' + plugin_id: text_custom + relationships: { } + arguments: { } + display_extenders: { } + use_ajax: false + filter_groups: + operator: AND + groups: + 1: AND + cache_metadata: + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.permissions + cacheable: false + max-age: 0 + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: admin/commerce/orders/list + menu: + type: 'default tab' + title: Orders + description: '' + expanded: false + parent: '' + weight: -10 + context: '0' + menu_name: main + tab_options: + type: normal + title: Orders + description: 'Manage your orders.' + weight: 0 + cache_metadata: + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.permissions + cacheable: false + max-age: 0 + tags: { } diff --git a/config/sync/views.view.commerce_products.yml b/config/sync/views.view.commerce_products.yml new file mode 100644 index 0000000..8afe185 --- /dev/null +++ b/config/sync/views.view.commerce_products.yml @@ -0,0 +1,629 @@ +uuid: 8bdb1bba-0621-4161-b539-ac8b785661bd +langcode: en +status: true +dependencies: + module: + - commerce + - commerce_product + - system + - user +_core: + default_config_hash: lTfF_aenIIJ8YnvaratQgGpNEkFtA7tSDiElcgecVQo +id: commerce_products +label: Products +module: views +description: '' +tag: Commerce +base_table: commerce_product_field_data +base_field: product_id +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access commerce_product overview' + cache: + type: none + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Filter + reset_button: true + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: full + options: + items_per_page: 50 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: '‹ previous' + next: 'next ›' + first: '« first' + last: 'last »' + quantity: 9 + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + override: true + sticky: true + caption: '' + summary: '' + description: '' + columns: + title: title + type: type + status: status + changed: changed + operations: operations + info: + title: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + type: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: true + responsive: '' + status: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + changed: + sortable: true + default_sort_order: desc + align: '' + separator: '' + empty_column: false + responsive: '' + operations: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + default: changed + empty_table: true + row: + type: fields + fields: + commerce_product_bulk_form: + id: commerce_product_bulk_form + table: commerce_product + field: commerce_product_bulk_form + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + action_title: 'With selection' + include_exclude: exclude + selected_actions: { } + entity_type: commerce_product + plugin_id: bulk_form + title: + id: title + table: commerce_product_field_data + field: title + relationship: none + group_type: group + admin_label: '' + label: Title + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: null + entity_field: title + plugin_id: field + type: + id: type + table: commerce_product_field_data + field: type + relationship: none + group_type: group + admin_label: '' + label: Type + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: false + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + hide_single_bundle: true + entity_type: commerce_product + entity_field: type + plugin_id: commerce_entity_bundle + status: + id: status + table: commerce_product_field_data + field: status + relationship: none + group_type: group + admin_label: '' + label: Status + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: boolean + settings: + format: custom + format_custom_true: Published + format_custom_false: Unpublished + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_product + entity_field: status + plugin_id: field + changed: + id: changed + table: commerce_product_field_data + field: changed + relationship: none + group_type: group + admin_label: '' + label: Updated + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: timestamp + settings: + date_format: short + custom_date_format: '' + timezone: '' + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_product + entity_field: changed + plugin_id: field + operations: + id: operations + table: commerce_product + field: operations + relationship: none + group_type: group + admin_label: '' + label: Operations + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + destination: true + entity_type: commerce_product + plugin_id: entity_operations + filters: + type: + id: type + table: commerce_product_field_data + field: type + relationship: none + group_type: group + admin_label: '' + operator: in + value: { } + group: 1 + exposed: true + expose: + operator_id: type_op + label: Type + description: '' + use_operator: false + operator: type_op + identifier: type + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + reduce: false + hide_single_bundle: true + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: commerce_product + entity_field: type + plugin_id: commerce_entity_bundle + title: + id: title + table: commerce_product_field_data + field: title + relationship: none + group_type: group + admin_label: '' + operator: contains + value: '' + group: 1 + exposed: true + expose: + operator_id: title_op + label: Title + description: '' + use_operator: false + operator: title_op + identifier: title + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: commerce_product + entity_field: title + plugin_id: string + sorts: { } + title: Products + header: { } + footer: { } + empty: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + empty: true + tokenize: false + content: 'No products available.' + plugin_id: text_custom + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.permissions + cacheable: false + max-age: 0 + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: admin/commerce/products + cache_metadata: + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.permissions + cacheable: false + max-age: 0 + tags: { } diff --git a/config/sync/views.view.commerce_stores.yml b/config/sync/views.view.commerce_stores.yml new file mode 100644 index 0000000..99a0820 --- /dev/null +++ b/config/sync/views.view.commerce_stores.yml @@ -0,0 +1,439 @@ +uuid: dba4ce15-f915-467e-bd6f-62fde6456d24 +langcode: en +status: true +dependencies: + module: + - commerce + - commerce_store + - system + - user +_core: + default_config_hash: '-X1gJHmWCoN8z6urr4N2eYcfT9_kGyKMCoS1kh1IbPQ' +id: commerce_stores +label: Stores +module: views +description: '' +tag: Commerce +base_table: commerce_store_field_data +base_field: store_id +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access commerce_store overview' + cache: + type: none + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: full + options: + items_per_page: 50 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: '‹ previous' + next: 'next ›' + first: '« first' + last: 'last »' + quantity: 9 + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + override: true + sticky: false + caption: '' + summary: '' + description: '' + columns: + name: name + type: type + operations: operations + info: + name: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + type: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: true + responsive: '' + operations: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + default: '-1' + empty_table: true + row: + type: fields + fields: + commerce_store_bulk_form: + id: commerce_store_bulk_form + table: commerce_store + field: commerce_store_bulk_form + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + action_title: 'With selection' + include_exclude: exclude + selected_actions: { } + entity_type: commerce_store + plugin_id: bulk_form + name: + id: name + table: commerce_store_field_data + field: name + relationship: none + group_type: group + admin_label: '' + label: Name + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: false + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: null + entity_field: name + plugin_id: field + type: + id: type + table: commerce_store_field_data + field: type + relationship: none + group_type: group + admin_label: '' + label: Type + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: false + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + hide_single_bundle: true + entity_type: commerce_store + entity_field: type + plugin_id: commerce_entity_bundle + operations: + id: operations + table: commerce_store + field: operations + relationship: none + group_type: group + admin_label: '' + label: Operations + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + destination: false + entity_type: commerce_store + plugin_id: entity_operations + filters: + type: + id: type + table: commerce_store_field_data + field: type + relationship: none + group_type: group + admin_label: '' + operator: in + value: { } + group: 1 + exposed: true + expose: + operator_id: type_op + label: Type + description: '' + use_operator: false + operator: type_op + identifier: type + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + reduce: false + hide_single_bundle: true + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: commerce_store + entity_field: type + plugin_id: commerce_entity_bundle + sorts: { } + title: Stores + header: { } + footer: { } + empty: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + empty: true + tokenize: false + content: 'No stores available.' + plugin_id: text_custom + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.permissions + cacheable: false + max-age: 0 + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: admin/commerce/config/stores + cache_metadata: + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.permissions + cacheable: false + max-age: 0 + tags: { } diff --git a/config/sync/views.view.commerce_user_orders.yml b/config/sync/views.view.commerce_user_orders.yml new file mode 100644 index 0000000..98bf4d7 --- /dev/null +++ b/config/sync/views.view.commerce_user_orders.yml @@ -0,0 +1,596 @@ +uuid: 0de4adfc-9310-4000-8aba-dd951f05d605 +langcode: en +status: true +dependencies: + module: + - commerce_order + - commerce_price + - options + - state_machine + - user +_core: + default_config_hash: InlzG5jd3RryfIKQvjJqhVyA8SOyJmmXfjdl5l8eYD8 +id: commerce_user_orders +label: 'User orders' +module: views +description: 'Display a list of placed orders for a user.' +tag: Commerce +base_table: commerce_order +base_field: order_id +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'view own commerce_order' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: full + options: + items_per_page: 25 + offset: 0 + id: 0 + total_pages: null + tags: + previous: '‹ Previous' + next: 'Next ›' + first: '« First' + last: 'Last »' + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + quantity: 9 + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + override: true + sticky: false + caption: '' + summary: '' + description: '' + columns: + order_number: order_number + placed: placed + total_price__number: total_price__number + state: state + info: + order_number: + sortable: true + default_sort_order: desc + align: '' + separator: '' + empty_column: false + responsive: '' + created: + sortable: true + default_sort_order: desc + align: '' + separator: '' + empty_column: false + responsive: '' + placed: + sortable: true + default_sort_order: desc + align: '' + separator: '' + empty_column: false + responsive: '' + total_price__number: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + state: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + default: placed + empty_table: false + row: + type: fields + fields: + order_id: + id: order_id + table: commerce_order + field: order_id + relationship: none + group_type: group + admin_label: '' + label: ID + exclude: true + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: number_integer + settings: + thousand_separator: '' + prefix_suffix: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order + entity_field: order_id + plugin_id: field + order_number: + id: order_number + table: commerce_order + field: order_number + relationship: none + group_type: group + admin_label: '' + label: 'Order number' + exclude: false + alter: + alter_text: false + text: '' + make_link: true + path: 'user/{{ arguments.uid }}/orders/{{ order_id }}' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: false + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: null + entity_field: order_number + plugin_id: field + placed: + id: placed + table: commerce_order + field: placed + relationship: none + group_type: group + admin_label: '' + label: Date + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: timestamp + settings: + date_format: short + custom_date_format: '' + timezone: '' + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order + entity_field: placed + plugin_id: field + total_price__number: + id: total_price__number + table: commerce_order + field: total_price__number + relationship: none + group_type: group + admin_label: '' + label: Total + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: number + type: commerce_price_default + settings: + strip_trailing_zeroes: false + display_currency_code: false + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order + entity_field: total_price + plugin_id: field + state: + id: state + table: commerce_order + field: state + relationship: none + group_type: group + admin_label: '' + label: State + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: list_default + settings: { } + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: commerce_order + entity_field: state + plugin_id: field + filters: + state: + id: state + table: commerce_order + field: state + relationship: none + group_type: group + admin_label: '' + operator: 'not in' + value: + draft: draft + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: commerce_order + entity_field: state + plugin_id: state_machine_state + sorts: { } + title: Orders + header: { } + footer: { } + empty: + area: + id: area + table: views + field: area + relationship: none + group_type: group + admin_label: '' + empty: true + tokenize: false + content: + value: 'You have not placed any orders with us yet.' + format: basic_html + plugin_id: text + relationships: { } + arguments: + uid: + id: uid + table: commerce_order + field: uid + relationship: none + group_type: group + admin_label: '' + default_action: 'not found' + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: fixed + default_argument_options: + argument: '' + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: true + validate: + type: commerce_current_user + fail: 'not found' + validate_options: + admin_permission: 'administer commerce_order' + break_phrase: false + not: false + entity_type: commerce_order + entity_field: uid + plugin_id: numeric + display_extenders: { } + cache_metadata: + max-age: 0 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user + - user.permissions + tags: { } + order_page: + display_plugin: page + id: order_page + display_title: 'User orders' + position: 1 + display_options: + display_extenders: { } + path: user/%user/orders + menu: + type: tab + title: Orders + description: '' + expanded: false + parent: '' + weight: 0 + context: '0' + menu_name: account + display_description: '' + cache_metadata: + max-age: 0 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user + - user.permissions + tags: { } diff --git a/config/sync/views.view.profiles.yml b/config/sync/views.view.profiles.yml new file mode 100644 index 0000000..0258341 --- /dev/null +++ b/config/sync/views.view.profiles.yml @@ -0,0 +1,384 @@ +uuid: 46632b09-1502-4087-b5ab-003c888688d7 +langcode: en +status: true +dependencies: + module: + - profile +_core: + default_config_hash: YD0hw-cg1_R36IQ1hO2vQlrhYAQqM7kF6mw3hFGrwI8 +id: profiles +label: Profiles +module: views +description: '' +tag: '' +base_table: profile +base_field: profile_id +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: none + options: { } + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: none + options: + offset: 0 + style: + type: grid + options: + grouping: { } + columns: 4 + automatic_width: true + alignment: horizontal + col_class_default: true + col_class_custom: '' + row_class_default: true + row_class_custom: '' + row: + type: fields + options: + inline: { } + separator: '' + hide_empty: false + default_field_elements: true + fields: + rendered_entity: + id: rendered_entity + table: profile + field: rendered_entity + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + view_mode: default + entity_type: profile + plugin_id: rendered_entity + operations: + id: operations + table: profile + field: operations + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + destination: true + entity_type: profile + plugin_id: entity_operations + filters: { } + sorts: { } + header: { } + footer: { } + empty: { } + relationships: { } + arguments: + uid: + id: uid + table: profile + field: uid + relationship: none + group_type: group + admin_label: '' + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: user + default_argument_options: + user: false + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: false + not: false + entity_type: profile + entity_field: uid + plugin_id: numeric + type: + id: type + table: profile + field: type + relationship: none + group_type: group + admin_label: '' + default_action: ignore + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: fixed + default_argument_options: + argument: '' + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: true + validate: + type: 'entity:profile_type' + fail: 'not found' + validate_options: { } + glossary: false + limit: 0 + case: none + path_case: none + transform_dash: false + break_phrase: false + entity_type: profile + entity_field: type + plugin_id: string + status: + id: status + table: profile + field: status + relationship: none + group_type: group + admin_label: '' + default_action: ignore + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: fixed + default_argument_options: + argument: '' + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: false + not: false + entity_type: profile + entity_field: status + plugin_id: numeric + display_extenders: { } + title: Profiles + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_interface' + - url + tags: { } + profile_type_listing: + display_plugin: embed + id: profile_type_listing + display_title: 'Profile type listing' + position: 1 + display_options: + display_extenders: { } + display_description: '' + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_interface' + - url + tags: { } + user_view: + display_plugin: embed + id: user_view + display_title: 'User view' + position: 2 + display_options: + display_extenders: { } + fields: + rendered_entity: + id: rendered_entity + table: profile + field: rendered_entity + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + view_mode: default + entity_type: profile + plugin_id: rendered_entity + defaults: + fields: false + display_description: '' + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_interface' + - url + tags: { } diff --git a/web/modules/custom/commerce_euplatesc/README.txt b/web/modules/custom/commerce_euplatesc/README.txt new file mode 100644 index 0000000..423f188 --- /dev/null +++ b/web/modules/custom/commerce_euplatesc/README.txt @@ -0,0 +1,44 @@ +CONTENTS OF THIS FILE +--------------------- + +* Introduction +* Requirements +* Recommended modules +* Installation +* Configuration + + +INTRODUCTION +------------ + +This project integrates EuPlatesc.ro into the Drupal Commerce payment and checkout systems. + + +REQUIREMENTS +------------ + +This module requires the following modules: + +* Drupal Commerce (https://www.drupal.org/project/commerce) + + +INSTALLATION +------------ + + * Install as you would normally install a contributed Drupal module. See: + https://www.drupal.org/docs/8/extending-drupal-8/installing-modules + for further information. + + +CONFIGURATION +------------- + + * Configure EuPlatesc Payment Gateway in Commerce » Configuration » Payment Gateways: + + - Add new payment gateway: + + - Select EuPlatesc Plugin. + - Fill in the Merchant ID and Secret key provided with your EuPlatesc registration. + + + diff --git a/web/modules/custom/commerce_euplatesc/commerce_euplatesc.info.yml b/web/modules/custom/commerce_euplatesc/commerce_euplatesc.info.yml new file mode 100644 index 0000000..4fb2502 --- /dev/null +++ b/web/modules/custom/commerce_euplatesc/commerce_euplatesc.info.yml @@ -0,0 +1,8 @@ +name: Commerce EuPlatesc +type: module +description: 'Provides Commerce Payment integration for EuPlatesc.' +package: Commerce +# core: 8.x +dependencies: + - commerce +core: 8.x diff --git a/web/modules/custom/commerce_euplatesc/config/schema/commerce_euplatesc.schema.yml b/web/modules/custom/commerce_euplatesc/config/schema/commerce_euplatesc.schema.yml new file mode 100644 index 0000000..52ddfc1 --- /dev/null +++ b/web/modules/custom/commerce_euplatesc/config/schema/commerce_euplatesc.schema.yml @@ -0,0 +1,9 @@ +commerce_payment.commerce_payment_gateway.plugin.euplatesc_checkout: + type: commerce_payment_gateway_configuration + mapping: + merchant_id: + type: string + label: 'Merchant ID' + secret_key: + type: string + label: 'Secret key' diff --git a/web/modules/custom/commerce_euplatesc/src/Plugin/Commerce/PaymentGateway/EuPlatescCheckout.php b/web/modules/custom/commerce_euplatesc/src/Plugin/Commerce/PaymentGateway/EuPlatescCheckout.php new file mode 100644 index 0000000..7690342 --- /dev/null +++ b/web/modules/custom/commerce_euplatesc/src/Plugin/Commerce/PaymentGateway/EuPlatescCheckout.php @@ -0,0 +1,294 @@ + '', + 'secret_key' => '', + 'redirect_method' => 'post', + ] + parent::defaultConfiguration(); + } + + /** + * {@inheritdoc} + */ + public function buildConfigurationForm(array $form, FormStateInterface $form_state) { + $form = parent::buildConfigurationForm($form, $form_state); + + $form['merchant_id'] = [ + '#type' => 'textfield', + '#title' => $this->t('Merchant ID'), + '#description' => t('The merchant id from the EuPlatesc.ro provider.'), + '#default_value' => $this->configuration['merchant_id'], + '#required' => TRUE, + ]; + $form['secret_key'] = [ + '#type' => 'textfield', + '#title' => $this->t('Secret key'), + '#description' => t('The secret key id from the EuPlatesc.ro provider.'), + '#default_value' => $this->configuration['secret_key'], + '#required' => TRUE, + ]; + + return $form; + } + + /** + * {@inheritdoc} + */ + public function submitConfigurationForm(array &$form, FormStateInterface $form_state) { + parent::submitConfigurationForm($form, $form_state); + if (!$form_state->getErrors()) { + $values = $form_state->getValue($form['#parents']); + $this->configuration['merchant_id'] = $values['merchant_id']; + $this->configuration['secret_key'] = $values['secret_key']; + } + } + + /** + * {@inheritdoc} + */ + public function onReturn(OrderInterface $order, Request $request) { + $data = $this->getRequestData($request); + + $configuration = $this->getConfiguration(); + $data['fp_hash'] = strtoupper($this->hashData($data, $configuration['secret_key'])); + $fp_hash = addslashes(trim($request->query->get('fp_hash'))); + + if ($data['fp_hash'] !== $fp_hash) { + throw new PaymentGatewayException('Invalid signature'); + } + + $payment = $this->createPaymentStorage($order, $request); + + if ($request->query->get('action') == "0") { + $order->setData('state', 'completed'); + $payment->state = 'authorization'; + + drupal_set_message(t('The payment was made successfully.'), 'status'); + } + else { + $payment->state = 'authorization_voided'; + + drupal_set_message(t('Transaction failed: @message', ['@message' => $request->query->get['message']]), 'warning'); + } + + $order->save(); + $payment->save(); + } + + /** + * {@inheritdoc} + */ + public function getUrl() { + return 'https://secure.euplatesc.ro/tdsprocess/tranzactd.php'; + } + + /** + * {@inheritdoc} + */ + public function setEuPlatescCheckoutData(PaymentInterface $payment) { + $order = $payment->getOrder(); + + $amount = $payment->getAmount(); + $configuration = $this->getConfiguration(); + + // Order description. + $order_desc = 'Order #' . $order->id() . ': '; + + foreach ($order->getItems() as $item) { + $product_sku = $item->getPurchasedEntity()->getSku(); + $order_desc .= $item->getTitle() . ' [' . $product_sku . ']'; + $order_desc .= ', '; + } + + // Remove the last comma. + $order_desc = rtrim($order_desc, ', '); + + // Curent timestamp. + $timestamp = gmdate('YmdHis'); + $nonce = md5(microtime() . mt_rand()); + + // Build a name-value pair array for this transaction. + // The data which should be signed to be transported to EuPlatesc.ro. + $data = [ + 'amount' => Calculator::round($amount->getNumber(), 2), + 'curr' => $amount->getCurrencyCode(), + 'invoice_id' => $order->id(), + 'order_desc' => $order_desc, + 'merch_id' => $configuration['merchant_id'], + 'timestamp' => $timestamp, + 'nonce' => $nonce, + ]; + + $address = $order->getBillingProfile()->get('address')->first(); + + // The hidden data wich should be transported to EuPlatesc.ro. + $nvp_data = [ + 'fname' => $address->getGivenName(), + 'lname' => $address->getFamilyName(), + 'country' => $address->getCountryCode(), + 'city' => $address->getLocality(), + 'email' => $order->getEmail(), + 'amount' => Calculator::round($amount->getNumber(), 2), + 'curr' => $amount->getCurrencyCode(), + 'invoice_id' => $order->id(), + 'order_desc' => $order_desc, + 'merch_id' => $configuration['merchant_id'], + 'timestamp' => $timestamp, + 'nonce' => $nonce, + 'fp_hash' => strtoupper($this->hashData($data, $configuration['secret_key'])), + ]; + + return $nvp_data; + } + + /** + * Get data from Request object. + * + * @param \Symfony\Component\HttpFoundation\Request $request + * + * @return array + */ + public function getRequestData(Request $request) { + return [ + 'amount' => addslashes(trim($request->query->get('amount'))), + 'curr' => addslashes(trim($request->query->get('curr'))), + 'invoice_id' => addslashes(trim($request->query->get('invoice_id'))), + // A unique id provided by EuPlatesc.ro. + 'ep_id' => addslashes(trim($request->query->get('ep_id'))), + 'merch_id' => addslashes(trim($request->query->get('merch_id'))), + // For the transaction to be ok, the action should be 0. + 'action' => addslashes(trim($request->query->get('action'))), + // The transaction response message. + 'message' => addslashes(trim($request->query->get('message'))), + // If the transaction action is different 0, the approval value is empty. + 'approval' => addslashes(trim($request->query->get('approval'))), + 'timestamp' => addslashes(trim($request->query->get('timestamp'))), + 'nonce' => addslashes(trim($request->query->get('nonce'))), + ]; + } + + /** + * Create a PaymentStorage object. + * + * @param \Drupal\commerce_order\Entity\OrderInterface $order + * @param \Symfony\Component\HttpFoundation\Request $request + * + * @return \Drupal\Core\Entity\EntityInterface + * @throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException + */ + public function createPaymentStorage(OrderInterface $order, Request $request) { + $payment_storage = $this->entityTypeManager->getStorage('commerce_payment'); + $request_time = $this->time->getRequestTime(); + return $payment_storage->create([ + 'state' => 'authorization', + 'amount' => $order->getTotalPrice(), + 'payment_gateway' => $this->entityId, + 'order_id' => $order->id(), + 'test' => $this->getMode() == 'test', + 'remote_id' => $request->query->get('ep_id'), + 'remote_state' => $request->query->get('message'), + 'authorized' => $request_time, + ]); + } + + /** + * Custom function from EuPlatesc documentation. + * Fore more details, please read the documentation from module. + * + * @param array $data + * @param string $key + * + * @return string. + */ + public static function hashData($data, $key) { + $str = NULL; + + foreach ($data as $d) { + if ($d === NULL || strlen($d) == 0) { + // The NULL values will be replaced with - . + $str .= '-'; + } + else { + $str .= strlen($d) . $d; + } + } + + // We convert the secret code into a binary string. + $key = pack('H*', $key); + + return self::hashSHA1($str, $key); + } + + /** + * Custom function from EuPlatesc documentation. + * Fore more details, please read the documentation from module. + * + * @param string $data + * @param string $key + * + * @return string. + */ + private static function hashSHA1($data, $key) { + $blocksize = 64; + $hashfunc = 'md5'; + + if (strlen($key) > $blocksize) { + $key = pack('H*', $hashfunc($key)); + } + + $key = str_pad($key, $blocksize, chr(0x00)); + $ipad = str_repeat(chr(0x36), $blocksize); + $opad = str_repeat(chr(0x5c), $blocksize); + + $hmac = pack('H*', $hashfunc(($key ^ $opad) . pack('H*', $hashfunc(($key ^ $ipad) . $data)))); + return bin2hex($hmac); + } + +} diff --git a/web/modules/custom/commerce_euplatesc/src/Plugin/Commerce/PaymentGateway/EuPlatescCheckoutInterface.php b/web/modules/custom/commerce_euplatesc/src/Plugin/Commerce/PaymentGateway/EuPlatescCheckoutInterface.php new file mode 100644 index 0000000..fa0ed23 --- /dev/null +++ b/web/modules/custom/commerce_euplatesc/src/Plugin/Commerce/PaymentGateway/EuPlatescCheckoutInterface.php @@ -0,0 +1,33 @@ +entity; + + /** @var \Drupal\commerce_euplatesc\Plugin\Commerce\PaymentGateway $payment_gateway_plugin */ + $payment_gateway_plugin = $payment->getPaymentGateway()->getPlugin(); + $redirect_url = $payment_gateway_plugin->getUrl(); + // Get plugin configuration. + $plugin_config = $payment_gateway_plugin->getConfiguration(); + + $euplatesc_data = $payment_gateway_plugin->setEuPlatescCheckoutData($payment); + foreach ($euplatesc_data as $name => $value) { + if (!empty($value)) { + $data[$name] = $value; + } + } + + return $this->buildRedirectForm($form, $form_state, $redirect_url, $data, $plugin_config['redirect_method']); + } +}