Skip to content

bardachev/commerce_demo

 
 

Repository files navigation

Commerce Demo Build Status

A demo module for Commerce 2.x. Provides some usually defaults and a sample migration.

Installation

Add this private repository to the composer configuration repositories list:

composer config repositories.mglaman vcs https://github.com/mglaman/commerce_demo

Then, install this module:

composer require drupal/commerce_demo:dev-master

You will need run the migrations using Drush

cd /path/to/drupal
drush cc drush
drush mi --all

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.

About

Demo module for Drupal Commerce 2.x

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 97.4%
  • HTML 2.6%