refactored checkout workflow with stripe

This commit is contained in:
Bachir Soussi Chiadmi 2021-01-11 21:16:42 +01:00
parent 2df6e53aa0
commit 02c983e7e0
48 changed files with 1154 additions and 177 deletions

View File

@ -20,13 +20,15 @@
"composer/installers": "^1.2", "composer/installers": "^1.2",
"drupal/amswap": "^2.0", "drupal/amswap": "^2.0",
"drupal/auto_entitylabel": "^2.x-dev", "drupal/auto_entitylabel": "^2.x-dev",
"drupal/commerce": "^2.16", "drupal/commerce": "^2.22",
"drupal/commerce_cart_api": "^1.4", "drupal/commerce_cart_api": "^1.4",
"drupal/commerce_license": "^2.0@alpha", "drupal/commerce_cart_redirection": "^3.0",
"drupal/commerce_license": "2.x-dev@dev",
"drupal/commerce_migrate": "^2.0", "drupal/commerce_migrate": "^2.0",
"drupal/commerce_monetico": "^1.0", "drupal/commerce_monetico": "^1.0",
"drupal/commerce_pricelist": "2.x-dev", "drupal/commerce_pricelist": "2.x-dev",
"drupal/commerce_recurring": "^1.x-dev", "drupal/commerce_recurring": "^1.x-dev",
"drupal/commerce_stripe": "1.x-dev@dev",
"drupal/commerce_variation_cart_form": "^1.x-dev", "drupal/commerce_variation_cart_form": "^1.x-dev",
"drupal/computed_field": "^2.0@beta", "drupal/computed_field": "^2.0@beta",
"drupal/config_devel": "^1.7", "drupal/config_devel": "^1.7",
@ -36,6 +38,7 @@
"drupal/content_sync": "2.x-dev@dev", "drupal/content_sync": "2.x-dev@dev",
"drupal/core-composer-scaffold": "^9.0", "drupal/core-composer-scaffold": "^9.0",
"drupal/debug_bar": "^1.4", "drupal/debug_bar": "^1.4",
"drupal/devel": "^4.1",
"drupal/editor_advanced_link": "^1.8", "drupal/editor_advanced_link": "^1.8",
"drupal/entity_clone": "^1.0", "drupal/entity_clone": "^1.0",
"drupal/error_log": "^1.0", "drupal/error_log": "^1.0",
@ -56,7 +59,10 @@
"drupal/migrate_tools": "5.x-dev@dev", "drupal/migrate_tools": "5.x-dev@dev",
"drupal/mimemail": "^1.x-dev", "drupal/mimemail": "^1.x-dev",
"drupal/modules_weight": "^1.8", "drupal/modules_weight": "^1.8",
"drupal/payment": "^2.1",
"drupal/payment_commerce": "2.x-dev@dev",
"drupal/permissions_filter": "^1.1", "drupal/permissions_filter": "^1.1",
"drupal/recurring_period": "^1.0",
"drupal/restui": "^1.16", "drupal/restui": "^1.16",
"drupal/search_api_autocomplete": "^1.2", "drupal/search_api_autocomplete": "^1.2",
"drupal/search_api_page": "^1.x-dev", "drupal/search_api_page": "^1.x-dev",
@ -149,6 +155,9 @@
"drupal/field_group": { "drupal/field_group": {
"undefined index name 18 https://www.drupal.org/project/field_group/issues/3064890" : "https://www.drupal.org/files/issues/2020-10-01/field_group-undefined-index-name-3064890-18.patch", "undefined index name 18 https://www.drupal.org/project/field_group/issues/3064890" : "https://www.drupal.org/files/issues/2020-10-01/field_group-undefined-index-name-3064890-18.patch",
"undefined index name 16 https://www.drupal.org/project/field_group/issues/3064890" : "https://www.drupal.org/files/issues/2020-08-10/field_group-undefined-index-name-3064890-16.patch" "undefined index name 16 https://www.drupal.org/project/field_group/issues/3064890" : "https://www.drupal.org/files/issues/2020-08-10/field_group-undefined-index-name-3064890-16.patch"
},
"drupal/stripe": {
"Stripe is a web service and should be in system.admin_config_services https://www.drupal.org/project/stripe/issues/3090652": "https://www.drupal.org/files/issues/2020-01-08/stripe-link_menu_in_services-3090652-5.patch"
} }
}, },
"drupal-scaffold": { "drupal-scaffold": {

672
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "3d12b27bce24c17b1d9786c4053a60b3", "content-hash": "18823c92aa8ab02c87f03c1d766c7d7a",
"packages": [ "packages": [
{ {
"name": "alchemy/zippy", "name": "alchemy/zippy",
@ -332,6 +332,96 @@
"description": "Internationalization library powered by CLDR data.", "description": "Internationalization library powered by CLDR data.",
"time": "2020-10-04T20:58:22+00:00" "time": "2020-10-04T20:58:22+00:00"
}, },
{
"name": "commercie/currency",
"version": "1.1.2",
"source": {
"type": "git",
"url": "https://github.com/Commercie/currency.git",
"reference": "64812cb8d5e8cdbc406c2f7c114399c814e2d898"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Commercie/currency/zipball/64812cb8d5e8cdbc406c2f7c114399c814e2d898",
"reference": "64812cb8d5e8cdbc406c2f7c114399c814e2d898",
"shasum": ""
},
"require": {
"ext-json": "*",
"php": "~5.5 || ~7.0"
},
"require-dev": {
"justinrainbow/json-schema": "~1.4",
"phpunit/phpunit": "~4.0"
},
"suggest": {
"drupal/currency": "Integrates this package with Drupal."
},
"type": "library",
"autoload": {
"psr-4": {
"Commercie\\Currency\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Bart Feenstra",
"email": "bart@mynameisbart.com",
"homepage": "http://mynameisbart.com",
"role": "Developer"
}
],
"time": "2018-05-11T10:11:38+00:00"
},
{
"name": "commercie/currency-exchange",
"version": "1.2.0",
"source": {
"type": "git",
"url": "https://github.com/Commercie/currency-exchange.git",
"reference": "bb6a0c3b682aaed2eda205ceda5582673cb444af"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Commercie/currency-exchange/zipball/bb6a0c3b682aaed2eda205ceda5582673cb444af",
"reference": "bb6a0c3b682aaed2eda205ceda5582673cb444af",
"shasum": ""
},
"require": {
"ext-bcmath": "*",
"ext-json": "*",
"php": "~5.5 || ~7.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
},
"suggest": {
"commercie/currency-exchange-yahoo-finance": "Retrieves currency exchange rates from Yahoo! Finance.",
"drupal/currency": "Integrates this package with Drupal."
},
"type": "library",
"autoload": {
"psr-4": {
"Commercie\\CurrencyExchange\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Bart Feenstra",
"email": "bart@mynameisbart.com"
}
],
"description": "A library for retrieving currency exchange rates.",
"time": "2016-07-01T11:01:48+00:00"
},
{ {
"name": "components/highlightjs", "name": "components/highlightjs",
"version": "9.7.0", "version": "9.7.0",
@ -3339,17 +3429,17 @@
}, },
{ {
"name": "drupal/commerce", "name": "drupal/commerce",
"version": "2.21.0", "version": "2.22.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.drupalcode.org/project/commerce.git", "url": "https://git.drupalcode.org/project/commerce.git",
"reference": "8.x-2.21" "reference": "8.x-2.22"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://ftp.drupal.org/files/projects/commerce-8.x-2.21.zip", "url": "https://ftp.drupal.org/files/projects/commerce-8.x-2.22.zip",
"reference": "8.x-2.21", "reference": "8.x-2.22",
"shasum": "3b38b58458e26f14cc4c203cda3f01ac84296909" "shasum": "c80e7dc0a6dada11a145fee2241053984d6d27f9"
}, },
"require": { "require": {
"commerceguys/intl": "^1.0.0", "commerceguys/intl": "^1.0.0",
@ -3381,8 +3471,8 @@
"type": "drupal-module", "type": "drupal-module",
"extra": { "extra": {
"drupal": { "drupal": {
"version": "8.x-2.21", "version": "8.x-2.22",
"datestamp": "1600787975", "datestamp": "1610116363",
"security-coverage": { "security-coverage": {
"status": "covered", "status": "covered",
"message": "Covered by Drupal's security advisory policy" "message": "Covered by Drupal's security advisory policy"
@ -3518,6 +3608,58 @@
"issues": "https://www.drupal.org/project/issues/commerce_cart_api" "issues": "https://www.drupal.org/project/issues/commerce_cart_api"
} }
}, },
{
"name": "drupal/commerce_cart_redirection",
"version": "3.0.5",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/commerce_cart_redirection.git",
"reference": "3.0.5"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/commerce_cart_redirection-3.0.5.zip",
"reference": "3.0.5",
"shasum": "362dcdf3a4a3e686dca238737d26e369d6b32190"
},
"require": {
"drupal/core": "^8 || ^9"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "3.0.5",
"datestamp": "1604876635",
"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": "AndyD328",
"homepage": "https://www.drupal.org/user/2261214"
},
{
"name": "calbasi",
"homepage": "https://www.drupal.org/user/318818"
}
],
"description": "Redirect to your cart page after adding a product to it",
"homepage": "https://www.drupal.org/project/commerce_cart_redirection",
"keywords": [
"Drupal"
],
"support": {
"source": "http://cgit.drupalcode.org/commerce_cart_redirection",
"issues": "https://www.drupal.org/project/issues/commerce_cart_redirection"
}
},
{ {
"name": "drupal/commerce_checkout", "name": "drupal/commerce_checkout",
"version": "2.21.0", "version": "2.21.0",
@ -3568,17 +3710,11 @@
}, },
{ {
"name": "drupal/commerce_license", "name": "drupal/commerce_license",
"version": "2.0.0-alpha18", "version": "dev-2.x",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.drupalcode.org/project/commerce_license.git", "url": "https://git.drupalcode.org/project/commerce_license.git",
"reference": "8.x-2.0-alpha18" "reference": "f1128fd1a75b30ed6ed7be24f6bd6cebb6e6c9cd"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/commerce_license-8.x-2.0-alpha18.zip",
"reference": "8.x-2.0-alpha18",
"shasum": "5f6950b15960e441be9351137865dac8c734d722"
}, },
"require": { "require": {
"drupal/advancedqueue": "^1.0", "drupal/advancedqueue": "^1.0",
@ -3596,12 +3732,15 @@
}, },
"type": "drupal-module", "type": "drupal-module",
"extra": { "extra": {
"branch-alias": {
"dev-2.x": "2.x-dev"
},
"drupal": { "drupal": {
"version": "8.x-2.0-alpha18", "version": "8.x-2.0-alpha18+1-dev",
"datestamp": "1533546784", "datestamp": "1580896875",
"security-coverage": { "security-coverage": {
"status": "not-covered", "status": "not-covered",
"message": "Alpha releases are not covered by Drupal security advisories." "message": "Dev releases are not covered by Drupal security advisories."
} }
} }
}, },
@ -3647,7 +3786,8 @@
"support": { "support": {
"source": "http://cgit.drupalcode.org/commerce_license", "source": "http://cgit.drupalcode.org/commerce_license",
"issues": "https://www.drupal.org/project/issues/commerce_license" "issues": "https://www.drupal.org/project/issues/commerce_license"
} },
"time": "2020-02-05T10:00:53+00:00"
}, },
{ {
"name": "drupal/commerce_migrate", "name": "drupal/commerce_migrate",
@ -4203,6 +4343,87 @@
"source": "https://git.drupalcode.org/project/commerce" "source": "https://git.drupalcode.org/project/commerce"
} }
}, },
{
"name": "drupal/commerce_stripe",
"version": "dev-1.x",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/commerce_stripe.git",
"reference": "14aa4b67b850528e5535e79aa70b6b7c30bf749d"
},
"require": {
"drupal/commerce": "^2.15",
"drupal/commerce_payment": "*",
"drupal/core": "^8.7.7 || ^9",
"stripe/stripe-php": "^7.25"
},
"type": "drupal-module",
"extra": {
"branch-alias": {
"dev-1.x": "1.x-dev"
},
"drupal": {
"version": "8.x-1.0-rc4+2-dev",
"datestamp": "1600788297",
"security-coverage": {
"status": "not-covered",
"message": "Dev releases are not covered by Drupal security advisories."
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "Damien Tournoud",
"homepage": "https://www.drupal.org/user/22211"
},
{
"name": "GuGuss",
"homepage": "https://www.drupal.org/user/1237516"
},
{
"name": "aviindub",
"homepage": "https://www.drupal.org/user/2565920"
},
{
"name": "bojanz",
"homepage": "https://www.drupal.org/user/86106"
},
{
"name": "iler",
"homepage": "https://www.drupal.org/user/726092"
},
{
"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"
},
{
"name": "torgosPizza",
"homepage": "https://www.drupal.org/user/151333"
},
{
"name": "vasike",
"homepage": "https://www.drupal.org/user/156237"
}
],
"description": "Provides Commerce integration for Stripe Payments.",
"homepage": "http://drupal.org/project/commerce_stripe",
"support": {
"source": "https://git.drupalcode.org/project/commerce_stripe"
},
"time": "2020-09-22T15:24:39+00:00"
},
{ {
"name": "drupal/commerce_variation_cart_form", "name": "drupal/commerce_variation_cart_form",
"version": "dev-1.x", "version": "dev-1.x",
@ -5673,6 +5894,65 @@
"issues": "https://www.drupal.org/project/issues/ctools" "issues": "https://www.drupal.org/project/issues/ctools"
} }
}, },
{
"name": "drupal/currency",
"version": "3.3.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/currency.git",
"reference": "8.x-3.3"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/currency-8.x-3.3.zip",
"reference": "8.x-3.3",
"shasum": "9e4fa704caa3fdded1419aebb1c289abdf5c27d3"
},
"require": {
"commercie/currency": "~1.0",
"commercie/currency-exchange": "~1.0",
"drupal/core": "^8.8 || ^9",
"drupal/plugin": "^2.6",
"ext-bcmath": "*",
"php": "~7.1"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-3.3",
"datestamp": "1595621136",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"autoload": {
"psr-4": {
"Drupal\\currency\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Drupal\\Tests\\currency\\": "tests/src"
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0"
],
"authors": [
{
"name": "Berdir",
"homepage": "https://www.drupal.org/user/214652"
}
],
"description": "Provides your Drupal site with currency conversion, currency information & metadata, and amount/price display functionality.",
"homepage": "https://www.drupal.org/project/currency",
"support": {
"source": "https://git.drupalcode.org/project/currency"
}
},
{ {
"name": "drupal/date_range_formatter", "name": "drupal/date_range_formatter",
"version": "3.1.0", "version": "3.1.0",
@ -5771,17 +6051,17 @@
}, },
{ {
"name": "drupal/devel", "name": "drupal/devel",
"version": "4.0.1", "version": "4.1.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.drupalcode.org/project/devel.git", "url": "https://git.drupalcode.org/project/devel.git",
"reference": "4.0.1" "reference": "4.1.1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://ftp.drupal.org/files/projects/devel-4.0.1.zip", "url": "https://ftp.drupal.org/files/projects/devel-4.1.1.zip",
"reference": "4.0.1", "reference": "4.1.1",
"shasum": "cf2458de1cbac00a88ed26ae3da2cf331e1bc047" "shasum": "88e5d49dda26a3136291ecd97bc6c8e897b24198"
}, },
"require": { "require": {
"doctrine/common": "^2.7", "doctrine/common": "^2.7",
@ -5792,16 +6072,7 @@
"kint-php/kint": "<3" "kint-php/kint": "<3"
}, },
"require-dev": { "require-dev": {
"composer/installers": "^1", "drush/drush": "^10"
"cweagans/composer-patches": "~1.0",
"drupal/core-composer-scaffold": "^8.0",
"drupal/core-dev": "^8.0",
"drupal/core-recommended": "^8.0",
"drush/drush": "^10",
"mglaman/phpstan-drupal": "^0.12",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpstan/phpstan-deprecation-rules": "^0.12",
"zaporylie/composer-drupal-optimizations": "^1.0"
}, },
"suggest": { "suggest": {
"kint-php/kint": "Kint provides an informative display of arrays/objects. Useful for debugging and developing." "kint-php/kint": "Kint provides an informative display of arrays/objects. Useful for debugging and developing."
@ -5809,82 +6080,20 @@
"type": "drupal-module", "type": "drupal-module",
"extra": { "extra": {
"drupal": { "drupal": {
"version": "4.0.1", "version": "4.1.1",
"datestamp": "1600300079", "datestamp": "1609419527",
"security-coverage": { "security-coverage": {
"status": "covered", "status": "covered",
"message": "Covered by Drupal's security advisory policy" "message": "Covered by Drupal's security advisory policy"
} }
}, },
"installer-paths": {
"web/core": [
"type:drupal-core"
],
"web/libraries/{$name}": [
"type:drupal-library"
],
"web/modules/contrib/{$name}": [
"type:drupal-module"
],
"web/profiles/{$name}": [
"type:drupal-profile"
],
"web/themes/{$name}": [
"type:drupal-theme"
],
"drush/{$name}": [
"type:drupal-drush"
]
},
"drupal-scaffold": {
"locations": {
"web-root": "web/"
}
},
"drush": { "drush": {
"services": { "services": {
"drush.services.yml": "^9 || ^10" "drush.services.yml": "^9 || ^10"
} }
} }
}, },
"autoload": {
"classmap": [
".spoons/ScriptHandler.php"
]
},
"notification-url": "https://packages.drupal.org/8/downloads", "notification-url": "https://packages.drupal.org/8/downloads",
"scripts": {
"si": [
"drush si -v --db-url=${SIMPLETEST_DB:-mysql://root:password@mariadb/db}"
],
"phpcs": [
"phpcs --runtime-set ignore_warnings_on_exit 1 --runtime-set ignore_errors_on_exit 1 web/modules/custom"
],
"lint": [
"parallel-lint --exclude web --exclude vendor ."
],
"webserver": [
"cd web && php -S 0.0.0.0:8888 .ht.router.php"
],
"chromedriver": [
"chromedriver --port=9515 --verbose --whitelisted-ips --log-path=/tmp/chromedriver.log --no-sandbox"
],
"unit": [
"phpunit --verbose web/modules/custom"
],
"phpstan": [
"phpstan analyse web/modules/custom"
],
"stylelint": [
"yarn --silent --cwd web/core stylelint --formatter verbose --config ./.stylelintrc.json ../modules/custom/**/*.css"
],
"eslint": [
"yarn --silent --cwd web/core eslint -c ./.eslintrc.json ../modules/custom"
],
"post-update-cmd": [
"Spoons\\ScriptHandler::createSymlinks"
]
},
"license": [ "license": [
"GPL-2.0-or-later" "GPL-2.0-or-later"
], ],
@ -6711,6 +6920,10 @@
"status": "not-covered", "status": "not-covered",
"message": "Dev releases are not covered by Drupal security advisories." "message": "Dev releases are not covered by Drupal security advisories."
} }
},
"patches_applied": {
"undefined index name 18 https://www.drupal.org/project/field_group/issues/3064890": "https://www.drupal.org/files/issues/2020-10-01/field_group-undefined-index-name-3064890-18.patch",
"undefined index name 16 https://www.drupal.org/project/field_group/issues/3064890": "https://www.drupal.org/files/issues/2020-08-10/field_group-undefined-index-name-3064890-16.patch"
} }
}, },
"notification-url": "https://packages.drupal.org/8/downloads", "notification-url": "https://packages.drupal.org/8/downloads",
@ -9631,6 +9844,123 @@
"source": "https://git.drupalcode.org/project/pathologic" "source": "https://git.drupalcode.org/project/pathologic"
} }
}, },
{
"name": "drupal/payment",
"version": "2.1.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/payment.git",
"reference": "8.x-2.1"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/payment-8.x-2.1.zip",
"reference": "8.x-2.1",
"shasum": "7a74d4cb89b443e1c9fde8538b3b96ee9c6893d1"
},
"require": {
"drupal/core": "^8.8 || ^9",
"drupal/currency": "~3.0",
"drupal/plugin": "~2.2",
"ext-bcmath": "*",
"php": "^7.1"
},
"require-dev": {
"drupal/payment_reference": "*"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-2.1",
"datestamp": "1595623153",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"autoload": {
"psr-4": {
"Drupal\\payment\\": "src",
"Drupal\\payment_form\\": "modules/payment_form/src",
"Drupal\\payment_reference\\": "modules/payment_reference/src"
}
},
"autoload-dev": {
"psr-4": {
"Drupal\\Tests\\payment\\": "tests/src",
"Drupal\\Tests\\payment_form\\": "modules/payment_form/tests/src",
"Drupal\\Tests\\payment_reference\\": "modules/payment_reference/tests/src"
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0"
],
"authors": [
{
"name": "Berdir",
"homepage": "https://www.drupal.org/user/214652"
},
{
"name": "ricovandevin",
"homepage": "https://www.drupal.org/user/1243726"
},
{
"name": "torotil",
"homepage": "https://www.drupal.org/user/865256"
}
],
"description": "Allows payments to be made using any of the available payment methods.",
"homepage": "https://www.drupal.org/project/payment",
"support": {
"source": "https://git.drupalcode.org/project/payment"
}
},
{
"name": "drupal/payment_commerce",
"version": "dev-2.x",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/payment_commerce.git",
"reference": "deaa480c6c9a8f3e32567650e265d47f0e93e67e"
},
"require": {
"drupal/commerce_payment": "*",
"drupal/core": "~8.0",
"drupal/payment": "*"
},
"type": "drupal-module",
"extra": {
"branch-alias": {
"dev-2.x": "2.x-dev"
},
"drupal": {
"version": "8.x-2.x-dev",
"datestamp": "1507110244",
"security-coverage": {
"status": "not-covered",
"message": "Dev releases are not covered by Drupal security advisories."
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "ricovandevin",
"homepage": "https://www.drupal.org/user/1243726"
}
],
"description": "Allows Drupal Commerce orders to be paid using Payment.",
"homepage": "https://www.drupal.org/project/payment_commerce",
"support": {
"source": "https://git.drupalcode.org/project/payment_commerce"
},
"time": "2017-10-04T09:40:53+00:00"
},
{ {
"name": "drupal/permissions_filter", "name": "drupal/permissions_filter",
"version": "1.1.0", "version": "1.1.0",
@ -9723,6 +10053,69 @@
"issues": "https://www.drupal.org/project/issues/persistent_login" "issues": "https://www.drupal.org/project/issues/persistent_login"
} }
}, },
{
"name": "drupal/plugin",
"version": "2.8.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/plugin.git",
"reference": "8.x-2.8"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/plugin-8.x-2.8.zip",
"reference": "8.x-2.8",
"shasum": "dc97912f7982fc87d905d32167e90c13d7d44093"
},
"require": {
"drupal/core": "^8.7.7 || ^9",
"php": "~7.1"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-2.8",
"datestamp": "1595360847",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"autoload": {
"psr-4": {
"Drupal\\plugin\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Drupal\\Tests\\plugin\\": "tests/src"
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0"
],
"authors": [
{
"name": "Berdir",
"homepage": "https://www.drupal.org/user/214652"
},
{
"name": "bradjones1",
"homepage": "https://www.drupal.org/user/405824"
},
{
"name": "joachim",
"homepage": "https://www.drupal.org/user/107701"
}
],
"description": "Provides tools that extend Drupal's plugin system.",
"homepage": "https://www.drupal.org/project/plugin",
"support": {
"source": "https://git.drupalcode.org/project/plugin"
}
},
{ {
"name": "drupal/profile", "name": "drupal/profile",
"version": "1.2.0", "version": "1.2.0",
@ -9793,30 +10186,30 @@
}, },
{ {
"name": "drupal/recurring_period", "name": "drupal/recurring_period",
"version": "1.0.0-alpha5", "version": "1.0.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.drupalcode.org/project/recurring_period.git", "url": "https://git.drupalcode.org/project/recurring_period.git",
"reference": "8.x-1.0-alpha5" "reference": "8.x-1.0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://ftp.drupal.org/files/projects/recurring_period-8.x-1.0-alpha5.zip", "url": "https://ftp.drupal.org/files/projects/recurring_period-8.x-1.0.zip",
"reference": "8.x-1.0-alpha5", "reference": "8.x-1.0",
"shasum": "441ab529d266c08977c97021f37746cf3203b017" "shasum": "da6506bc12de892d86706fba7904691de822e10b"
}, },
"require": { "require": {
"drupal/core": "~8.0", "drupal/core": "^8.8 || ^9",
"drupal/interval": "*" "drupal/interval": "*"
}, },
"type": "drupal-module", "type": "drupal-module",
"extra": { "extra": {
"drupal": { "drupal": {
"version": "8.x-1.0-alpha5", "version": "8.x-1.0",
"datestamp": "1561811286", "datestamp": "1607335704",
"security-coverage": { "security-coverage": {
"status": "not-covered", "status": "covered",
"message": "Project has not opted into security advisory coverage!" "message": "Covered by Drupal's security advisory policy"
} }
} }
}, },
@ -14984,6 +15377,63 @@
"description": "Automatic BASH completion for Symfony Console Component based applications.", "description": "Automatic BASH completion for Symfony Console Component based applications.",
"time": "2019-11-24T17:03:06+00:00" "time": "2019-11-24T17:03:06+00:00"
}, },
{
"name": "stripe/stripe-php",
"version": "v7.67.0",
"source": {
"type": "git",
"url": "https://github.com/stripe/stripe-php.git",
"reference": "935d2c67912007f6d17b6c08a62050252c509129"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/stripe/stripe-php/zipball/935d2c67912007f6d17b6c08a62050252c509129",
"reference": "935d2c67912007f6d17b6c08a62050252c509129",
"shasum": ""
},
"require": {
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"php": ">=5.6.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "2.17.1",
"php-coveralls/php-coveralls": "^2.1",
"phpunit/phpunit": "^5.7",
"squizlabs/php_codesniffer": "^3.3",
"symfony/process": "~3.4"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.0-dev"
}
},
"autoload": {
"psr-4": {
"Stripe\\": "lib/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Stripe and contributors",
"homepage": "https://github.com/stripe/stripe-php/contributors"
}
],
"description": "Stripe PHP Library",
"homepage": "https://stripe.com/",
"keywords": [
"api",
"payment processing",
"stripe"
],
"time": "2020-12-09T19:00:34+00:00"
},
{ {
"name": "symfony-cmf/routing", "name": "symfony-cmf/routing",
"version": "1.4.1", "version": "1.4.1",
@ -17895,9 +18345,10 @@
"minimum-stability": "dev", "minimum-stability": "dev",
"stability-flags": { "stability-flags": {
"drupal/auto_entitylabel": 20, "drupal/auto_entitylabel": 20,
"drupal/commerce_license": 15, "drupal/commerce_license": 20,
"drupal/commerce_pricelist": 20, "drupal/commerce_pricelist": 20,
"drupal/commerce_recurring": 20, "drupal/commerce_recurring": 20,
"drupal/commerce_stripe": 20,
"drupal/commerce_variation_cart_form": 20, "drupal/commerce_variation_cart_form": 20,
"drupal/computed_field": 10, "drupal/computed_field": 10,
"drupal/content_sync": 20, "drupal/content_sync": 20,
@ -17914,6 +18365,7 @@
"drupal/migrate_plus": 20, "drupal/migrate_plus": 20,
"drupal/migrate_tools": 20, "drupal/migrate_tools": 20,
"drupal/mimemail": 20, "drupal/mimemail": 20,
"drupal/payment_commerce": 20,
"drupal/search_api_page": 20, "drupal/search_api_page": 20,
"drupal/select_translation": 20, "drupal/select_translation": 20,
"drupal/simplenews": 20, "drupal/simplenews": 20,

View File

@ -1,2 +1,3 @@
enabled: false enabled: false
timeout: null timeout: null
url: ''

View File

@ -2,3 +2,4 @@ enabled: true
timeout: 0 timeout: 0
_core: _core:
default_config_hash: Oe-fB2enOwHHacGGf5HLP31RdU9bEsQZ19YQ6AS8pjw default_config_hash: Oe-fB2enOwHHacGGf5HLP31RdU9bEsQZ19YQ6AS8pjw
url: ''

View File

@ -1,2 +1,3 @@
enabled: false enabled: false
timeout: null timeout: null
url: ''

View File

@ -1,2 +1,3 @@
enabled: false enabled: false
timeout: null timeout: null
url: ''

View File

@ -1,2 +1,3 @@
enabled: false enabled: false
timeout: null timeout: null
url: ''

View File

@ -1,2 +1,3 @@
enabled: false enabled: false
timeout: null timeout: null
url: ''

View File

@ -2,3 +2,4 @@ enabled: true
timeout: 0 timeout: 0
_core: _core:
default_config_hash: Oe-fB2enOwHHacGGf5HLP31RdU9bEsQZ19YQ6AS8pjw default_config_hash: Oe-fB2enOwHHacGGf5HLP31RdU9bEsQZ19YQ6AS8pjw
url: ''

View File

@ -1,2 +1,3 @@
enabled: false enabled: false
timeout: null timeout: null
url: ''

View File

@ -1,2 +1,3 @@
enabled: false enabled: false
timeout: null timeout: null
url: ''

View File

@ -1,2 +1,3 @@
enabled: false enabled: false
timeout: null timeout: null
url: ''

View File

@ -15,4 +15,10 @@ langcode: fr
_core: _core:
default_config_hash: m2pxH8tc4KIlh127R5TYim65W7NBY9gpYQnIXlvDp0M default_config_hash: m2pxH8tc4KIlh127R5TYim65W7NBY9gpYQnIXlvDp0M
dialog_title: 'materiO Alert' dialog_title: 'materiO Alert'
no_individual_logout_threshold: false no_individual_logout_threshold: true
role_logout_max: true
inactivity_message_type: status
disable_buttons: false
yes_button: ''
no_button: ''
whitelisted_ip_addresses: ''

View File

@ -0,0 +1,46 @@
uuid: f1f79e84-77c7-4d8a-a4b5-a8a84f380cb0
langcode: en
status: true
dependencies:
module:
- commerce_checkout
- context
- ctools
theme:
- materiotheme
id: checkoutprogress
theme: materiotheme
region: content_top
weight: 0
provider: null
plugin: commerce_checkout_progress
settings:
id: commerce_checkout_progress
label: 'Checkout progress'
provider: commerce_checkout
label_display: '0'
visibility:
view_inclusion:
id: view_inclusion
negate: null
view_inclusion: { }
context_mapping: { }
request_path_exclusion:
id: request_path_exclusion
pages: ''
negate: null
context_mapping: { }
'entity_bundle:commerce_product_variation':
id: 'entity_bundle:commerce_product_variation'
bundles:
materio_product_variation_type: materio_product_variation_type
negate: false
context_mapping:
commerce_product_variation: '@commerce_product.product_variation_route_context:commerce_product_variation'
'entity_bundle:commerce_product':
id: 'entity_bundle:commerce_product'
bundles:
materio_product_type: materio_product_type
negate: false
context_mapping:
commerce_product: '@commerce_product.product_route_context:commerce_product'

View File

@ -3,6 +3,7 @@ langcode: en
status: true status: true
dependencies: dependencies:
module: module:
- context
- user - user
theme: theme:
- materiotheme - materiotheme
@ -23,8 +24,19 @@ visibility:
user_role: user_role:
id: user_role id: user_role
roles: roles:
authenticated: authenticated
admin: admin admin: admin
root: root root: root
negate: false negate: false
context_mapping: context_mapping:
user: '@user.current_user_context:current_user' user: '@user.current_user_context:current_user'
view_inclusion:
id: view_inclusion
negate: null
view_inclusion: { }
context_mapping: { }
request_path_exclusion:
id: request_path_exclusion
pages: ''
negate: null
context_mapping: { }

View File

@ -5,54 +5,60 @@ dependencies:
module: module:
- commerce_payment - commerce_payment
- commerce_promotion - commerce_promotion
- commerce_stripe
- email_registration - email_registration
id: materio_checkout_flow id: materio_checkout_flow
label: 'materio checkout flow' label: 'materio checkout flow'
plugin: multistep_default plugin: multistep_default
configuration: configuration:
display_checkout_progress: true display_checkout_progress: true
display_checkout_progress_breadcrumb_links: true
panes: panes:
login:
allow_guest_checkout: true
allow_registration: true
step: login
weight: 0
email_registration_login: email_registration_login:
allow_guest_checkout: true allow_guest_checkout: true
allow_registration: true allow_registration: false
step: login step: _disabled
weight: 1 weight: 8
contact_information: contact_information:
double_entry: false double_entry: false
step: order_information step: order_information
weight: 2 weight: 0
payment_information: payment_information:
step: order_information step: order_information
weight: 3 weight: 1
review: review:
step: review step: review
weight: 4 weight: 2
stripe_review:
button_id: edit-actions-next
step: review
weight: 3
payment_process: payment_process:
capture: true capture: true
step: payment step: payment
weight: 5 weight: 4
completion_message: completion_message:
message: message:
value: "Your order number is [commerce_order:order_number].\r\nYou can view your order on your account page when logged in." value: "Your order number is [commerce_order:order_number].\r\nYou can view your order on your account page when logged in."
format: plain_text format: plain_text
step: complete step: complete
weight: 6 weight: 5
completion_register:
step: complete
weight: 7
order_summary: order_summary:
view: commerce_checkout_order_summary view: commerce_checkout_order_summary
step: _sidebar step: _sidebar
weight: 8 weight: 6
coupon_redemption: coupon_redemption:
allow_multiple: false allow_multiple: false
step: _sidebar step: _sidebar
weight: 9 weight: 7
email_registration_completion_registration: email_registration_completion_registration:
step: _disabled
weight: 9
completion_register:
step: _disabled step: _disabled
weight: 10 weight: 10
login:
allow_guest_checkout: true
allow_registration: false
step: _disabled
weight: 11

View File

@ -1,21 +1,22 @@
uuid: 9fd9ac25-5b14-4630-a056-546da6b3b418 uuid: 9fd9ac25-5b14-4630-a056-546da6b3b418
langcode: en langcode: en
status: true status: false
dependencies: dependencies:
module: module:
- commerce_cmcic - commerce_cmcic
id: cm_cic id: cm_cic
label: CM-CIC label: CIC-CM
weight: null weight: -10
plugin: commerce_cmcic plugin: commerce_cmcic
configuration: configuration:
display_label: CM-CIC display_label: 'Credit Card via CIC-CM'
mode: test mode: test
payment_method_types: payment_method_types:
- credit_card - credit_card
bank_type: cic collect_billing_information: true
bank_type: monetico
version: '3.0' version: '3.0'
security_key: 7C86189FA72DA637A722BB395BFB9D403D3C70P7 security_key: 7C86189FA72DA637A722BB395BFB9D403D3C7097
tpe: '6277685' tpe: '6277685'
company: materio company: materio
conditions: { } conditions: { }

View File

@ -0,0 +1,20 @@
uuid: e41e2a00-d6e1-4a9b-add4-058e4fbde0d2
langcode: en
status: true
dependencies:
module:
- commerce_stripe
id: stripe
label: Stripe
weight: -10
plugin: stripe
configuration:
publishable_key: pk_test_51I7RAuBp8BkjanLQtX3lktLLC3PIOkzKVqPqijC9GZz1XD2PHLZHEQOSJzjVnvxO2aMuk0mQybVZnNnLsJDSWMP800VENEIUqZ
secret_key: sk_test_51I7RAuBp8BkjanLQSwUpyIDFUwvWgXjsJZHI5HAcZK9XCe3Gw1BuhxvvgZccv5Feb6jAo8ZskId2K5Oy4IIUsOQP00Mb4LdMfO
display_label: Stripe
mode: test
payment_method_types:
- credit_card
collect_billing_information: true
conditions: { }
conditionOperator: AND

View File

@ -1,4 +0,0 @@
site_uuid_override: '0'
help_menu_disabled: false
_core:
default_config_hash: WvXLN1x52wMWWAMFc8gpSuFK5mrsLBp4e1pRR2-M08k

View File

@ -1,3 +0,0 @@
content_sync:
site_uuid_override: 0
help_menu_disabled: true

View File

@ -6,6 +6,7 @@ dependencies:
- commerce_order.commerce_order_type.default - commerce_order.commerce_order_type.default
module: module:
- commerce_order - commerce_order
- commerce_price
- state_machine - state_machine
- user - user
_core: _core:
@ -15,6 +16,15 @@ targetEntityType: commerce_order
bundle: default bundle: default
mode: default mode: default
content: content:
balance:
type: commerce_price_default
label: inline
weight: 9
settings:
strip_trailing_zeroes: false
currency_display: symbol
third_party_settings: { }
region: content
changed: changed:
type: timestamp type: timestamp
weight: 4 weight: 4
@ -91,5 +101,6 @@ content:
hidden: hidden:
billing_profile: true billing_profile: true
order_number: true order_number: true
search_api_excerpt: true
store_id: true store_id: true
total_paid: true total_paid: true

View File

@ -15,6 +15,15 @@ targetEntityType: commerce_order
bundle: materio_order_type bundle: materio_order_type
mode: default mode: default
content: content:
balance:
type: commerce_price_default
label: inline
weight: 12
settings:
strip_trailing_zeroes: false
currency_display: symbol
third_party_settings: { }
region: content
billing_profile: billing_profile:
type: entity_reference_revisions_entity_view type: entity_reference_revisions_entity_view
weight: 10 weight: 10

View File

@ -8,6 +8,7 @@ dependencies:
- field.field.commerce_order.recurring.billing_schedule - field.field.commerce_order.recurring.billing_schedule
module: module:
- commerce_order - commerce_order
- commerce_price
- commerce_recurring - commerce_recurring
- state_machine - state_machine
- user - user
@ -18,6 +19,15 @@ targetEntityType: commerce_order
bundle: recurring bundle: recurring
mode: default mode: default
content: content:
balance:
type: commerce_price_default
label: inline
weight: 10
settings:
strip_trailing_zeroes: false
currency_display: symbol
third_party_settings: { }
region: content
billing_period: billing_period:
type: commerce_billing_period_default type: commerce_billing_period_default
weight: 0 weight: 0
@ -102,5 +112,6 @@ hidden:
billing_profile: true billing_profile: true
billing_schedule: true billing_schedule: true
order_number: true order_number: true
search_api_excerpt: true
store_id: true store_id: true
total_paid: true total_paid: true

View File

@ -0,0 +1,39 @@
uuid: 52c3ccdf-4fb5-4c18-bc17-bf6d0129bd7e
langcode: en
status: true
dependencies:
config:
- commerce_product.commerce_product_type.materio_product_type
- core.entity_view_mode.commerce_product.home_summary
- field.field.commerce_product.materio_product_type.body
- field.field.commerce_product.materio_product_type.field_price_description
module:
- text
id: commerce_product.materio_product_type.home_summary
targetEntityType: commerce_product
bundle: materio_product_type
mode: home_summary
content:
body:
type: text_default
weight: 1
region: content
label: hidden
settings: { }
third_party_settings: { }
title:
type: string
weight: 0
region: content
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
hidden:
created: true
field_price_description: true
langcode: true
search_api_excerpt: true
stores: true
uid: true
variations: true

View File

@ -255,7 +255,7 @@ content:
weight: 6 weight: 6
region: content region: content
settings: settings:
view_mode: summary view_mode: home_summary
link: false link: false
third_party_settings: { } third_party_settings: { }
type: entity_reference_entity_view type: entity_reference_entity_view

View File

@ -0,0 +1,10 @@
uuid: 42591e4f-3a62-4225-b025-f4436508aeb9
langcode: en
status: true
dependencies:
module:
- commerce_product
id: commerce_product.home_summary
label: 'Home summary'
targetEntityType: commerce_product
cache: true

View File

@ -36,6 +36,7 @@ module:
commerce_promotion: 0 commerce_promotion: 0
commerce_recurring: 0 commerce_recurring: 0
commerce_store: 0 commerce_store: 0
commerce_stripe: 0
commerce_tax: 0 commerce_tax: 0
commerce_variation_cart_form: 0 commerce_variation_cart_form: 0
computed_field: 0 computed_field: 0
@ -50,12 +51,12 @@ module:
contact: 0 contact: 0
content_lock: 0 content_lock: 0
content_lock_timeout: 0 content_lock_timeout: 0
content_sync: 0
context: 0 context: 0
contextual: 0 contextual: 0
cshs: 0 cshs: 0
ctools: 0 ctools: 0
ctools_block: 0 ctools_block: 0
currency: 0
date_range_formatter: 0 date_range_formatter: 0
datetime: 0 datetime: 0
datetime_range: 0 datetime_range: 0
@ -141,6 +142,7 @@ module:
pathologic: 0 pathologic: 0
permissions_filter: 0 permissions_filter: 0
persistent_login: 0 persistent_login: 0
plugin: 0
profile: 0 profile: 0
recurring_period: 0 recurring_period: 0
redirect: 0 redirect: 0

View File

@ -0,0 +1,3 @@
plugin_id: currency_basic
_core:
default_config_hash: KxmQKHtm7y2OHcdp0pt27aKtDrezgRSJCsXQ0fFQ-Sg

View File

@ -0,0 +1,22 @@
uuid: cde6b53b-b481-4c4f-b182-673281e65b9a
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: Z1YlONWzZZRT4LTq7RYN4hf3MEcT160wbomEsxLoPZ8
alternativeSigns: { }
currencyCode: XXX
currencyNumber: '999'
label: 'No currency'
roundingStep: null
sign: ¤
subunits: 0
usages:
-
start: ''
end: ''
countryCode: AQ
-
start: ''
end: ''
countryCode: ZZ

View File

@ -0,0 +1,10 @@
uuid: 451e712c-eec9-4a60-9402-d17b1619ee2e
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: nAygxNkoV-dysf09n8eaT2MeULBzTisuxlMqdXEJbr8
decimalSeparator: .
groupingSeparator: ','
locale: en_US
pattern: '¤#,##0.00;(¤#,##0.00)'

View File

@ -0,0 +1,9 @@
plugins:
-
plugin_id: currency_fixed_rates
status: true
-
plugin_id: currency_historical_rates
status: true
_core:
default_config_hash: TrKWV8zxs3oIJUC4bRlCJZrOFimdU4FgrGrFusfxJME

View File

@ -0,0 +1,3 @@
rates: { }
_core:
default_config_hash: wgwYiaurYzrbMFP3CJz93tXZV-PTtGq_G0GLCXZ_VH8

View File

@ -14,6 +14,7 @@ dependencies:
- profile - profile
- state_machine - state_machine
- user - user
- views_bulk_operations
_core: _core:
default_config_hash: qDJpXJ_8FkzPY58X9u7E69YkFZTYVb-pIw1qMrHC6yk default_config_hash: qDJpXJ_8FkzPY58X9u7E69YkFZTYVb-pIw1qMrHC6yk
id: commerce_licenses id: commerce_licenses
@ -242,6 +243,64 @@ display:
row: row:
type: fields type: fields
fields: fields:
views_bulk_operations_bulk_form:
id: views_bulk_operations_bulk_form
table: views
field: views_bulk_operations_bulk_form
relationship: none
group_type: group
admin_label: ''
label: 'Views bulk 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
batch: true
batch_size: 10
form_step: true
buttons: false
clear_on_exposed: true
action_title: Action
selected_actions:
2:
action_id: views_bulk_operations_delete_entity
plugin_id: views_bulk_operations_bulk_form
license_id: license_id:
id: license_id id: license_id
table: commerce_license table: commerce_license
@ -1624,7 +1683,7 @@ display:
display_extenders: display_extenders:
views_ef_fieldset: { } views_ef_fieldset: { }
cache_metadata: cache_metadata:
max-age: -1 max-age: 0
contexts: contexts:
- 'languages:language_content' - 'languages:language_content'
- 'languages:language_interface' - 'languages:language_interface'
@ -1644,7 +1703,7 @@ display:
views_ef_fieldset: { } views_ef_fieldset: { }
path: admin/commerce/licenses path: admin/commerce/licenses
cache_metadata: cache_metadata:
max-age: -1 max-age: 0
contexts: contexts:
- 'languages:language_content' - 'languages:language_content'
- 'languages:language_interface' - 'languages:language_interface'

5
package-lock.json generated
View File

@ -4611,6 +4611,11 @@
"integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=",
"dev": true "dev": true
}, },
"check-password-strength": {
"version": "1.0.15",
"resolved": "https://registry.npmjs.org/check-password-strength/-/check-password-strength-1.0.15.tgz",
"integrity": "sha512-e43Hzwets7P/oeFmCxdzLC9xUVH3mfP70WRchAj23+NPct8dy/yLEZC3ikTZ0/Cht9rcPMoACIiEGyVkiqWjkw=="
},
"chownr": { "chownr": {
"version": "1.1.3", "version": "1.1.3",
"resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.3.tgz", "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.3.tgz",

View File

@ -19,6 +19,7 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"axios": "^0.21.0", "axios": "^0.21.0",
"check-password-strength": "^1.0.15",
"vue": "^2.6.12", "vue": "^2.6.12",
"vue-autofocus-directive": "^1.0.4", "vue-autofocus-directive": "^1.0.4",
"vue-cool-lightbox": "^2.6.9", "vue-cool-lightbox": "^2.6.9",

View File

@ -106,7 +106,7 @@ function materio_home_entity_bundle_field_info(EntityTypeInterface $entity_type,
->setTargetEntityTypeId($entity_type->id()) ->setTargetEntityTypeId($entity_type->id())
// // The Entity Type bundle this field belongs to. // // The Entity Type bundle this field belongs to.
->setTargetBundle($bundle) ->setTargetBundle($bundle)
->setSetting('target_type', 'commerce_product_variation') ->setSetting('target_type', 'commerce_product')
->setCardinality(FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED) ->setCardinality(FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED)
->setComputed(TRUE) ->setComputed(TRUE)
->setRevisionable(FALSE) ->setRevisionable(FALSE)
@ -116,7 +116,7 @@ function materio_home_entity_bundle_field_info(EntityTypeInterface $entity_type,
'label' => 'hidden', 'label' => 'hidden',
'weight' => -5, 'weight' => -5,
]) ])
->setClass(\Drupal\materio_home\Plugin\Field\FieldType\ComputedProdVariationsReferences::class); ->setClass(\Drupal\materio_home\Plugin\Field\FieldType\ComputedCommerceProductReferences::class);
return $fields; return $fields;
} }

