Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mglaman/commerce_examples
Examples module for Drupal Commerce 2.x
https://github.com/mglaman/commerce_examples
demo drupal drupal-commerce
Last synced: about 1 month ago
JSON representation
Examples module for Drupal Commerce 2.x
- Host: GitHub
- URL: https://github.com/mglaman/commerce_examples
- Owner: mglaman
- Created: 2016-02-25T19:57:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-15T19:24:40.000Z (over 6 years ago)
- Last Synced: 2024-09-28T10:24:08.725Z (about 2 months ago)
- Topics: demo, drupal, drupal-commerce
- Language: PHP
- Homepage:
- Size: 278 KB
- Stars: 55
- Watchers: 20
- Forks: 15
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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:
```
composer config repositories.mglaman vcs https://github.com/mglaman/commerce_examples
```Then, install this module:
```
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.