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
Entities• Order (has line items & • Custom proﬁles proﬁles) • 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 ﬁeld• Clever tax handling - VAT and sales tax• Views integration• Rules integration• Entity API integration• Quickly growing community
Price system• Deﬁned as a ﬁeld for maximum ﬂexibility.• 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 ﬁeld 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 predeﬁned 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