Drupal
commerce
An ecommerce framework
Who am I

• Jakob Torp - @googletorp
• Drupal developer ~ 4 years.
• Early adopter - First live site launched 31/12/2010
• Maintainer of Commerce shipping
• 5-10 sites created with Drupal commerce
Overview


• Core concepts - the foundation of DC
• Key features
• Commerce kickstart 2
Core concepts
Entities




• Order (has line items &     • Custom profiles
  profiles)
                              • Payment transactions
• Line items (has products)

• Product
Order


  • Is used as cart and order

  • Used to access all other data
Line items

• Used as wrapper in orders - quantity, unit price, total

• Important for product pricing system

• Fields can be exposed on product’s add to cart form

• Create custom line item types/bundles with
  hook_commerce_line_item_type_info
Product


   • Store product data

   • One product per SKU -
     variant.

   • No front-end exposure.
Create an order
Define a line item type
Core framework
           features
• Price system - price field
• Clever tax handling - VAT and sales tax
• Views integration
• Rules integration
• Entity API integration
• Quickly growing community
Price system

• Defined as a field for maximum flexibility.
• Amount, currency code and data
• Price components - record price alterations
• Support for currency conversion.
Taxes

• Based on rules.
• Easy to extend and change.
• Price component used for summarized results.
Views
• Easy to alter default “layouts”
• Customize per field layout
• Well known theming system
• Area handlers to make your life easy
• Most central forms created in views.
Rules

• Event - condition - action
• Most commerce events exposed in rules.
• Custom actions predefined for you.
• Also exposed as hooks.
Community
• Shipping

• Stock                     Usage statistics
• Coupons

• Address book

• File products

• Migration from Übercart

• 65 payment modules

• 66 non payment modules
Demo
Questions?

Drupal Commerce Drupalhagen 2012

  • 1.
  • 2.
    Who am I •Jakob Torp - @googletorp • Drupal developer ~ 4 years. • Early adopter - First live site launched 31/12/2010 • Maintainer of Commerce shipping • 5-10 sites created with Drupal commerce
  • 3.
    Overview • Core concepts- the foundation of DC • Key features • Commerce kickstart 2
  • 4.
  • 5.
    Entities • Order (hasline items & • Custom profiles profiles) • Payment transactions • Line items (has products) • Product
  • 6.
    Order •Is used as cart and order • Used to access all other data
  • 7.
    Line items • Usedas wrapper in orders - quantity, unit price, total • Important for product pricing system • Fields can be exposed on product’s add to cart form • Create custom line item types/bundles with hook_commerce_line_item_type_info
  • 8.
    Product • Store product data • One product per SKU - variant. • No front-end exposure.
  • 9.
  • 10.
    Define a lineitem type
  • 11.
    Core framework features • Price system - price field • Clever tax handling - VAT and sales tax • Views integration • Rules integration • Entity API integration • Quickly growing community
  • 12.
    Price system • Definedas a field for maximum flexibility. • Amount, currency code and data • Price components - record price alterations • Support for currency conversion.
  • 13.
    Taxes • Based onrules. • Easy to extend and change. • Price component used for summarized results.
  • 14.
    Views • Easy toalter default “layouts” • Customize per field layout • Well known theming system • Area handlers to make your life easy • Most central forms created in views.
  • 15.
    Rules • Event -condition - action • Most commerce events exposed in rules. • Custom actions predefined for you. • Also exposed as hooks.
  • 16.
    Community • Shipping • Stock Usage statistics • Coupons • Address book • File products • Migration from Übercart • 65 payment modules • 66 non payment modules
  • 17.
  • 18.