SlideShare a Scribd company logo
Drupal 8 And Commerce 2.x
Kunal Kursija @DrupalCampMumbai2017
About Me
I am Kunal Kursija.
I am a Drupal Developer based in Mumbai(India).
I have 5 years experience working with:
• Drupal Site Building
• Drupal Back End Development
• Drupal Front End Development
What is Commerce 2.x
Dive into Commerce 2.x
Demo
Question & Answers
Today, We will be cover following…
What is commerce 2.x
Drupal 7 Drupal 8
Commerce 1.x Commerce 2.x
• Commerce 2.x is a set of Drupal 8 modules, which in turn depend on other best-of-breed modules & libraries.
• Developed & Maintained by CommerceGuys.
Dive Into Commerce 2.x
Dependencies Installation 2.X Entities More features
Dependencies
Drupal Modules PHP Libraries
• Address: Provides functionality for storing, validating
and displaying international postal addresses.
• Entity: Extends Drupal 8’s entity API with additional
features.
• State Machine: Provides code-driven workflow
functionality.
• Inline Entity Form:Provides a widget for inline
management of referenced entities.
• Profile: Provides configurable user profiles, used for
customer profiles.
• commerceguys/tax: A tax library with a flexible
data model, predefined tax rates, powerful resolving
logic.
• commerceguys/addressing: An addressing library,
powered by Google’s dataset. Stores and manipulates
postal addresses.
• commerceguys/intl: An internationalisation library
powered by CLDR data. Handles currencies, currency
formatting, and more.
• commerceguys/zone: A zone library. Zones are
territorial groupings mostly used for shipping or tax
purposes.
Drupal 8.2.0 or newer, Composer & Drupal Console
1
2 3
Installation
Step 1: Ensure the Drupal Packagist repository
Step 2: Download Commerce
Step 3: Enable Commerce
composer config repositories.drupal composer https://packages.drupal.org/8
composer require "drupal/commerce 2.x-dev"
drupal module:install commerce_product commerce_checkout commerce_cart commerce_tax
Currencies Store Management
Payments Checkout Flows
Product ManagementPromotions
Taxes(temporarily removed)
2.X Entities
Order Management
Currencies
1 2
3
Store Management
Store Types
Apparels
ElectronicsBooks
Home & Kitchen
Stores
Apparels India
Electronics USABooks India
Apparels USA
• Commerce 2.x Supports multiple stores out of the box.
• You will have per store settings like email, default currency, Supported billing countries e.t.c.
• Orders will belong to one store only.
• Products can belong to one or more store.
Taxes
• Removed since beta 1 release of commerce 2.x.
• Under active development.
Product Management
The main terminologies in commerce 2.x product management are:
Product
Attributes
Product
Variation
Types
Product Types Products
Product
Variants
Lets go through each one of them…
Product
Attributes
1
3
2
Product
Variation
Types
1
3
2
Product
Types
1
2
Products
1
2
• Products now have their own display pages.
• Products can belong to multiple stores.
Product
Variants
Order Management
The main terminologies in commerce 2.x order management are:
Order Types
Order Item
Types
Order
Processing
Lets go through each one of them…
Orders
Order
Types
• Workflows: Define state & transition of orders.
• Ex 1: Shippable products can follow fulfilment workflow.
• Ex 2: Digital products can follow more simplistic workflow.
• + More Options…
Order
Item Types
• Order Item Types = Line Item Types(In Commerce 1.x).
• They have Unit Price, Quantity & Total Price.
• They point to:
1. Product Variation Type(Purchasable Entity)
2. Order Type.
Order
Processing
Order processing is part of the order refresh process. This is run when on draft orders to ensure that it has up to date
adjustments and that its order items are up to date.
Orders
• Orders contain list of order items(line items in commerce 1.x).
• Orders follow workflows(Defined in order types).
• Placed Timestamps in orders.
• Order States:
1.Drafts
2.Completed
3.Cancelled
Checkout Flows
Checkout Flows are series of steps that your end user will follow while placing the order on your site.
Payments
• Allows you to add payment gateways via plugins.
• Built in tokenisation(card on file).
Promotions
• In Core Now!
• Store Level Percentage Discounts.
1.Order Level
2.Order Item Level
• Discount Conditions.
• Usage Limit
• Start Date/End Date support.
In Development, Only creation part is live.
More Features
• Multiple Carts allowing you to checkout each cart separately.
• A Cool Shopping cart block with icon.
• Allows Guest Checkouts & Registrations.
• Configurable Add to cart forms.
Lets Roll…
Demo
Questions?
Thank You !

More Related Content

Similar to DrupalCamp Mumbai 2017: Drupal 8 and Commerce 2.x

