简体   繁体   English

无法安装Commerce Checkout模块

[英]Cant Install Commerce Checkout Module

I'm in the process of upgrading my website from Drupal 7 to 8 and one of my tasks is to ensure that all modules are copied over and installed. 我正在将我的网站从Drupal 7升级到8,我的任务之一是确保所有模块都已复制并安装。

I've been able to install every 'Commerce' module apart from the checkout. 除了结帐,我已经能够安装每个“商务”模块。

Unable to install Commerce Checkout due to unmet dependencies: core.entity_view_display.commerce_product_variation.default.summary (commerce_product.commerce_product_variation_type.default) 由于未满足依赖关系而无法安装Commerce Checkout:core.entity_view_display.display_commerce_product_variation.default.summary(commerce_product.commerce_product_variation_type.default)

This question was asked and answered here: Can't install drupal 8 commerce checkout module 在这里提出并回答了这个问题: 无法安装drupal 8 Commerce Checkout模块

However, it does not help me because I've already used Composer to install the commerce module but I still cant enable it. 但是,这对我没有帮助,因为我已经使用Composer安装了商务模块,但仍然无法启用它。


$ composer require drupal/commerce
Using version ^2.5 for drupal/commerce
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
> Drupal\Core\Composer\Composer::preAutoloadDump
> Drupal\Core\Composer\Composer::ensureHtaccess

$ composer require drupal/commerce_checkout
Using version ^2.5 for drupal/commerce_checkout
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
> Drupal\Core\Composer\Composer::preAutoloadDump
> Drupal\Core\Composer\Composer::ensureHtaccess

$ composer require drupal/commerce_product
Using version ^2.5 for drupal/commerce_product
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
> Drupal\Core\Composer\Composer::preAutoloadDump
> Drupal\Core\Composer\Composer::ensureHtaccess

I appreciate any solutions that you may have and look forward to discussing this issue with you further. 感谢您提供的任何解决方案,并希望与您进一步讨论此问题。

Thanks! 谢谢!

I guess you already fixed the issue yourself simply by "installing" drupal/commerce first. 我想您已经通过简单地“首先”安装drupal/commerce自己解决了该问题。

The three snippets you provided at the end of your question look fine and actually just says they are already "installed". 您在问题末尾提供的三个代码片段看起来不错,实际上只是说它们已经“安装”了。 Composer downloaded everything for you and now you just have to enable them via drush or from the UI. Composer为您下载了所有内容,现在您只需通过drush或从UI 启用它们drush


Now I got it. 现在我懂了。 This error message occurs when installing Commerce Checkout via drush/drupal console (or maybe even via the UI). 通过drush / drupal控制台(甚至可能通过UI)安装Commerce Checkout时,会出现此错误消息。 And it says it requires a display or view mode from the Commerce Product entity type. 它说,它需要Commerce Product实体类型的显示或查看模式。 Then I guess the second answer in the linked question is right: install Commerce Product first as that may provide the missing display upon installation. 然后,我想链接的问题中的第二个答案是正确的:首先安装Commerce Product,因为这可能会在安装时提供缺少的显示。

Even if that doesn't work you may circumvent the issue by creating the display or view mode manually yourself. 即使不起作用,您也可以通过手动创建显示或查看模式来解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM