An introduction to Drupal
Commerce
&
Real World Examples
July 13 2013
Software Architect
Email: jwilson@phase2technology.com
John Robert Wilson
Twitter: @JohnRobertWilso
Drupal.org: LSU_JBob
The Basics
Commerce Entities
Products
• Something you’re trying to sell
• A title and a price
• Create product references on nodes for end users
Orders
• Start out with a status of “cart”
• Once a product is placed in the cart, a new order is created
• Contains Line ...
Line Items
• An instance of a product in an order (or cart)
• Able to contain personalized options for that instance of
th...
Payment Transactions
• Hold all detailed financial info and metadata
• Can have a status of accepted or declined
• Payload...
Payment Gateways
Payment Gateways
• You don’t want to store actual credit card numbers
( compliance headaches, security headaches)
• Use 3r...
Checkout Process
Checkout Process
Commerce Rules
Commerce Rules
• Checkout process has Rules integrated into it
• Can be used to apply a tax based on state
• Can give a di...
Shipping & Inventory
Shipping & Inventory
• Commerce Shipping contrib module!
http://drupal.org/project/commerce_shipping
• For shipping physic...
Hooks for Devs
Hooks for Developers
• hook_commerce_checkout_router - routes the default
checkout url to an alternate url if neccessary
•...
Commerce Kickstart
Commerce Kickstart
• http://drupal.org/project/commerce_kickstart
• Nice quick configured drupal commerce site
• Includes ...
A Real World Example
http://www.drsteaks.com
Diamond Reserve
Diamond Reserve
Diamond Reserve
Another Real World
Example
http://www.robinhood.org
Drupal Commerce
• Built from scratch with lessons learned in mind
• Extendable and flexible on many levels
• Blog post out...
PHASE2TECHNOLOGY.COM
An Introduction to Drupal Commerce & Real World Examples
An Introduction to Drupal Commerce & Real World Examples
An Introduction to Drupal Commerce & Real World Examples
An Introduction to Drupal Commerce & Real World Examples
An Introduction to Drupal Commerce & Real World Examples
An Introduction to Drupal Commerce & Real World Examples
An Introduction to Drupal Commerce & Real World Examples
An Introduction to Drupal Commerce & Real World Examples
An Introduction to Drupal Commerce & Real World Examples
An Introduction to Drupal Commerce & Real World Examples
An Introduction to Drupal Commerce & Real World Examples
An Introduction to Drupal Commerce & Real World Examples
An Introduction to Drupal Commerce & Real World Examples
An Introduction to Drupal Commerce & Real World Examples
Upcoming SlideShare
Loading in …5
×

An Introduction to Drupal Commerce & Real World Examples

10,638 views

Published on

This is the presentation that accompanied LSU_JBOB's presentation at NYCCamp 2013 regarding Drupal Commerce. The session was designed for those who want to understand the broad concepts and processes that power Drupal Commerce. Foundational topics included commerce entities, the checkout process and payment gateways. In addition, brief explanations on inventory and shipping management, as well as accepting different forms of payment were discussed.

The second half of the session showcased two real world examples of companies using Drupal Commerce: The Diamond Reserve Steak Company that sells Texas beef using Drupal & The Robin Hood Foundation that uses Drupal Commerce to fight poverty in NYC.

Published in: Technology, Business
0 Comments
6 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
10,638
On SlideShare
0
From Embeds
0
Number of Embeds
1,126
Actions
Shares
0
Downloads
42
Comments
0
Likes
6
Embeds 0
No embeds

No notes for slide

An Introduction to Drupal Commerce & Real World Examples

  1. 1. An introduction to Drupal Commerce & Real World Examples July 13 2013
  2. 2. Software Architect Email: jwilson@phase2technology.com John Robert Wilson Twitter: @JohnRobertWilso Drupal.org: LSU_JBob
  3. 3. The Basics
  4. 4. Commerce Entities
  5. 5. Products • Something you’re trying to sell • A title and a price • Create product references on nodes for end users
  6. 6. Orders • Start out with a status of “cart” • Once a product is placed in the cart, a new order is created • Contains Line Items, payment transactions • Contains customer information and order metadata
  7. 7. Line Items • An instance of a product in an order (or cart) • Able to contain personalized options for that instance of the product
  8. 8. Payment Transactions • Hold all detailed financial info and metadata • Can have a status of accepted or declined • Payload from Payment Gateways
  9. 9. Payment Gateways
  10. 10. Payment Gateways • You don’t want to store actual credit card numbers ( compliance headaches, security headaches) • Use 3rd Party Payment Gateways • Send payment info over https to the third party and get accepted or declined • Paypal, Payflow Pro, Authorize.Net, Amazon Payments, Bitcoin?!?
  11. 11. Checkout Process
  12. 12. Checkout Process
  13. 13. Commerce Rules
  14. 14. Commerce Rules • Checkout process has Rules integrated into it • Can be used to apply a tax based on state • Can give a discount • Much much more!
  15. 15. Shipping & Inventory
  16. 16. Shipping & Inventory • Commerce Shipping contrib module! http://drupal.org/project/commerce_shipping • For shipping physical products and creating customer shipping profiles • Commerce Stock contrib module! http://drupal.org/project/commerce_stock • Decrement stock as products are purchased
  17. 17. Hooks for Devs
  18. 18. Hooks for Developers • hook_commerce_checkout_router - routes the default checkout url to an alternate url if neccessary • hook_commerce_checkout_complete - Allows other modules to perform business logic when an order is completed • hook_commerce_checkout_pane_info_alter - alter an existing checkout pane’s metadata • MUCH MUCH MORE
  19. 19. Commerce Kickstart
  20. 20. Commerce Kickstart • http://drupal.org/project/commerce_kickstart • Nice quick configured drupal commerce site • Includes latest version of core and all needed dependencies
  21. 21. A Real World Example
  22. 22. http://www.drsteaks.com
  23. 23. Diamond Reserve
  24. 24. Diamond Reserve
  25. 25. Diamond Reserve
  26. 26. Another Real World Example
  27. 27. http://www.robinhood.org
  28. 28. Drupal Commerce • Built from scratch with lessons learned in mind • Extendable and flexible on many levels • Blog post outlining this session
  29. 29. PHASE2TECHNOLOGY.COM

×