项目作者: mglaman

项目描述 :
Examples module for Drupal Commerce 2.x
高级语言: PHP
项目地址: git://github.com/mglaman/commerce_examples.git
创建时间: 2016-02-25T19:57:52Z
项目社区:https://github.com/mglaman/commerce_examples

开源协议:

下载


Commerce Examples [![Build Status]

An examples module for Commerce 2.x. Provides some usually defaults and a sample
migration.

For demo, see https://github.com/bojanz/commerce_demo

Installation

Add this private repository to the composer configuration repositories list:

  1. composer config repositories.mglaman vcs https://github.com/mglaman/commerce_examples

Then, install this module:

  1. composer require drupal/commerce_examples:dev-master

Features

  • Sample product type
  • Color and size attributes
  • Sample product display and add to cart form configurations
  • Migration example from local CSV source
  • Price resolvers
  • Order type resolvers

Price resolver

Visit any product and add ?discount=TRUE to trigger a 15% discount.

Order type resolver

Based on the product variation type, the product will go into the default order type, or be treated as digital.