SlideShare a Scribd company logo
INTRODUCTION TO DRUPAL 
COMMERCE: 
- Drupal Commerce: Technical overview 
- Versatility in product functionality 
- How Rules rules Drupal Commerce 
Hiski Valli
Hiski Valli 
• Worked in Exove since 2012 
• 5 years Drupal experience 
(multiple DC projects, one 
UberCart project) 
• 3 years professional 
development before Drupal, 
using PHP frameworks & 
CMSes 
• Once made a CMS from 
scratch
Drupal 
Commerce: 
Technical 
overview
Overview: Drupal and entities 
• Drupal is built on entities (Nodes, Comments, 
Users, Taxonomy terms, Files, etc) 
• DC introduces new e-commerce related 
entities: 
– Product variation 
– Order 
– Line item 
– Customer profile 
– Payment transaction
Product architecture 
Node Display 
Product 
variation 
Attributes 
(Color, Size, etc) 
SKU1 
Color Size 
SKU2 
Color
Entity: Product variation 
• Variation entity 
– Individual “SKU”s (Stock Keeping Units) 
– Has price, variation title, custom fields 
– Can be attributed (usually by taxonomy terms) 
• The product Page is a Node 
– References product variations 
• Product reference = Product form 
– The product reference creates the product form 
using the variations and their attributes
Product 
reference field
Product reference field
Other entities 
• Order ( & line items) 
– Starts when user adds an order to the cart 
– Evolves on the checkout process 
– Contains line items 
• Customer profile 
– Shipping & billing info 
• Payment transaction 
– Payment data from the provider
Checkout process 
Cart 
Product 
pages + 
cart page 
Checkout 
(can have 
multiple 
steps) 
Review 
Confirm 
and move 
to payment 
Payment 
Integrated 
/ external 
Complete 
Thank you 
page
Versatility 
in product 
functionality
Product related modules 
• Drupal Commerce has a ton of contributed 
modules 
– www.drupalcommerce.org has 463 listed when 
writing 
– Example categories: Payment, Shipping & Fulfillment, 
Checkout, Price & Discount, Cart 
• A wide set of tools for creating not-so-typical 
commerce sites 
– Not just t-shirts 
• Focus on product related modules for this 
introduction
Drupal Café: Introduction to Drupal Commerce
Example contrib modules 
• Commerce stock 
– Stock management 
• Commerce discount 
– Give discounts 
– By total, by product, by shipping country, etc... 
• Commerce coupon 
– With discount integration 
• Commerce product radioactivity 
– Recommend popular products to users
Example contrib modules 
• Commerce product bundle 
– Products inside products! 
• Commerce product add-on 
– Product add-on products 
• Commerce GC 
– Gift card functionality 
• Commerce customizable products 
– Example: engraved ring 
• Commerce physical products 
– Manage shipping costs by weight etc…
Example contrib modules 
• Commerce license 
– Sell local / remote access, node access, site access 
– Synchronizable with remote services 
• Commerce file 
– License your files 
• Commerce license billing 
– Recurring billing for licenses 
• Commerce recurring framework 
– Creation of recurring orders with automated payment 
• Etc, etc…
How Rules 
rules Drupal 
Commerce
Rules 
Event 
• Something happens 
Condition 
• Check if conditions are fulfilled 
• Events can provide data for conditions 
Action 
• If conditions were fulfilled 
• Events and Conditions can provide data for actions
Rules in Drupal Commerce 
• Drupal Commerce checkout flow is highly built 
on the Rules module 
• Rules is for Reacting what Views is for Listing 
• DC provides a ton of events, conditions and 
actions for Rules to tap into 
• Most of DC contributed modules use rules to 
effect the checkout process. 
• But, most of the time no code is even needed
Some default rules for DC
This checks if user 
goes back to the cart
Example uses 
• Check stock levels 
• Free shipping for over 50€ 
• Check shipping address, free shipping if local 
• If product X in cart, do not let user add 
product Y 
• Only let user add product X, if product Y is in 
cart 
• Product purchase per user role
Let’s discuss!

More Related Content

What's hot (10)

KEY
Drupal Commerce - the product vs display conundrum and how to explain it to a...
Richard Jones
 
PPTX
Miva + WordPress
Miva
 
PPSX
Virtue mart ppt
Anurag Gupta
 
PPTX
Reducing Dependency On Third Party Modules by Joseph Burton
Miva
 
PPT
Stevan Majstorović, DataMeal - presentation from the '7 minutes contest' at T...
Ewa Stepien
 
PDF
Drupal Commerce - DrupalCamp Helsinki 2014
ToffeBjorkskog
 
PPTX
BookStore
RakshitAgarwal16
 
PDF
DrupalDay - Localizing Drupal Commerce
Studio Aqua
 
PDF
Introduction to WooCommerce
Dat Hoang
 
POT
Commerce beyond the cart final 1
Steve Kessler
 
Drupal Commerce - the product vs display conundrum and how to explain it to a...
Richard Jones
 
