SlideShare a Scribd company logo
1 of 24
Download to read offline
Drupal
                           commerce
                           An ecommerce framework




Tuesday, February 14, 12
Who am I

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



Tuesday, February 14, 12
Nuts and bolts
Tuesday, February 14, 12
Core commerce
                              entities
             • Product

             • Line items (reference to
               product)

             • Order (reference to line
               items)

             • Custom profiles




Tuesday, February 14, 12
Product


                              • Store product data

                              • One product per SKU -
                                variant.

                              • No front-end exposure.




Tuesday, February 14, 12
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




Tuesday, February 14, 12
Creating a line item




Tuesday, February 14, 12
How can entities be
                                 used?

             • Sell something that’s not a
               product.

             • You don’t want a traditional
               checkout.

             • You tell me!




Tuesday, February 14, 12
Create an order




Tuesday, February 14, 12
Core framework
                              features
             • Product reference field.
             • Price system - price field
             • Clever tax handling - VAT and sales tax
             • Views and rules integration
             • Entity API integration
             • Quickly growing community


Tuesday, February 14, 12
Product reference
                                 field
          • Create front-end product displays

          • Display products or get add to cart form. Create form for line
            item fields.

          • Create your own formatter or overwrite the display.




Tuesday, February 14, 12
Price system
             • Defined as a field for maximum flexibility.
             • Amount, currency code and data
             • Record price alterations
             • Custom price components
             • Support for currency conversion.




Tuesday, February 14, 12
Taxes

             • Uses rules to apply.
             • Custom line items can integrate by creating and
               invoking a rules action.
             • Price component for each tax type.




Tuesday, February 14, 12
Rules and views
             • Rules events for almost anything (hooks)
             • Commerce specific actions and events.
             • Area handlers to make your life easy
             • Custom handlers for a lot of things
             • Ability to create a cart form view.




Tuesday, February 14, 12
Entity API
             • entity_metadata_wrapper is your friend, but use
               with care.
             • Make fields act as entity properties.




Tuesday, February 14, 12
Community
             • Shipping                  Usage statistics

             • Stock

             • Coupons

             • File products

             • Migration from Übercart

             • 41 non payment modules


Tuesday, February 14, 12
Drupal rooms

             • Online booking with Drupal Commerce
             • Conditional price alterations
             • Missing price component integration
             • http://www.drupalrooms.com




Tuesday, February 14, 12
Case study
                           Print company
             • Drupal 6 site with webform calculation => Drupal
               7 + integration with Drupal Commerce.
             • Upgrade custom webform module.
             • Custom line item with reference to webform
               submissions.
             • Allow users to create orders.



Tuesday, February 14, 12
Case study
                           Print company
             • Drupal 6 site with webform calculation => Drupal
               7 + integration with Drupal Commerce.
             • Upgrade custom webform module.
             • Custom line item with reference to webform
               submissions.
             • Products vs calculations
             • Allow users to create orders.


Tuesday, February 14, 12
Webform page




Tuesday, February 14, 12
Order / line item form




Tuesday, February 14, 12
Backend




Tuesday, February 14, 12
The code




Tuesday, February 14, 12
Questions?




Tuesday, February 14, 12

More Related Content

Recently uploaded

Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
UXDXConf
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 

Recently uploaded (20)

IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
THE BEST IPTV in GERMANY for 2024: IPTVreel
THE BEST IPTV in  GERMANY for 2024: IPTVreelTHE BEST IPTV in  GERMANY for 2024: IPTVreel
THE BEST IPTV in GERMANY for 2024: IPTVreel
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
The UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, OcadoThe UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, Ocado
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAK
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

Drupal Commerce Drupal camp

  • 1. Drupal commerce An ecommerce framework Tuesday, February 14, 12
  • 2. Who am I • Jakob Torp - @googletorp • Drupal developer ~ 3 years. • Early adopter - First live site launched 31/12/2010 • Maintainer of Commerce shipping • 3 sites created with Drupal commerce Tuesday, February 14, 12
  • 3. Nuts and bolts Tuesday, February 14, 12
  • 4. Core commerce entities • Product • Line items (reference to product) • Order (reference to line items) • Custom profiles Tuesday, February 14, 12
  • 5. Product • Store product data • One product per SKU - variant. • No front-end exposure. Tuesday, February 14, 12
  • 6. 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 Tuesday, February 14, 12
  • 7. Creating a line item Tuesday, February 14, 12
  • 8. How can entities be used? • Sell something that’s not a product. • You don’t want a traditional checkout. • You tell me! Tuesday, February 14, 12
  • 9. Create an order Tuesday, February 14, 12
  • 10. Core framework features • Product reference field. • Price system - price field • Clever tax handling - VAT and sales tax • Views and rules integration • Entity API integration • Quickly growing community Tuesday, February 14, 12
  • 11. Product reference field • Create front-end product displays • Display products or get add to cart form. Create form for line item fields. • Create your own formatter or overwrite the display. Tuesday, February 14, 12
  • 12. Price system • Defined as a field for maximum flexibility. • Amount, currency code and data • Record price alterations • Custom price components • Support for currency conversion. Tuesday, February 14, 12
  • 13. Taxes • Uses rules to apply. • Custom line items can integrate by creating and invoking a rules action. • Price component for each tax type. Tuesday, February 14, 12
  • 14. Rules and views • Rules events for almost anything (hooks) • Commerce specific actions and events. • Area handlers to make your life easy • Custom handlers for a lot of things • Ability to create a cart form view. Tuesday, February 14, 12
  • 15. Entity API • entity_metadata_wrapper is your friend, but use with care. • Make fields act as entity properties. Tuesday, February 14, 12
  • 16. Community • Shipping Usage statistics • Stock • Coupons • File products • Migration from Übercart • 41 non payment modules Tuesday, February 14, 12
  • 17. Drupal rooms • Online booking with Drupal Commerce • Conditional price alterations • Missing price component integration • http://www.drupalrooms.com Tuesday, February 14, 12
  • 18. Case study Print company • Drupal 6 site with webform calculation => Drupal 7 + integration with Drupal Commerce. • Upgrade custom webform module. • Custom line item with reference to webform submissions. • Allow users to create orders. Tuesday, February 14, 12
  • 19. Case study Print company • Drupal 6 site with webform calculation => Drupal 7 + integration with Drupal Commerce. • Upgrade custom webform module. • Custom line item with reference to webform submissions. • Products vs calculations • Allow users to create orders. Tuesday, February 14, 12
  • 21. Order / line item form Tuesday, February 14, 12