2. blue-bag
Deconstructing Drupal
Commerce
This is going to be a non technical presentation
and no Drupal knowledge is required.
!
If I use words like “Contrib module” that don’t
mean a thing to you or I stop making sense then
do stop me :)
4. Text
blue-bag
A shop with all the bells and whistles
A solution that competes with all the other
big players out there
5. Text
blue-bag
A shop with all the bells and whistles
A solution that competes with all the other
big players out there
6. blue-bag
The real power of Drupal
Commerce
Comes from the
components that
make up Drupal
commerce
7. blue-bag
why does it matter ?
What makes a framework based on distinct independent
components better then a highly featured solution?
8. blue-bag
why does it matter ?
What makes a framework based on distinct independent
components better then a highly featured solution?
• It is impossible to think up of every use case
9. blue-bag
why does it matter ?
What makes a framework based on distinct independent
components better then a highly featured solution?
• It is impossible to think up of every use case
• The more features, the more permutations – difficult
configuration & more prone to bugs.
10. blue-bag
why does it matter ?
What makes a framework based on distinct independent
components better then a highly featured solution?
• It is impossible to think up of every use case
• The more features, the more permutations – difficult
configuration & more prone to bugs.
• It is easier to focus on individual components than
on one large system
11. blue-bag
why does it matter ?
What makes a framework based on distinct independent
components better then a highly featured solution?
• It is impossible to think up of every use case
• The more features, the more permutations – difficult
configuration & more prone to bugs.
• It is easier to focus on individual components than
on one large system
• Individual components have more use cases – more
use cases more people using and testing – more
robust and flexible components :)
13. blue-bag
Take control
By understanding the components that make Drupal
Commerce you can:
• Put them together in new ways, creating new and
unique products.
14. blue-bag
Take control
By understanding the components that make Drupal
Commerce you can:
• Put them together in new ways, creating new and
unique products.
• Customise to your needs
15. blue-bag
Take control
By understanding the components that make Drupal
Commerce you can:
• Put them together in new ways, creating new and
unique products.
• Customise to your needs
• Adapt - because things never stay the same
18. blue-bag
The Drupal building blocks
• Entities - Are data types that can be extended by code
and configuration
• Views - A visual tool for producing lists and reports on
any Drupal entity type (you can even extend it to work
on other databases you may have)
19. blue-bag
The Drupal building blocks
• Entities - Are data types that can be extended by code
and configuration
• Views - A visual tool for producing lists and reports on
any Drupal entity type (you can even extend it to work
on other databases you may have)
• Rules - A visual tool for building business logic using an
Event - Condition - Action
20. blue-bag
The Drupal building blocks
• Entities - Are data types that can be extended by code
and configuration
• Views - A visual tool for producing lists and reports on
any Drupal entity type (you can even extend it to work
on other databases you may have)
• Rules - A visual tool for building business logic using an
Event - Condition - Action
• Widgets - for data editing
21. blue-bag
The Drupal building blocks
• Entities - Are data types that can be extended by code
and configuration
• Views - A visual tool for producing lists and reports on
any Drupal entity type (you can even extend it to work
on other databases you may have)
• Rules - A visual tool for building business logic using an
Event - Condition - Action
• Widgets - for data editing
• Formatters - for displaying fields
22. blue-bag
The Drupal building blocks
Rules - A visual tool for building business logic using an Event - Condition - Action
My Silly discount
If the name of the user is Guy
Set the price to Zero
23. blue-bag
The Drupal building blocks
Rules - A visual tool for building business logic using an Event - Condition - Action
I love this site its
all free (as long as
your name is Guy)
94. blue-bag
The Drupal building blocks
• Entities - Are Data types that can be extended by code
and configuration
• Views - A visual tool for producing lists and reports on
any Drupal entity type (you can even extend it to work
on other databases you may have)
• Rules - A visual tool for building business logic using an
Event - Condition - Action
• Widgets - for data editing
• Formatters - for displaying fields
98. blue-bag
Contrib Modules
Commerce Shipping
by Jakob Torp (googletorp)
Part of the kickstart distribution
• Adds a new Line item type
• Adds a customer profile + a checkout pane (Shipping
information)
99. blue-bag
Contrib Modules
Commerce Shipping
by Jakob Torp (googletorp)
Part of the kickstart distribution
• Adds a new Line item type
• Adds a customer profile + a checkout pane (Shipping
information)
• Rules integration - Activate relevant shipping options & work
out shipping costs.
100. blue-bag
Contrib Modules
Commerce Shipping
by Jakob Torp (googletorp)
Part of the kickstart distribution
• Adds a new Line item type
• Adds a customer profile + a checkout pane (Shipping
information)
• Rules integration - Activate relevant shipping options & work
out shipping costs.
• Extended by other shipping modules like Commerce UPS &
FedEx
103. blue-bag
Contrib Modules
Commerce Stock
by Guy Schneerson (guy_schneerson)
• Adds a stock level field to the product variation entity
• Manipulates the add to cart, cart & checkout form
104. blue-bag
Contrib Modules
Commerce Stock
by Guy Schneerson (guy_schneerson)
• Adds a stock level field to the product variation entity
• Manipulates the add to cart, cart & checkout form
• Uses rules for checking stock availability
105. blue-bag
Contrib Modules
Commerce Stock
by Guy Schneerson (guy_schneerson)
• Adds a stock level field to the product variation entity
• Manipulates the add to cart, cart & checkout form
• Uses rules for checking stock availability
• Uses rules to control the Add to cart action - Disable &
repurpose.
106. blue-bag
Contrib Modules
Commerce Stock
by Guy Schneerson (guy_schneerson)
• Adds a stock level field to the product variation entity
• Manipulates the add to cart, cart & checkout form
• Uses rules for checking stock availability
• Uses rules to control the Add to cart action - Disable &
repurpose.
• Field formater - Under 5 display “Low stock”
115. blue-bag
Other modules
• Commerce Fancy Attributes - by Artusamak
• Commerce Reorder - by ikos
• Commerce Customizable Products (allows the creation
of new line_item types) - by rszrama
Others
116. blue-bag
Other modules
• Commerce Fancy Attributes - by Artusamak
• Commerce Reorder - by ikos
• Commerce Customizable Products (allows the creation
of new line_item types) - by rszrama
• Commerce Google Analytics - by Cyberschorsch
Others
117. blue-bag
A few examples of extending functionality
Configuration and custom code
Using Contrib Modules
143. blue-bag
A use case - Store open state
Cool I think I got it -
I will be able to add another
condition that will allow
admins to use the store while
it is closed.