Miva + WordPress
Miva
 
Virtue mart ppt
Anurag Gupta
 
Reducing Dependency On Third Party Modules by Joseph Burton
Miva
 
Stevan Majstorović, DataMeal - presentation from the '7 minutes contest' at T...
Ewa Stepien
 
Drupal Commerce - DrupalCamp Helsinki 2014
ToffeBjorkskog
 
BookStore
RakshitAgarwal16
 
DrupalDay - Localizing Drupal Commerce
Studio Aqua
 
Introduction to WooCommerce
Dat Hoang
 
Commerce beyond the cart final 1
Steve Kessler
 

Similar to Drupal Café: Introduction to Drupal Commerce (20)

KEY
Drupal Commerce Drupalhagen 2012
Jakob Torp
 
PDF
An Introduction to Drupal Commerce & Real World Examples
Phase2
 
PPTX
Prepare for Peak Holiday Season with MongoDB
MongoDB
 
PDF
E Commerce: Its role and development
Anubha Rastogi
 
PPTX
Session 3a The SF SaaS Framework
Code Mastery
 
PPTX
5 Secret Weapons Of A Great Salesforce Architect
Sebastian Wagner
 
PPTX
Final Project proposal(E-commarce Based web Platform )
Reduan Rafi
 
PPTX
Drop Shipping Made Easy
accellosinc
 
PPTX
The 5.0 Demo: Building a Compelling Story
Acumatica Cloud ERP
 
PDF
C Soft E Commerce&Web 201105
buibadat
 
PPT
Drupalcamp South Florida 2012 - Introduction to Drupal Commerce
Hector Iribarne
 
PDF
Esp - Ecommerce capabilities magento
ESP Instant Solutions
 
PPTX
Schneider 6. Selling to Businesses Online (1).pptx
Bicycle Thief
 
PDF
Ecommerce Solutions (China & West)
Reach China Holdings Limited
 
PDF
Choosing the Right E-commerce Solution
Dr Matt McDougall
 
PPTX
Magento eConnect for Infor M3
Caroline Starwing Jiborn
 
PDF
ITB 2023 Headless eCommerce with CFML - Jon Clausen.pdf
Ortus Solutions, Corp
 
PPT
Chap009
Arshian Siddiqui
 
PDF
Drupal Commerce contributed modules overview
Pedro Cambra
 
PPTX
The First Kilometre: Building a Back-End That Sets You Up For Success
Demac Media
 
Drupal Commerce Drupalhagen 2012
Jakob Torp
 
An Introduction to Drupal Commerce & Real World Examples
Phase2
 
Prepare for Peak Holiday Season with MongoDB
MongoDB
 
E Commerce: Its role and development
Anubha Rastogi
 
Session 3a The SF SaaS Framework
Code Mastery
 
5 Secret Weapons Of A Great Salesforce Architect
Sebastian Wagner
 
Final Project proposal(E-commarce Based web Platform )
Reduan Rafi
 
Drop Shipping Made Easy
accellosinc
 
The 5.0 Demo: Building a Compelling Story
Acumatica Cloud ERP
 
C Soft E Commerce&Web 201105
buibadat
 
Drupalcamp South Florida 2012 - Introduction to Drupal Commerce
Hector Iribarne
 
Esp - Ecommerce capabilities magento
ESP Instant Solutions
 
Schneider 6. Selling to Businesses Online (1).pptx
Bicycle Thief
 
Ecommerce Solutions (China & West)
Reach China Holdings Limited
 
Choosing the Right E-commerce Solution
Dr Matt McDougall
 
Magento eConnect for Infor M3
Caroline Starwing Jiborn
 
ITB 2023 Headless eCommerce with CFML - Jon Clausen.pdf
Ortus Solutions, Corp
 
Drupal Commerce contributed modules overview
Pedro Cambra
 
The First Kilometre: Building a Back-End That Sets You Up For Success
Demac Media
 
Ad

More from Exove (20)

PDF
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
PDF
Data security in the age of GDPR – most common data security problems
Exove
 
PDF
Provisioning infrastructure to AWS using Terraform – Exove
Exove
 
PDF
Advanced custom fields in Wordpress
Exove
 
PDF
Introduction to Robot Framework – Exove
Exove
 
PDF
Jenkins and visual regression – Exove
Exove
 
PDF
Server-side React with Headless CMS – Exove
Exove
 
PDF
WebSockets in Bravo Dashboard – Exove
Exove
 
PDF
Diversity in recruitment
Exove
 
PDF
Saavutettavuus liiketoimintana
Exove
 
PDF
Saavutettavuus osana Eläkeliiton verkkosivu-uudistusta
Exove
 
PDF
Mitä saavutettavuusdirektiivi pitää sisällään
Exove
 
PDF
Creating Landing Pages for Drupal 8
Exove
 
PDF
GDPR for developers
Exove
 
PDF
Managing Complexity and Privacy Debt with Drupal
Exove
 
