Discover Drupal Commerce 2.X. Learn how it's different from Commerce 1.X and all the new features and architecture that makes it so much easier to use and develop with.
7. • Abstract core concepts
• PHP at large
• Used by other applications
• Influence on symfony/intl
• First to get off “the island”
Libraries first
@srijan #SrijanWW
8. Composer
@srijan #SrijanWW
Adding Commerce to an existing Drupal 8 site requires Composer Manager, for now
$ drupal module:download composer_manager;
$ php modules/contrib/composer_manager/scripts/init.php;
$ composer drupal-update;
OR, for a new Drupal 8 site
$ composer create-project drupalcommerce/project-base
mystore --stability dev
https://bojanz.wordpress.com/2015/09/18/d8-composer-definitive-intro/
9. • Developed for Commerce 1.x product user experience
• Standard in 2.x
• Manage product variations
• Manage order line items
• Used by Media in D8
Inline Entity Form
@srijan #SrijanWW
10. • Drupal 8 port of Profile2
• Replaces 1.x customer profiles
• Replaces need for Addressbook
Profile
@srijan #SrijanWW
11. Workflows are composed of
states and explicit transitions
between them.
Order types have different
workflows.
State Machine
@srijan #SrijanWW
https://drupalcommerce.org/blog/43169/commerce-2x-stories-workflows
15. • Using CLDR data
• commerceguys/intl library
• Internationalizedformatting (locale)
Currencies & Pricing
@srijan #SrijanWW
https://drupalcommerce.org/blog/41828/commerce-2x-stories-currencies
16. Smart data model designed for
fluctuating tax rate amounts
("19% -> 21% on January 1st")
Predefined tax rates for EU
countries and Switzerland.
More to come.
Tax resolvers with logic for all
major use cases (b2b, b2c,
digital / physical)
Taxes
@srijan #SrijanWW
https://drupalcommerce.org/blog/31036/commerce-2x-stories-taxes
17. • Multiple stores
• Locations
• Marketplace (multiseller)
model
• Billing country options
• Per-store settings
• Tax
• Billing country
Stores
@srijan #SrijanWW
https://drupalcommerce.org/blog/42419/commerce-2x-stories-stores
18. • Orders belong to one store
• Products can be part of multiple stores
Stores: Orders and Products
@srijan #SrijanWW
19. Store: Console
@srijan #SrijanWW
Generate a store using Drupal Console
$ drupal commerce:create:store
Enter the store name: Northeast Region
Enter the store email: ne-usa@mystore.com
Enter the store country: United States
Enter the store currency [USD]:
The store has been created. Go to /store/3/edit to complete
the store address and manage other settings.
20. • Product & Variation entities
• Each product type has
matching variationtype
• Attributesvia entity references
Products
@srijan #SrijanWW
https://drupalcommerce.org/blog/42500/commerce-2x-stories-products
21. • Order type support
• Shippable order
• Digital order
• Workflows!
• More direct action items
• “Placed” timestamp
• Order-level pricing
Orders
@srijan #SrijanWW
26. • In progress!
• Lot of time spent researching user experience
• Each order type will have its own checkout workflow
• Improved guest and authenticatedcheckout experiences
Checkout
@srijan #SrijanWW
27. • Not yet
• Expand the API and UI (auth, refunds, etc)
• Built-in tokenization (commerce_cardonfile in core)
• Concept of modes (sandbox, production)
Payments
@srijan #SrijanWW
28. Join us weekly on Wednesday at 3PM GMT+2 in #drupal-commerce
drupalcommerce.org/blog
drupalcommerce.org/contribute/2.x
docs.drupalcommerce.org/v2/contributing/getting-started.html
drupalcommerce.org/blog/tagged/commerce-2x
Get Involved; Join The Fun
@srijan #SrijanWW