Drupal Commerce - DrupalCamp Helsinki 2014

Preview:

DESCRIPTION

A presentation about what Drupal commerce is, how it works, it's strengths and extendability. Held at DrupalCamp Helsinki 2014 by Christoffer Björkskog from Genero.

Citation preview

2014-05-26 WWW.GENERO.FI

DRUPAL COMMERCE DrupalCamp Helsinki 2014Christoffer Björkskog, Genero

2014-05-26 WWW.GENERO.FI

2014-05-26 WWW.GENERO.FI

genero.fi/jobs

2014-05-26 WWW.GENERO.FI

Drupal Commerce

What is it?

How does it Work?

The strengths of Drupal Commerce

How can you extend Drupal Commerce

2014-05-26 WWW.GENERO.FI

What it is?

Drupal Commerce is an extendable and flexible e-commerce platform made specifically for Drupal.

https://drupal.org/project/commerce

2014-05-26 WWW.GENERO.FI

What it is?

Drupal Commerce uses all the Drupal goodies such as Entites, Rules, Views etc …

… Which makes it very powerful …

2014-05-26 WWW.GENERO.FI

What it is?

You can make Drupal Commerce suit your custom needs. You can check out how people have used Commerce.

http://commerceguys.com/showcase

2014-05-26 WWW.GENERO.FI

Commerce Kickstart

With Drupal Commerce Kickstart you can have a basic webshop up and running in a short time.

https://drupal.org/project/commerce_kickstarthttp://demo.commerceguys.com/ck/http://commerceguys.com/kickstart

2014-05-26 WWW.GENERO.FI

About Kickstart

Commerce Kickstart also provides a great opportunity to learn Search API & Facets and to see how to build a commerce site.

2014-05-26 WWW.GENERO.FI

How does Drupal Commerce work?

The building blocks of Drupal commerce are different kinds of Entities.

So they easily plug in to the rest of Drupal.

Enabling different fields, view modes, etc …

2014-05-26 WWW.GENERO.FI

How does it work?

Basic building blocks are:

2014-05-26 WWW.GENERO.FI

How does it work?

Basic building blocks are:

Product Display

Basically a node!

2014-05-26 WWW.GENERO.FI

How does it work?

Basic building blocks are:

Product Display

Product (variation)

One or several product references are referenced from a product display

2014-05-26 WWW.GENERO.FI

How does it work?

Basic building blocks are:

Product Display

Product (variation)

Line-item

2014-05-26 WWW.GENERO.FISource: Building E-commerce Sites with Drupal Commerce Cookbook

2014-05-26 WWW.GENERO.FI

2014-05-26 WWW.GENERO.FISource: Building E-commerce Sites with Drupal Commerce Cookbook

2014-05-26 WWW.GENERO.FISource: Building E-commerce Sites with Drupal Commerce Cookbook

2014-05-26 WWW.GENERO.FISource: Building E-commerce Sites with Drupal Commerce Cookbook

2014-05-26 WWW.GENERO.FISource: Building E-commerce Sites with Drupal Commerce Cookbook

2014-05-26 WWW.GENERO.FI

How does it work?

Different rules events are triggered along the way in a checkout process.

So you can activate different rules, create your own to react to the situations…

2014-05-26 WWW.GENERO.FISource: Building E-commerce Sites with Drupal Commerce Cookbook

2014-05-26 WWW.GENERO.FISource: Building E-commerce Sites with Drupal Commerce Cookbook

2014-05-26 WWW.GENERO.FISource: Building E-commerce Sites with Drupal Commerce Cookbook

2014-05-26 WWW.GENERO.FI

The strengths of Drupal Commerce

• Rules

• Views

• Open source

• No licence fees

• Well made, ”the Drupal way”!

2014-05-26 WWW.GENERO.FI

The strengths of Drupal Commerce• It talks Drupal

• It has a lot of users

• Lots of resources, tutorials, discussions

• Lots of contributed modules

• You can customize it to fit your needs

• Nice API documentation

2014-05-26 WWW.GENERO.FI

Some useful modules

• commerce_feeds

• Commerce Bulk Product Creation

• Also… Look thought the modules that comes with Commerce Kickstart

• commerce_cart_expiration

• commerce_autosku

2014-05-26 WWW.GENERO.FI

CUSTOMIZATION

2014-05-26 WWW.GENERO.FI

CUSTOMIZE

add to cart

A thing3€

add to cart

A thing3€

add to cart

A thing3€

add to cart

A thing3€

add to cart

A thing3€

add to cart

A thing3€

add to cart

A thing3€

Change/create views, view modes, field formatters

see details

Otherstuff3€

see details

Otherstuff3€

2014-05-26 WWW.GENERO.FI

CUSTOMIZE

A super cool product

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Product display

3€

add to cartModel S

2014-05-26 WWW.GENERO.FI

CUSTOMIZE

A super cool productLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Product display

add to cart

Model S3€

add to cart

Model M4€

add to cart

Model L5€

2014-05-26 WWW.GENERO.FI

EXAMPLE OF CUSTOMIZATIONDROP SHIPPING

2014-05-26 WWW.GENERO.FI

Some customizations

• Created Entity called Dropship Supplier

• Reference products with a Dropship supplier

• Add supplier SKU to product

• Modify Line items to have a status (processing, shipped)

• Added extra status to order called Can be Captured

2014-05-26 WWW.GENERO.FI

COMMERCE DROPSHIP SUPPLIER

order

Rules action, ”Send order line items to the suppliers"

Line itemsto supplier 1

Line itemsto supplier 2

Line itemsto supplier 3

split

module1_send_line_items

module2_send_line_items

module3_send_line_items

2014-05-26 WWW.GENERO.FI

COMMERCE DROPSHIP SUPPLIERRules action, ”Check for order status updates from suppliers"

module1_check_for_shipped_line_items

module2_check_for_shipped_line_items

hmodule3_check_for_shipped_line_items

array withshipped orders

array withshipped orders

array withshipped orders

invoke_all

update order status

&Trigger rules event

check_for_shipped_line_items

2014-05-26 WWW.GENERO.FI

EXTRA - RESOURCES

https://drupal.org/project/commerce

http://www.drupalcommerce.org/faq/training

2014-05-26 WWW.GENERO.FI

THANKS.