PDF
Life with digital services after GDPR
Exove
 
PDF
GDPR - no beginning no end
Exove
 
PDF
Developing truly personalised experiences
Exove
 
PDF
Customer Experience and Personalisation
Exove
 
PDF
Adventures In Programmatic Branding – How To Design With Algorithms And How T...
Exove
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Data security in the age of GDPR – most common data security problems
Exove
 
Provisioning infrastructure to AWS using Terraform – Exove
Exove
 
Advanced custom fields in Wordpress
Exove
 
Introduction to Robot Framework – Exove
Exove
 
Jenkins and visual regression – Exove
Exove
 
Server-side React with Headless CMS – Exove
Exove
 
WebSockets in Bravo Dashboard – Exove
Exove
 
Diversity in recruitment
Exove
 
Saavutettavuus liiketoimintana
Exove
 
Saavutettavuus osana Eläkeliiton verkkosivu-uudistusta
Exove
 
Mitä saavutettavuusdirektiivi pitää sisällään
Exove
 
Creating Landing Pages for Drupal 8
Exove
 
GDPR for developers
Exove
 
Managing Complexity and Privacy Debt with Drupal
Exove
 
Life with digital services after GDPR
Exove
 
GDPR - no beginning no end
Exove
 
Developing truly personalised experiences
Exove
 
Customer Experience and Personalisation
Exove
 
Adventures In Programmatic Branding – How To Design With Algorithms And How T...
Exove
 
Ad

Recently uploaded (20)

PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Python basic programing language for automation
DanialHabibi2
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 

Drupal Café: Introduction to Drupal Commerce

  • 1. INTRODUCTION TO DRUPAL COMMERCE: - Drupal Commerce: Technical overview - Versatility in product functionality - How Rules rules Drupal Commerce Hiski Valli
  • 2. Hiski Valli • Worked in Exove since 2012 • 5 years Drupal experience (multiple DC projects, one UberCart project) • 3 years professional development before Drupal, using PHP frameworks & CMSes • Once made a CMS from scratch
  • 4. Overview: Drupal and entities • Drupal is built on entities (Nodes, Comments, Users, Taxonomy terms, Files, etc) • DC introduces new e-commerce related entities: – Product variation – Order – Line item – Customer profile – Payment transaction
  • 5. Product architecture Node Display Product variation Attributes (Color, Size, etc) SKU1 Color Size SKU2 Color
  • 6. Entity: Product variation • Variation entity – Individual “SKU”s (Stock Keeping Units) – Has price, variation title, custom fields – Can be attributed (usually by taxonomy terms) • The product Page is a Node – References product variations • Product reference = Product form – The product reference creates the product form using the variations and their attributes
  • 9. Other entities • Order ( & line items) – Starts when user adds an order to the cart – Evolves on the checkout process – Contains line items • Customer profile – Shipping & billing info • Payment transaction – Payment data from the provider
  • 10. Checkout process Cart Product pages + cart page Checkout (can have multiple steps) Review Confirm and move to payment Payment Integrated / external Complete Thank you page
  • 11. Versatility in product functionality
  • 12. Product related modules • Drupal Commerce has a ton of contributed modules – www.drupalcommerce.org has 463 listed when writing – Example categories: Payment, Shipping & Fulfillment, Checkout, Price & Discount, Cart • A wide set of tools for creating not-so-typical commerce sites – Not just t-shirts • Focus on product related modules for this introduction
  • 14. Example contrib modules • Commerce stock – Stock management • Commerce discount – Give discounts – By total, by product, by shipping country, etc... • Commerce coupon – With discount integration • Commerce product radioactivity – Recommend popular products to users
  • 15. Example contrib modules • Commerce product bundle – Products inside products! • Commerce product add-on – Product add-on products • Commerce GC – Gift card functionality • Commerce customizable products – Example: engraved ring • Commerce physical products – Manage shipping costs by weight etc…
  • 16. Example contrib modules • Commerce license – Sell local / remote access, node access, site access – Synchronizable with remote services • Commerce file – License your files • Commerce license billing – Recurring billing for licenses • Commerce recurring framework – Creation of recurring orders with automated payment • Etc, etc…
  • 17. How Rules rules Drupal Commerce
  • 18. Rules Event • Something happens Condition • Check if conditions are fulfilled • Events can provide data for conditions Action • If conditions were fulfilled • Events and Conditions can provide data for actions
  • 19. Rules in Drupal Commerce • Drupal Commerce checkout flow is highly built on the Rules module • Rules is for Reacting what Views is for Listing • DC provides a ton of events, conditions and actions for Rules to tap into • Most of DC contributed modules use rules to effect the checkout process. • But, most of the time no code is even needed
  • 21. This checks if user goes back to the cart
  • 22. Example uses • Check stock levels • Free shipping for over 50€ • Check shipping address, free shipping if local • If product X in cart, do not let user add product Y • Only let user add product X, if product Y is in cart • Product purchase per user role