Drupal 8 & Commerce 2.x insights
Drupal 8 & Commerce 2.x insightsDrupal 8 & Commerce 2.x insights
Drupal 8 & Commerce 2.x insights
Nayan Velde
 
Drupal 414: Meet Commerce 2.0
Drupal 414: Meet Commerce 2.0Drupal 414: Meet Commerce 2.0
Drupal 414: Meet Commerce 2.0
Matt Glaman
 
Drupal Commerce contributed modules overview
Drupal Commerce contributed modules overviewDrupal Commerce contributed modules overview
Drupal Commerce contributed modules overview
Pedro Cambra
 
Drupalcamp South Florida 2012 - Introduction to Drupal Commerce
Drupalcamp South Florida 2012 - Introduction to Drupal CommerceDrupalcamp South Florida 2012 - Introduction to Drupal Commerce
Drupalcamp South Florida 2012 - Introduction to Drupal Commerce
Hector Iribarne
 
Drupal Café: Introduction to Drupal Commerce
Drupal Café: Introduction to Drupal CommerceDrupal Café: Introduction to Drupal Commerce
Drupal Café: Introduction to Drupal Commerce
Exove
 
Ecommerce Solutions (China & West)
Ecommerce Solutions (China & West)Ecommerce Solutions (China & West)
Ecommerce Solutions (China & West)
Reach China Holdings Limited
 
C++ super market
C++ super marketC++ super market
C++ super market
Nikitha Lokaraju
 
Choosing the Right E-commerce Solution
Choosing the Right E-commerce SolutionChoosing the Right E-commerce Solution
Choosing the Right E-commerce Solution
Dr Matt McDougall
 
An Introduction to Drupal Commerce & Real World Examples
An Introduction to Drupal Commerce & Real World ExamplesAn Introduction to Drupal Commerce & Real World Examples
An Introduction to Drupal Commerce & Real World Examples
Phase2
 
Drupal Commerce Drupalhagen 2012
Drupal Commerce Drupalhagen 2012Drupal Commerce Drupalhagen 2012
Drupal Commerce Drupalhagen 2012
Jakob Torp
 
[Srijan Wednesday Webinars] Meet Commerce 2.X
[Srijan Wednesday Webinars]  Meet Commerce 2.X[Srijan Wednesday Webinars]  Meet Commerce 2.X
[Srijan Wednesday Webinars] Meet Commerce 2.X
Srijan Technologies
 
Gunavathi_Resume
Gunavathi_ResumeGunavathi_Resume
Gunavathi_Resume
guna vathi
 
Virtue mart ppt
Virtue mart pptVirtue mart ppt
Virtue mart ppt
Anurag Gupta
 
Magento features list
Magento features listMagento features list
Magento features list
Rasbor.com
 
Drupal Commerce, DrupalCamp Colorado 2010
Drupal Commerce, DrupalCamp Colorado 2010Drupal Commerce, DrupalCamp Colorado 2010
Drupal Commerce, DrupalCamp Colorado 2010
Ryan Szrama
 
C Soft E Commerce&Web 201105
C Soft E Commerce&Web 201105C Soft E Commerce&Web 201105
C Soft E Commerce&Web 201105
buibadat
 
our srs (1).pdf
our srs (1).pdfour srs (1).pdf
our srs (1).pdf
ShaliniKumariGupta1
 
Raja3Years
Raja3YearsRaja3Years
Raja3Years
Raja Ravichandran
 
Deepika jewel order processing system
Deepika jewel order processing systemDeepika jewel order processing system
Deepika jewel order processing system
muthuraja6728
 
PrestaShop features, demo and RetailOn extensions
PrestaShop features, demo and RetailOn extensionsPrestaShop features, demo and RetailOn extensions
PrestaShop features, demo and RetailOn extensions
Rasbor.com
 

Similar to DrupalCamp Mumbai 2017: Drupal 8 and Commerce 2.x (20)

Drupal 8 & Commerce 2.x insights
Drupal 8 & Commerce 2.x insightsDrupal 8 & Commerce 2.x insights
Drupal 8 & Commerce 2.x insights
 
Drupal 414: Meet Commerce 2.0
Drupal 414: Meet Commerce 2.0Drupal 414: Meet Commerce 2.0
Drupal 414: Meet Commerce 2.0
 
Drupal Commerce contributed modules overview
Drupal Commerce contributed modules overviewDrupal Commerce contributed modules overview
Drupal Commerce contributed modules overview
 
Drupalcamp South Florida 2012 - Introduction to Drupal Commerce
Drupalcamp South Florida 2012 - Introduction to Drupal CommerceDrupalcamp South Florida 2012 - Introduction to Drupal Commerce
Drupalcamp South Florida 2012 - Introduction to Drupal Commerce
 