View File

@ -13,7 +13,7 @@ use Drupal\Core\TypedData\ComputedItemListTrait;
// https://www.cornel.co/article/entity-reference-computed-field-example-drupal // https://www.cornel.co/article/entity-reference-computed-field-example-drupal
// https://www.caxy.com/blog/drupal-custom-form-and-computed-fields // https://www.caxy.com/blog/drupal-custom-form-and-computed-fields
class ComputedProdVariationsReferences extends EntityReferenceFieldItemList class ComputedCommerceProductReferences extends EntityReferenceFieldItemList
{ {
use ComputedItemListTrait; use ComputedItemListTrait;
/** /**
@ -35,7 +35,7 @@ class ComputedProdVariationsReferences extends EntityReferenceFieldItemList
* Compute the values. * Compute the values.
*/ */
protected function computeValue() { protected function computeValue() {
$query = \Drupal::entityQuery('commerce_product_variation') $query = \Drupal::entityQuery('commerce_product')
->condition('status', 1) ->condition('status', 1)
->sort('created', 'ASC') ->sort('created', 'ASC')
// ->exists('field_visuel') // ->exists('field_visuel')

View File

@ -50,7 +50,9 @@ function materio_user_form_user_modal_form_alter(&$form, FormStateInterface $for
$form['actions']['submit']['#attributes'] = array( $form['actions']['submit']['#attributes'] = array(
"@click.prevent" => "register", "@click.prevent" => "register",
"@keyup.enter" => "register" "@keyup.enter" => "register",
"ref" => "register"
// ":class" => "can_register"
); );
} }
@ -59,7 +61,8 @@ function _materio_user_process_password_confirm($element){
// ksm($element); // ksm($element);
$element['pass1']['#attributes'] += array( $element['pass1']['#attributes'] += array(
"v-model" => "pass1", "v-model" => "pass1",
"placeholder" => $element['pass1']['#title'] "placeholder" => $element['pass1']['#title'],
":class" => "psswd_class"
); );
$element['pass2']['#attributes'] += array( $element['pass2']['#attributes'] += array(
"v-model" => "pass2", "v-model" => "pass2",

View File

@ -45,6 +45,27 @@ div.description[data-v-7bb795f8] {
max-width: 30%; max-width: 30%;
margin: 0; margin: 0;
} }
.form-type-password input.weak[data-v-2acc57a0] {
border-width: 2px;
border-color: red !important;
}
.form-type-password input.weak[data-v-2acc57a0]:focus {
outline: none;
}
.form-type-password input.medium[data-v-2acc57a0] {
border-width: 2px;
border-color: orange !important;
}
.form-type-password input.medium[data-v-2acc57a0]:focus {
outline: none;
}
.form-type-password input.strong[data-v-2acc57a0] {
border-width: 2px;
border-color: green !important;
}
.form-type-password input.strong[data-v-2acc57a0]:focus {
outline: none;
}
input[data-v-2acc57a0] { input[data-v-2acc57a0] {
box-sizing: content-box; box-sizing: content-box;
max-width: 100%; max-width: 100%;
@ -110,6 +131,14 @@ p a {
width: 100%; width: 100%;
border-bottom: 1px dotted #000; } border-bottom: 1px dotted #000; }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
border-radius: 5px;
border: 0.5px solid #aaa;
padding: 0.3em 0.4em; }
.col-1, .small-col-1, .med-col-1, .large-col-1, .col-2, .small-col-2, .med-col-2, .large-col-2, .col-3, .small-col-3, .med-col-3, .large-col-3, .col-4, .small-col-4, .med-col-4, .large-col-4, .col-5, .small-col-5, .med-col-5, .large-col-5, .col-6, .small-col-6, .med-col-6, .large-col-6, .col-7, .small-col-7, .med-col-7, .large-col-7, .col-8, .small-col-8, .med-col-8, .large-col-8, .col-9, .small-col-9, .med-col-9, .large-col-9, .col-10, .small-col-10, .med-col-10, .large-col-10, .col-11, .small-col-11, .med-col-11, .large-col-11, .col-12, .small-col-12, .med-col-12, .large-col-12, .col-1-offset-1, .col-1-offset-2, .col-1-offset-3, .col-1-offset-4, .col-1-offset-5, .col-1-offset-6, .col-1-offset-7, .col-1-offset-8, .col-1-offset-9, .col-1-offset-10, .col-1-offset-11, .col-2-offset-1, .col-2-offset-2, .col-2-offset-3, .col-2-offset-4, .col-2-offset-5, .col-2-offset-6, .col-2-offset-7, .col-2-offset-8, .col-2-offset-9, .col-2-offset-10, .col-3-offset-1, .col-3-offset-2, .col-3-offset-3, .col-3-offset-4, .col-3-offset-5, .col-3-offset-6, .col-3-offset-7, .col-3-offset-8, .col-3-offset-9, .col-4-offset-1, .col-4-offset-2, .col-4-offset-3, .col-4-offset-4, .col-4-offset-5, .col-4-offset-6, .col-4-offset-7, .col-4-offset-8, .col-5-offset-1, .col-5-offset-2, .col-5-offset-3, .col-5-offset-4, .col-5-offset-5, .col-5-offset-6, .col-5-offset-7, .col-6-offset-1, .col-6-offset-2, .col-6-offset-3, .col-6-offset-4, .col-6-offset-5, .col-6-offset-6, .col-7-offset-1, .col-7-offset-2, .col-7-offset-3, .col-7-offset-4, .col-7-offset-5, .col-8-offset-1, .col-8-offset-2, .col-8-offset-3, .col-8-offset-4, .col-9-offset-1, .col-9-offset-2, .col-9-offset-3, .col-10-offset-1, .col-10-offset-2, .col-11-offset-1 { .col-1, .small-col-1, .med-col-1, .large-col-1, .col-2, .small-col-2, .med-col-2, .large-col-2, .col-3, .small-col-3, .med-col-3, .large-col-3, .col-4, .small-col-4, .med-col-4, .large-col-4, .col-5, .small-col-5, .med-col-5, .large-col-5, .col-6, .small-col-6, .med-col-6, .large-col-6, .col-7, .small-col-7, .med-col-7, .large-col-7, .col-8, .small-col-8, .med-col-8, .large-col-8, .col-9, .small-col-9, .med-col-9, .large-col-9, .col-10, .small-col-10, .med-col-10, .large-col-10, .col-11, .small-col-11, .med-col-11, .large-col-11, .col-12, .small-col-12, .med-col-12, .large-col-12, .col-1-offset-1, .col-1-offset-2, .col-1-offset-3, .col-1-offset-4, .col-1-offset-5, .col-1-offset-6, .col-1-offset-7, .col-1-offset-8, .col-1-offset-9, .col-1-offset-10, .col-1-offset-11, .col-2-offset-1, .col-2-offset-2, .col-2-offset-3, .col-2-offset-4, .col-2-offset-5, .col-2-offset-6, .col-2-offset-7, .col-2-offset-8, .col-2-offset-9, .col-2-offset-10, .col-3-offset-1, .col-3-offset-2, .col-3-offset-3, .col-3-offset-4, .col-3-offset-5, .col-3-offset-6, .col-3-offset-7, .col-3-offset-8, .col-3-offset-9, .col-4-offset-1, .col-4-offset-2, .col-4-offset-3, .col-4-offset-4, .col-4-offset-5, .col-4-offset-6, .col-4-offset-7, .col-4-offset-8, .col-5-offset-1, .col-5-offset-2, .col-5-offset-3, .col-5-offset-4, .col-5-offset-5, .col-5-offset-6, .col-5-offset-7, .col-6-offset-1, .col-6-offset-2, .col-6-offset-3, .col-6-offset-4, .col-6-offset-5, .col-6-offset-6, .col-7-offset-1, .col-7-offset-2, .col-7-offset-3, .col-7-offset-4, .col-7-offset-5, .col-8-offset-1, .col-8-offset-2, .col-8-offset-3, .col-8-offset-4, .col-9-offset-1, .col-9-offset-2, .col-9-offset-3, .col-10-offset-1, .col-10-offset-2, .col-11-offset-1 {
width: 100%; width: 100%;
float: left; float: left;
@ -1505,7 +1534,7 @@ article.node--type-frontpage .node__content > section.home-intro > div:nth-child
font-size: 3.5em; font-size: 3.5em;
line-height: 1; } line-height: 1; }
article.node--type-frontpage .node__content > section.home-intro > div:nth-child(1) .field__item, article.node--type-frontpage .node__content > section.home-pricing > div:nth-child(1) .field__item, article.node--type-frontpage .node__content > section.home-database > div:nth-child(1) .field__item, article.node--type-frontpage .node__content > section.home-showrooms > div:nth-child(1) .field__item, article.node--type-frontpage .node__content > section.home-blabla > div:nth-child(1) .field__item, article.node--type-frontpage .node__content > section.home-pricing .field--name-computed-products-reference > .field__item .field--name-field-description { article.node--type-frontpage .node__content > section.home-intro > div:nth-child(1) .field__item, article.node--type-frontpage .node__content > section.home-pricing > div:nth-child(1) .field__item, article.node--type-frontpage .node__content > section.home-database > div:nth-child(1) .field__item, article.node--type-frontpage .node__content > section.home-showrooms > div:nth-child(1) .field__item, article.node--type-frontpage .node__content > section.home-blabla > div:nth-child(1) .field__item, article.node--type-frontpage .node__content > section.home-pricing .field--name-computed-products-reference > .field__item .field--name-body {
font-size: 0.9em; font-size: 0.9em;
line-height: 1.3; } line-height: 1.3; }
@ -1757,7 +1786,7 @@ article.node--type-frontpage .node__content > section.home-pricing .field--name-
background-color: #ff9f50; } background-color: #ff9f50; }
article.node--type-frontpage .node__content > section.home-pricing .field--name-computed-products-reference > .field__item:nth-child(2) a.btn { article.node--type-frontpage .node__content > section.home-pricing .field--name-computed-products-reference > .field__item:nth-child(2) a.btn {
color: #ff9f50; } color: #ff9f50; }
article.node--type-frontpage .node__content > section.home-pricing .field--name-computed-products-reference > .field__item > div { article.node--type-frontpage .node__content > section.home-pricing .field--name-computed-products-reference > .field__item > article {
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 50%;
@ -1765,12 +1794,12 @@ article.node--type-frontpage .node__content > section.home-pricing .field--name-
article.node--type-frontpage .node__content > section.home-pricing .field--name-computed-products-reference > .field__item .field--name-title { article.node--type-frontpage .node__content > section.home-pricing .field--name-computed-products-reference > .field__item .field--name-title {
font-weight: 600; font-weight: 600;
line-height: 0.7; line-height: 0.7;
padding-bottom: 0.5em; padding-bottom: 0.1em;
text-align: center; text-align: center;
word-spacing: 30000px; } word-spacing: 30000px; }
article.node--type-frontpage .node__content > section.home-pricing .field--name-computed-products-reference > .field__item .field--name-field-description { article.node--type-frontpage .node__content > section.home-pricing .field--name-computed-products-reference > .field__item .field--name-body {
padding: 0.5em; } padding: 0.5em; }
article.node--type-frontpage .node__content > section.home-pricing .field--name-computed-products-reference > .field__item .field--name-field-description p { article.node--type-frontpage .node__content > section.home-pricing .field--name-computed-products-reference > .field__item .field--name-body p {
margin: 0; } margin: 0; }
.infinite-loading-container .infinite-status-prompt i[class^="loading-"] { .infinite-loading-container .infinite-status-prompt i[class^="loading-"] {
@ -2255,9 +2284,25 @@ article.card {
min-width: 10em; } min-width: 10em; }
#main-content form.commerce-checkout-flow .layout-checkout-form .layout-region-checkout-main input[type="text"] { #main-content form.commerce-checkout-flow .layout-checkout-form .layout-region-checkout-main input[type="text"] {
width: 20em; } width: 20em; }
#main-content form.commerce-checkout-flow .layout-checkout-form .layout-region-checkout-main .form-item-payment-information-billing-information-address-0-address-address-line2 { #main-content form.commerce-checkout-flow .layout-checkout-form .layout-region-checkout-main .stripe-form {
display: inline-block;
background-color: #fff;
color: #1A1A1A;
border-radius: 5px;
padding: 1em;
margin: 0 0 1em; }
#main-content form.commerce-checkout-flow .layout-checkout-form .layout-region-checkout-main .stripe-form .form-item {
display: flex;
align-items: center;
flex-flow: row nowrap; }
#main-content form.commerce-checkout-flow .layout-checkout-form .layout-region-checkout-main .stripe-form .form-item label {
color: #777; }
#main-content form.commerce-checkout-flow .layout-checkout-form .layout-region-checkout-main .stripe-form .form-item .form-text {
background-color: #fff;
border-radius: 3px; }
#main-content form.commerce-checkout-flow .layout-checkout-form .layout-region-checkout-main .form-item-payment-information-add-payment-method-billing-information-address-0-address-address-line2 {
padding-left: 10.25em; } padding-left: 10.25em; }
#main-content form.commerce-checkout-flow .layout-checkout-form .layout-region-checkout-main .form-item-payment-information-billing-information-copy-to-address-book { #main-content form.commerce-checkout-flow .layout-checkout-form .layout-region-checkout-main .form-item-payment-information-add-payment-method-billing-information-copy-to-address-book {
display: none; } display: none; }
#main-content form.commerce-checkout-flow .layout-checkout-form .layout-region-checkout-secondary { #main-content form.commerce-checkout-flow .layout-checkout-form .layout-region-checkout-secondary {
width: 100%; width: 100%;

File diff suppressed because one or more lines are too long

View File

@ -33,3 +33,18 @@ p a{
border-bottom: 1px dotted #000; border-bottom: 1px dotted #000;
} }
} }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"]{
border-radius: 5px;
border : 0.5px solid #aaa;
padding: 0.3em 0.4em;
// &:focus{
// outline: none;
// border-color: blue;
// }
// outline-style: solid;
// outline-width: 1px;
}

