跳转到主要内容
首页

用户帐户菜单

  • 登录

主导航

  • 首页
  • 小公司运营
  • 网站建设
  • 创业杂谈
  • 兼职赚钱
  • 小微企业信息化
  • 手册教程
    • 《大伟哥的Drupal 8建站指南》
    • 《通过JohnChow.Com在网上赚钱》
  • 关于

面包屑

  • 首页
  • 给Drupal 8/9安装Commerce模块

给Drupal 8/9安装Commerce模块

By 大伟哥 | 2020-08-26,周三, 09:37

Drupal Commerce是个大模块,本身就包含很多子模块,而且要安装和启用它还需要好几个依赖模块。因此,尽管你可以使用Ludwig模块手动解决这些依赖问题,大伟哥还是建议你使用Drupal官方推荐的Composer工具来解决依赖问题。

使用Composer安装Drupal Commerce非常简单,如果你在全新安装的Drupal 8或者Drupal 9上安装Commerce,composer会一次帮你下载所需要的10个模块:

composer require drupal/commerce
Using version ^2.20 for drupal/commerce
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 10 installs, 0 updates, 0 removals
  - Installing drupal/token (1.7.0): Downloading (100%)         
  - Installing drupal/state_machine (1.0.0): Downloading (100%)         
  - Installing drupal/entity (1.1.0): Downloading (100%)         
  - Installing drupal/profile (1.1.0): Downloading (100%)         
  - Installing drupal/inline_entity_form (1.0.0-rc7): Downloading (100%)         
  - Installing drupal/entity_reference_revisions (1.8.0): Downloading (100%)         
  - Installing commerceguys/addressing (v1.0.8): Downloading (100%)         
  - Installing drupal/address (1.8.0): Downloading (100%)         
  - Installing commerceguys/intl (v1.0.6): Downloading (100%)         
  - Installing drupal/commerce (2.20.0): Downloading (100%)         
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Writing lock file
Generating autoload files
29 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

其中,Drupal Commerce依赖的模块和库共有9个,分别是:

  • drupal/token: 提供Drupal核心没有提供的一部分可以替换内容的占位符和UI界面。
  • drupal/state_machine: 提供代码驱动的工作流功能
  • drupal/entity: 提供扩展的实体API
  • drupal/profile: 提供可配置的用户信息
  • drupal/inline_entity_form: 提供对引用实体的内联管理微件,用来创建、修改以及删除记录
  • drupal/entity_reference_revisions:对引用实体的字段类型提供修订记录
  • drupal/address: 提供有关地址处理的功能支持
  • commerceguys/addressing: Drupal Address 模块所依赖的处理地址的库
  • commerceguys/intl: 为 Drupal Commerce 提供了有关货币和语言的支持

Drupal Commerce本身的子模块则有13个,分别是:

  • Commerce
  • //待完善

接下来,我们只需要在后台启用这些模块就可以了。

网站建设
  • 添加新评论
  • 617 阅读
Drupal
电子商务

Book traversal links for 给Drupal 8/9安装Commerce模块

  • ‹ 为什么使用Drupal Commerce代替Magento来实现电子商务方案
  • 向上
  • 启用和配置Drupal Commerce各模块 ›

评论

成语大全

4 years 8 months 之前

永久连接

composer太慢,这玩意不适合国内用…

  • 回复

大伟哥

4 years 8 months 之前

永久连接

成语大全 回复 composer太慢,这玩意不适合国内用…

司南前几天开始提供国内composer全量镜像了…

司南前几天开始提供国内composer全量镜像了。至于Drupal适不适合做电商,不同的人会有不同的看法。

  • 回复

添加新评论

此字段内容将保密,不会被其他人看见。
关于文本格式
  • 不允许使用HTML标签。
CAPTCHA
4 + 3 =
计算出这道简单的算术题并键入答案。例如、1+3,就输入 4。
发布评论前,请通过下面的验证,以免被当作垃圾评论机器人屏蔽。

搜索

手册导航

  • 网站本地测试开发要尽量使用linux环境
  • Ubuntu Server 16.04安装LAMP网络服务器套件
  • 在测试机上配置Apache服务器下的第一个虚拟主机
  • 在测试服务器上安装第一个Drupal网站
  • Drupal 8/9安装及配置中文语言包
  • Ubuntu Server下启用Apache Rewrite模块
  • drupal 8小版本间升级详细说明
  • Drupal 8多站点实现:使用一套Drupal代码运行多个不同网站
  • Drupal 8网站迁移的步骤和注意事项
  • Drupal 8设置信任主机
  • 安装Drupal 8后除了首页外全是not found
  • Drupal 8解决5次输入密码暂时锁定帐号登录
  • 使用Drupal的SMTP模块发送邮件
  • Drupal怎么进行分类和创建栏目?
  • 使用composer安装Drupal及管理依赖(一)
  • 新安装的Drupal 8默认能实现什么功能?
  • 给Drupal8/9网站添加基本页面
  • 让Drupal 8/9显示内容最近编辑时间
  • 给Drupal安装后台搜索服务xunsearch
  • Drupal 8/9 让某个字段仅对注册登录用户显示
  • Drupal Commerce 电子商务方案指南
    • 为什么使用Drupal Commerce代替Magento来实现电子商务方案
    • 给Drupal 8/9安装Commerce模块
    • 启用和配置Drupal Commerce各模块
    • 创建 Drupal Commerce 店铺的详细说明
    • Drupal Commerce指南:产品管理思路整理
    • Drupal Commerce 产品管理的相关术语概念
    • Drupal Commerce 添加产品类型 Product Type 实例

沪ICP备17000093号-1

公安备案沪公网安备 31011402008254号

© 2016-2022 大伟哥博客版权所有