Drupal Café: Introduction to Drupal Commerce
Drupal Café: Introduction to Drupal CommerceDrupal Café: Introduction to Drupal Commerce
Drupal Café: Introduction to Drupal Commerce
 
Ecommerce Solutions (China & West)
Ecommerce Solutions (China & West)Ecommerce Solutions (China & West)
Ecommerce Solutions (China & West)
 
C++ super market
C++ super marketC++ super market
C++ super market
 
Choosing the Right E-commerce Solution
Choosing the Right E-commerce SolutionChoosing the Right E-commerce Solution
Choosing the Right E-commerce Solution
 
An Introduction to Drupal Commerce & Real World Examples
An Introduction to Drupal Commerce & Real World ExamplesAn Introduction to Drupal Commerce & Real World Examples
An Introduction to Drupal Commerce & Real World Examples
 
Drupal Commerce Drupalhagen 2012
Drupal Commerce Drupalhagen 2012Drupal Commerce Drupalhagen 2012
Drupal Commerce Drupalhagen 2012
 
[Srijan Wednesday Webinars] Meet Commerce 2.X
[Srijan Wednesday Webinars]  Meet Commerce 2.X[Srijan Wednesday Webinars]  Meet Commerce 2.X
[Srijan Wednesday Webinars] Meet Commerce 2.X
 
Gunavathi_Resume
Gunavathi_ResumeGunavathi_Resume
Gunavathi_Resume
 
Virtue mart ppt
Virtue mart pptVirtue mart ppt
Virtue mart ppt
 
Magento features list
Magento features listMagento features list
Magento features list
 
Drupal Commerce, DrupalCamp Colorado 2010
Drupal Commerce, DrupalCamp Colorado 2010Drupal Commerce, DrupalCamp Colorado 2010
Drupal Commerce, DrupalCamp Colorado 2010
 
C Soft E Commerce&Web 201105
C Soft E Commerce&Web 201105C Soft E Commerce&Web 201105
C Soft E Commerce&Web 201105
 
our srs (1).pdf
our srs (1).pdfour srs (1).pdf
our srs (1).pdf
 
Raja3Years
Raja3YearsRaja3Years
Raja3Years
 
Deepika jewel order processing system
Deepika jewel order processing systemDeepika jewel order processing system
Deepika jewel order processing system
 
PrestaShop features, demo and RetailOn extensions
PrestaShop features, demo and RetailOn extensionsPrestaShop features, demo and RetailOn extensions
PrestaShop features, demo and RetailOn extensions
 

More from Kunal Kursija

Spick and span php unit tests using data providers
Spick and span php unit tests using data providersSpick and span php unit tests using data providers
Spick and span php unit tests using data providers
Kunal Kursija
 
Php 8: String Helpers
Php 8: String HelpersPhp 8: String Helpers
Php 8: String Helpers
Kunal Kursija
 
Decoupling entity validations from entity forms
Decoupling entity validations from entity formsDecoupling entity validations from entity forms
Decoupling entity validations from entity forms
Kunal Kursija
 
Decoupling entity-validations from entity-forms
Decoupling entity-validations from entity-formsDecoupling entity-validations from entity-forms
Decoupling entity-validations from entity-forms
Kunal Kursija
 
Modern java script features
Modern java script featuresModern java script features
Modern java script features
Kunal Kursija
 
Modern JavaScript features
Modern JavaScript featuresModern JavaScript features
Modern JavaScript features
Kunal Kursija
 
Symfony and Drupal 8
Symfony and Drupal 8Symfony and Drupal 8
Symfony and Drupal 8
Kunal Kursija
 

More from Kunal Kursija (7)

Spick and span php unit tests using data providers
Spick and span php unit tests using data providersSpick and span php unit tests using data providers
Spick and span php unit tests using data providers
 
Php 8: String Helpers
Php 8: String HelpersPhp 8: String Helpers
Php 8: String Helpers
 
Decoupling entity validations from entity forms
Decoupling entity validations from entity formsDecoupling entity validations from entity forms
Decoupling entity validations from entity forms
 
Decoupling entity-validations from entity-forms
Decoupling entity-validations from entity-formsDecoupling entity-validations from entity-forms
Decoupling entity-validations from entity-forms
 
Modern java script features
Modern java script featuresModern java script features
Modern java script features
 
Modern JavaScript features
Modern JavaScript featuresModern JavaScript features
Modern JavaScript features
 
Symfony and Drupal 8
Symfony and Drupal 8Symfony and Drupal 8
Symfony and Drupal 8
 

