Drupal Commerce - eCommerce for Drupal

| Drupal

tutuploadsmedia_1320192961346.pngDrupal Commerce is currently the leading solution for building Drupal e-commerce websites.

We're going to give you a first look over Drupal Commerce, showing you how to get up and running. This won't be a detailed tutorial but introduce you to the key features. We'll show you the main modules that Drupal Commerce relies upon and will give you important resources to learn more.

About Drupal Commerce

tutuploadsmedia_1319935776480.png

For several years the leading e-commerce solution for Drupal was Ubercart and was led by talented developers such as Ryan Szarma. I interviewed him back in early 2007 on the launch of Ubercart. However fast forward several years due to "a number of trademark issues and other disagreements of the future direction of Ubercart", Ryan left and reated a fork which became Drupal Commerce. He also helped to found Commerce Guys, a venture-capital backed company, to provide professional support for the release.

Getting Started

tutuploadsmedia_1319935748440.png

The fastest way to get started with Drupal Commerce is by downloading and installing the Commerce Kickstart distribution of Drupal. It's a normal Drupal package plus over 20 specially created Drupal Commerce modules.

The main installation process is the same for a normal Drupal install as shown in the image below:

tutuploadsmedia_1319935634065.png

The only noticeable difference is on the last page of the installation process when you have the opportunity to create sample products for your store:

tutuploadsmedia_1319935690298.png

A Walkthrough of Drupal Commerce

tutuploadsmedia_1319936865479.png

When you first open the new Drupal install there will be three very basic products on the frontpage: Product One, Product Two and Product Three.

tutuploadsmedia_1319936882083.png

Click Add to cart and you'll see that the shopping cart module on the left-hand side records the action.

Click Checkout and you'll be taken to a shopping cart like the one below.

tutuploadsmedia_1319936669477.png

On this page you fill in your billing information and choose a payment method (none are setup by default so you can go process without paying).

On the second page the checkout you'll be asked to review your order:

tutuploadsmedia_1319936718783.png

Agree the purchase and your transaction is complete:

tutuploadsmedia_1319936750720.png

Click on view your order and you'll see a receipt page as in the image below:

tutuploadsmedia_1319936772917.png

Overall the process is smooth. There aren't any shipping or payment options setup so you can breeze right through the checkout without needing any setup.

How Drupal Commerce Works

tutuploadsmedia_1319936922893.png

Now let's take a look at how Drupal Commerce works under the hood. You'll notice that a new Store link has been added to the main toolbar, in addition to a series of shortcuts. These are the main areas for configuring your store.

Your products are setup as a nodes and so all of the product details will be added as fields.

tutuploadsmedia_1319936974868.png

Here's an example product editing page:

tutuploadsmedia_1319936220547.png

Configuration

tutuploadsmedia_1319936605366.png

The Configuration shortcut provides all of the store-wide settings for your store as in the image above.

The Store link in the main toolbar provides the area to manage your actual transactions, products and customers.

tutuploadsmedia_1319936578747.png

Views play a major role in every element ot Drupal Commerce from setting up the Customer profiles to tracking inventory:

tutuploadsmedia_1319936538425.png

The Rules Module

tutuploadsmedia_1319938619519.png

In order to set shipping and product pricing rules, Drupal Commerce relies very heavily on the Rules module. You can set all sorts of different Conditions (someone buys XYZ product) and allow those to trigger follow up actions (Offer them a related product). Of course, Drupal Commerce requires a good understanding of Drupal, but anyone seriously wanting to use it will need to sit down and really familiarize themselves with Rules and these Events, Conditions and Actions. They are the key to setting Drupal Commerce apart from others, in terms of flexibility. Relying so heavily on a such a complex module is both the power of Drupal Commerce and also a potential limitation. Watching the Rules tutorials from NodeOne would be good way for users to get up to speed: http://nodeone.se/node/984.

First Look Conclusion

Drupal Commerce is clearly targeting an enterprise market. There's enormous potential here to create a customizable store. Last month the the Commerce Guys built a parody / tribute of the Apple Store which was a wonderful copy of the original. They decided to take it down to avoid any letters from Apple's lawyers but it was a wonderful example of what Drupal Commerce can do.

Like Drupal, Drupal Commerce is not for those people who are faint of heart or short of time. I also suspect that, like Drupal, it can deeply reward those who spend the time to master it.

Find Out More

As we've noted, Drupal Commerce doesn't install with any payment or shipping option so your first stop may well be to add those. Here are three additional modules to get you started:

  1. Shipping: http://drupal.org/project/commerce_shipping
  2. PayPal: http://drupal.org/project/commerce_paypal
  3. Authorize.net: http://drupal.org/project/commerce_authnet

In addition there's a full list of contributed modules here: http://www.drupalcommerce.org/contrib. It's worth nothing that although the core is a stable release many of the additional modules are still in RC or Dev stage.

Also, Commerce Guys have done a good job of creating video intros to Drupal Commerce and so be sure to check out http://vimeo.com/channels/commerceguys


About the author

Steve is the founder of OSTraining. Originally from the UK, he now lives in Sarasota in the USA. Steve's work straddles the line between teaching and web development.