Drupal Commerce – eCommerce for Drupal

Drupal 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

Author

  • Steve Burge

    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.

0 0 votes
Article Rating
Subscribe
Notify of
4 Comments
Oldest
Newest
Inline Feedbacks
View all comments
rszrama
rszrama
12 years ago

Wow, thanks for pulling so much good content together and sprinkling screenshots in there liberally. I really appreciate the tutorial and your final analysis of the project.

Will definitely pass it around. : )

Nick
12 years ago
Reply to  rszrama

You’re very welcome! 🙂

Kind regards,

Nick

Keith Fletcher
Keith Fletcher
6 years ago

I think, for Commerce in Drupal 7, there was a multi vendor module. Is there one for Drupal 8 Commerce? I couldn’t find it in the repository, if there is. I have hoped and hoped to build a multivendor site one day, as my first site, and had my heart set on a Drupal 8 multivendor site. Been reading about Drupal off and on for years but haven’t seen the pieces I need line up yet. (I see I may have missed an opportunity in Drupal 7 though.) I see there are a lot of non-Drupal offerings in that multivendor market and wondered if Drupal 8 is going to have an offering in that area? I know this will sound funny, but I think I have concluded that maybe there is not one, and I think I must be actually grieving this lost hope a bit. Been in a funk since I concluded this. So, I guess to stop toturing myself over it and end my misery, I’ll ask … Is a Groups, multivendor, events configuration doable enough for a non-programmer such as myself? Got any suggestions for me? Much appreciated. Thanks.

4
0
Would love your thoughts, please comment.x
()
x