37
2014-05-26 WWW.GENERO.FI DRUPAL COMMERCE DrupalCamp Helsinki 2014 Christoffer Björkskog, Genero

Drupal Commerce - DrupalCamp Helsinki 2014

Embed Size (px)

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

Page 1: Drupal Commerce - DrupalCamp Helsinki 2014

2014-05-26 WWW.GENERO.FI

DRUPAL COMMERCE DrupalCamp Helsinki 2014Christoffer Björkskog, Genero

Page 2: Drupal Commerce - DrupalCamp Helsinki 2014

2014-05-26 WWW.GENERO.FI

Page 3: Drupal Commerce - DrupalCamp Helsinki 2014

2014-05-26 WWW.GENERO.FI

genero.fi/jobs

Page 4: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 5: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 6: Drupal Commerce - DrupalCamp Helsinki 2014

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 …

Page 7: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 8: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 9: Drupal Commerce - DrupalCamp Helsinki 2014

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.

Page 10: Drupal Commerce - DrupalCamp Helsinki 2014

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 …

Page 11: Drupal Commerce - DrupalCamp Helsinki 2014

2014-05-26 WWW.GENERO.FI

How does it work?

Basic building blocks are:

Page 12: Drupal Commerce - DrupalCamp Helsinki 2014

2014-05-26 WWW.GENERO.FI

How does it work?

Basic building blocks are:

Product Display

Basically a node!

Page 13: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 14: Drupal Commerce - DrupalCamp Helsinki 2014

2014-05-26 WWW.GENERO.FI

How does it work?

Basic building blocks are:

Product Display

Product (variation)

Line-item

Page 15: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 16: Drupal Commerce - DrupalCamp Helsinki 2014

2014-05-26 WWW.GENERO.FI

Page 17: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 18: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 19: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 20: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 21: Drupal Commerce - DrupalCamp Helsinki 2014

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…

Page 22: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 23: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 24: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 25: Drupal Commerce - DrupalCamp Helsinki 2014

2014-05-26 WWW.GENERO.FI

The strengths of Drupal Commerce

• Rules

• Views

• Open source

• No licence fees

• Well made, ”the Drupal way”!

Page 26: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 27: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 28: Drupal Commerce - DrupalCamp Helsinki 2014

2014-05-26 WWW.GENERO.FI

CUSTOMIZATION

Page 29: Drupal Commerce - DrupalCamp Helsinki 2014

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€

Page 30: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 31: Drupal Commerce - DrupalCamp Helsinki 2014

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€

Page 32: Drupal Commerce - DrupalCamp Helsinki 2014

2014-05-26 WWW.GENERO.FI

EXAMPLE OF CUSTOMIZATIONDROP SHIPPING

Page 33: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 34: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 35: Drupal Commerce - DrupalCamp Helsinki 2014

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

Page 36: Drupal Commerce - DrupalCamp Helsinki 2014

2014-05-26 WWW.GENERO.FI

EXTRA - RESOURCES

https://drupal.org/project/commerce

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

Page 37: Drupal Commerce - DrupalCamp Helsinki 2014

2014-05-26 WWW.GENERO.FI

THANKS.