[Srijan Wednesday Webinars] Meet Commerce 2.X

732 views

Published on

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.

Published in: Software
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
732
On SlideShare
0
From Embeds
0
Number of Embeds
468
Actions
Shares
0
Downloads
4
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

[Srijan Wednesday Webinars] Meet Commerce 2.X

  1. 1. Meet Commerce 2.x Native eCommerce framework for Drupal Matt Glaman, Commerce Guys ! @nmdmatt
  2. 2. Drupal + Drupal Commerce = flexible eCommerce @srijan #SrijanWW
  3. 3. Matt Glaman • Senior Drupal Consultant @ Commerce Guys • Co-maintainer of Drupal Commerce • Author of Drupal 8 Development Cookbook @srijan #SrijanWW
  4. 4. A native eCommerce framework for Drupal “Powering truly flexible eCommerce”
  5. 5. • Taxes • Fees • Discounts • Pricing • Addressing • Checkout • Product management • Catalog management • Order workflows • Payments Looking back and moving forward @srijan #SrijanWW
  6. 6. GROUNDWORK @srijan #SrijanWW
  7. 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. 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. 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. 10. • Drupal 8 port of Profile2 • Replaces 1.x customer profiles • Replaces need for Addressbook Profile @srijan #SrijanWW
  11. 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
  12. 12. • Drupal 8 heir to Addressfield • Uses CommerceGuys libraries • Supports address formats • Powered by Google's dataset Address: Fields & Formats @srijan #SrijanWW https://drupalcommerce.org/blog/16864/commerce-2x-stories-addressing
  13. 13. Address: Zones @srijan #SrijanWW
  14. 14. DRUPAL COMMERCE @srijan #SrijanWW
  15. 15. • Using CLDR data • commerceguys/intl library • Internationalizedformatting (locale) Currencies & Pricing @srijan #SrijanWW https://drupalcommerce.org/blog/41828/commerce-2x-stories-currencies
  16. 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. 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. 18. • Orders belong to one store • Products can be part of multiple stores Stores: Orders and Products @srijan #SrijanWW
  19. 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. 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. 21. • Order type support • Shippable order • Digital order • Workflows! • More direct action items • “Placed” timestamp • Order-level pricing Orders @srijan #SrijanWW
  22. 22. • Multiple carts • Cart is an order flag Carts @srijan #SrijanWW
  23. 23. Shopping cart block @srijan #SrijanWW • Icon with item count • Click to expand for details • Powered by views, customizeable.
  24. 24. • Simplified customization • Line item form display New add to cart form @srijan #SrijanWW
  25. 25. @srijan #SrijanWW
  26. 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. 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. 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
  29. 29. Matt Glaman !/nmdmatt "/mglaman #/mglaman Thank You! Take this conversation online by tweeting using the hashtag #SrijanWW

×