Recently uploaded

A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
Intelisync
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
Hiike
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
flufftailshop
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
alexjohnson7307
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
fredae14
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
Postman
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
LucaBarbaro3
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
saastr
 

Recently uploaded (20)

A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
 

DrupalCamp Mumbai 2017: Drupal 8 and Commerce 2.x

  • 1. Drupal 8 And Commerce 2.x Kunal Kursija @DrupalCampMumbai2017
  • 2. About Me I am Kunal Kursija. I am a Drupal Developer based in Mumbai(India). I have 5 years experience working with: • Drupal Site Building • Drupal Back End Development • Drupal Front End Development
  • 3. What is Commerce 2.x Dive into Commerce 2.x Demo Question & Answers Today, We will be cover following…
  • 4. What is commerce 2.x Drupal 7 Drupal 8 Commerce 1.x Commerce 2.x • Commerce 2.x is a set of Drupal 8 modules, which in turn depend on other best-of-breed modules & libraries. • Developed & Maintained by CommerceGuys.
  • 5. Dive Into Commerce 2.x Dependencies Installation 2.X Entities More features
  • 6. Dependencies Drupal Modules PHP Libraries • Address: Provides functionality for storing, validating and displaying international postal addresses. • Entity: Extends Drupal 8’s entity API with additional features. • State Machine: Provides code-driven workflow functionality. • Inline Entity Form:Provides a widget for inline management of referenced entities. • Profile: Provides configurable user profiles, used for customer profiles. • commerceguys/tax: A tax library with a flexible data model, predefined tax rates, powerful resolving logic. • commerceguys/addressing: An addressing library, powered by Google’s dataset. Stores and manipulates postal addresses. • commerceguys/intl: An internationalisation library powered by CLDR data. Handles currencies, currency formatting, and more. • commerceguys/zone: A zone library. Zones are territorial groupings mostly used for shipping or tax purposes. Drupal 8.2.0 or newer, Composer & Drupal Console 1 2 3
  • 7. Installation Step 1: Ensure the Drupal Packagist repository Step 2: Download Commerce Step 3: Enable Commerce composer config repositories.drupal composer https://packages.drupal.org/8 composer require "drupal/commerce 2.x-dev" drupal module:install commerce_product commerce_checkout commerce_cart commerce_tax
  • 8. Currencies Store Management Payments Checkout Flows Product ManagementPromotions Taxes(temporarily removed) 2.X Entities Order Management
  • 10. Store Management Store Types Apparels ElectronicsBooks Home & Kitchen Stores Apparels India Electronics USABooks India Apparels USA • Commerce 2.x Supports multiple stores out of the box. • You will have per store settings like email, default currency, Supported billing countries e.t.c. • Orders will belong to one store only. • Products can belong to one or more store.
  • 11. Taxes • Removed since beta 1 release of commerce 2.x. • Under active development.
  • 12. Product Management The main terminologies in commerce 2.x product management are: Product Attributes Product Variation Types Product Types Products Product Variants Lets go through each one of them…
  • 16. Products 1 2 • Products now have their own display pages. • Products can belong to multiple stores.
  • 18. Order Management The main terminologies in commerce 2.x order management are: Order Types Order Item Types Order Processing Lets go through each one of them… Orders
  • 19. Order Types • Workflows: Define state & transition of orders. • Ex 1: Shippable products can follow fulfilment workflow. • Ex 2: Digital products can follow more simplistic workflow. • + More Options…
  • 20. Order Item Types • Order Item Types = Line Item Types(In Commerce 1.x). • They have Unit Price, Quantity & Total Price. • They point to: 1. Product Variation Type(Purchasable Entity) 2. Order Type.
  • 21. Order Processing Order processing is part of the order refresh process. This is run when on draft orders to ensure that it has up to date adjustments and that its order items are up to date.
  • 22. Orders • Orders contain list of order items(line items in commerce 1.x). • Orders follow workflows(Defined in order types). • Placed Timestamps in orders. • Order States: 1.Drafts 2.Completed 3.Cancelled
  • 23. Checkout Flows Checkout Flows are series of steps that your end user will follow while placing the order on your site.
  • 24. Payments • Allows you to add payment gateways via plugins. • Built in tokenisation(card on file).
  • 25. Promotions • In Core Now! • Store Level Percentage Discounts. 1.Order Level 2.Order Item Level • Discount Conditions. • Usage Limit • Start Date/End Date support. In Development, Only creation part is live.
  • 26. More Features • Multiple Carts allowing you to checkout each cart separately. • A Cool Shopping cart block with icon. • Allows Guest Checkouts & Registrations. • Configurable Add to cart forms.