View File

@ -874,7 +874,7 @@ article.node--type-frontpage{
color: #fff; color: #fff;
position: relative; position: relative;
height:18em; height:18em;
>div{ >article{
position: absolute; position: absolute;
top:50%; left:50%; top:50%; left:50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
@ -883,11 +883,11 @@ article.node--type-frontpage{
@extend %front-col-field__label; @extend %front-col-field__label;
font-weight: 600; font-weight: 600;
line-height: 0.7; line-height: 0.7;
padding-bottom: 0.5em; padding-bottom: 0.1em;
text-align: center; text-align: center;
word-spacing: 30000px; word-spacing: 30000px;
} }
.field--name-field-description{ .field--name-body{
@extend %front-col-description; @extend %front-col-description;
padding:0.5em; padding:0.5em;
p{ p{
@ -1525,10 +1525,32 @@ article.card{
input[type="text"]{ input[type="text"]{
width:20em; width:20em;
} }
.form-item-payment-information-billing-information-address-0-address-address-line2{ .stripe-form{
display: inline-block;
background-color: #fff;
color: #1A1A1A;
border-radius: 5px;
padding: 1em;
margin: 0 0 1em;
.form-item{
display: flex;
align-items: center;
flex-flow: row nowrap;
label{
color: #777;
}
.form-text{
background-color: #fff;
border-radius: 3px;
}
}
}
// .form-item-payment-information-billing-information-address-0-address-address-line2
.form-item-payment-information-add-payment-method-billing-information-address-0-address-address-line2{
padding-left:$lw + 0.25em; padding-left:$lw + 0.25em;
} }
.form-item-payment-information-billing-information-copy-to-address-book{ // .form-item-payment-information-billing-information-copy-to-address-book
.form-item-payment-information-add-payment-method-billing-information-copy-to-address-book{
display: none; display: none;
} }
} }

View File

@ -178,9 +178,13 @@ function materiotheme_theme_suggestions_field_alter(&$suggestions, &$vars){
function materiotheme_preprocess_commerce_product(array &$variables) { function materiotheme_preprocess_commerce_product(array &$variables) {
$test="test"; $test="test";
// remove the variation as we already display it via views // remove the variation as we already display it via views
if($variables['elements']['#view_mode'] === 'order_summary'){ if($variables['elements']['#view_mode'] === 'order_summary'
|| $variables['elements']['#view_mode'] === 'home_summary'){
unset($variables['product']['variation_title']); unset($variables['product']['variation_title']);
unset($variables['product']['variation_field_description']); unset($variables['product']['variation_field_description']);
unset($variables['product']['variation_price']);
unset($variables['product']['variation_field_multiple']);
unset($variables['product']['variation_commerce_variation_cart_form']);
} }
} }

View File

@ -0,0 +1,27 @@
{#
/**
* @file
*
* Default product template.
*
* Available variables:
* - attributes: HTML attributes for the wrapper.
* - product: The rendered product fields.
* Use 'product' to print them all, or print a subset such as
* 'product.title'. Use the following code to exclude the
* printing of a given field:
* @code
* {{ product|without('title') }}
* @endcode
* - product_entity: The product entity.
* - product_url: The product URL.
*
* @ingroup themeable
*/
#}
<article{{ attributes }}>
{{- product|without('variation_attributes') -}}
<a href="/pricing" @click.prevent="onClickLink" class="btn">
{% trans %}View Option Details{% endtrans %}
</a>
</article>

View File

@ -31,7 +31,7 @@
:styles="{width:'500px', height:'300px'}" :styles="{width:'500px', height:'300px'}"
> >
<section id="pricing-modal-login-register"> <section id="pricing-modal-login-register">
<h2>{{ $t("materio.Please login or create a new account before ordering") }}</h2> <h2>{{ $t("materio.Please login or create a new account to order your access") }}</h2>
<LoginRegister <LoginRegister
:callbackargs="showLoginModal" :callbackargs="showLoginModal"
@onLogedIn="onLogedIn" @onLogedIn="onLogedIn"
@ -150,7 +150,7 @@ export default {
// redirect to /cart // redirect to /cart
// window.location.href = "/cart" // window.location.href = "/cart"
// TODO: redirect to checkout instead of cart // TODO: redirect to checkout instead of cart
window.location.href = `/checkout/${data[0].order_id.target_id}/order_information` window.location.href = `/checkout/${data[0].order_id}/order_information`
}) })
.catch(( error ) => { .catch(( error ) => {
console.warn('Issue with product add to cart', error) console.warn('Issue with product add to cart', error)

View File

@ -4,14 +4,28 @@ import Vue from 'vue'
import { mapState, mapActions } from 'vuex' import { mapState, mapActions } from 'vuex'
import { MA } from 'vuejs/api/ma-axios' import { MA } from 'vuejs/api/ma-axios'
import passwordStrength from 'check-password-strength'
export default { export default {
name: "RegisterForm", name: "RegisterForm",
data: () => ({ data: () => ({
form: null, form: null,
mail: null, mail: null,
pass1: null, pass1: null,
pass2: null pass2: null,
ps: ""
}), }),
computed: {
psswd_class: function(){
return this.ps.toLowerCase()
},
can_register: function() {
if (this.ps === "Strong") {
return 'can-register'
}
return ''
}
},
methods: { methods: {
...mapActions({ ...mapActions({
userRegister: 'User/userRegister' userRegister: 'User/userRegister'
@ -31,6 +45,13 @@ export default {
console.warn('Issue with getRegisterForm', error) console.warn('Issue with getRegisterForm', error)
}) })
}, },
checkSubmitEnabled () {
if(this.ps === 'Strong'){
this.$refs.register.disabled = false
}else{
this.$refs.register.disabled = true
}
},
register () { register () {
console.log('register', this.mail, this.pass1, this.pass2); console.log('register', this.mail, this.pass1, this.pass2);
// TODO: check for identical password // TODO: check for identical password
@ -61,6 +82,7 @@ export default {
mounted(){ mounted(){
// console.log('LoginBlock mounted'); // console.log('LoginBlock mounted');
Drupal.attachBehaviors(this.$el); Drupal.attachBehaviors(this.$el);
this.checkSubmitEnabled()
}, },
render(h) { render(h) {
// console.log('LoginBlock render'); // console.log('LoginBlock render');
@ -71,6 +93,15 @@ export default {
// console.log('LoginBlock render template'); // console.log('LoginBlock render template');
return this.form.render.call(this) return this.form.render.call(this)
} }
},
watch: {
pass1: function(n, o){
if(n){
this.ps = passwordStrength(n).value
console.log('watch pass1 n', n, 'ps :', this.ps)
this.checkSubmitEnabled()
}
}
} }
} }
</script> </script>
@ -82,10 +113,36 @@ export default {
max-width:30%; max-width:30%;
margin:0; margin:0;
} }
.form-type-password input{
&.weak {
border-width: 2px;
border-color: red!important;
&:focus{
outline:none;
}
}
&.medium {
border-width: 2px;
border-color: orange!important;
&:focus{
outline:none;
}
}
&.strong {
border-width: 2px;
border-color: green!important;
&:focus{
outline:none;
}
}
}
input{ input{
box-sizing:content-box; box-sizing:content-box;
max-width:100%; max-width:100%;
} }
// input#edit-submit{
//
// }
label, label,
div.description{ div.description{
display:none; display:none;

View File

@ -2,7 +2,11 @@
<div id="user-tools"> <div id="user-tools">
<h4 <h4
class="mdi mdi-account" class="mdi mdi-account"
>{{ mail }}</h4> >
<a href="/user">
{{ mail }}
</a>
</h4>
<a href="/admin/content/materials" <a href="/admin/content/materials"
v-if="isAdmin" v-if="isAdmin"
class="mdi mdi-settings" class="mdi mdi-settings"