Drupal Commerce Blog

What's happening in the world of Drupal Commerce.

Converting Your Existing Platform.sh Development Environment to a Makefile

Platform.sh build window: Building as a vanilla project, you are missing out!

One of the most exciting features of Platform.sh is it’s ability to use Drush makefiles to rapidly prototype sites. By default, new projects can start with a makefile that will automatically add Commerce Kickstart or vanilla Drupal. Then, using the makefile, you can add new modules, themes, and libraries, by simply adding a few lines to the makefile and commiting. When you push the changes to your platform, the entire site will be rebuilt. Plus, whenever you’re in “makefile mode” any extra files that are in the root of the respository get pushed into sites/all/default. So if you have any custom modules, you can just stick them in modules/ and they’ll end up in sites/all/default/modules. This can make your code bases not only small, but far more manageable. You can convert a site that isn’t a makefile into a makefile. And in this post, that’s exactly what we’re going to do.

Nicholas Vahalik's picture
Posted: July 21, 2014
0 Comments

Launching Commerce on Drupal 8

With the entity API maturing in Drupal 8 as it approaches its first beta, Commerce Guys gathered a variety of Drupal Commerce contributors and maintainers in its Paris office to begin active development on Drupal Commerce 2.x. The week long sprint began with architectural debate and validation incorporating the collective experience of our professional services teams and delivery partners.

Drupal Commerce 2.x will ultimately be a complete rewrite, reflecting the drastic changes in Drupal 8 itself. We’re excited to announce that long-time community contributor and Commerce Guy par excellence Bojan Zivanovic has been added as a co-maintainer to help us make it happen.

Read about all of the changes!

Ryan Szrama's picture
Posted: July 2, 2014
5 Comments

Adding Paid Content to an Existing Drupal Blog

One of the most powerful things that you can do to a Drupal site is to add Drupal Commerce. With some modules and a bit of time, you can transform any Drupal 7 site into a revenue generation engine — no matter if you are selling physical products, file downloads, or just wanting to monetize digital content or access. The ability to simply enable commerce on an existing site is very powerful and can open up opportunities that you might not have considered.

One of those possibilities is paid content. This post will walk you through adding paid content to an existing blog site using two modules from our Digital Commerce Suite: Commerce License (CL) and Commerce License Billing (CLB). At DrupalCon 2014 in Austin, in the second half of Commerce by Example, we walked through the process of setting up a blog. The instructions and the demo site archive are here (link above) so you can walk through at your own pace.

Nicholas Vahalik's picture
Posted: June 10, 2014
3 Comments

Commerce by Example

We are happy to have you taking a look with us on the Drupal Commerce by Example. It's a Lab at Drupalcon Austin. We will be updating this post with a video once it's available.

Slides: Commerce by Example Slides

Update, 6/9: It appears that the video below only has the first half of the session. We're looking into where the second half went.

Update, 6/11: Second half of the session is now available. Many thanks to the wonderful folks at the Drupal Association!

Video

First Half (Bookpal)

Second Half (Blogorama)

Josh Miller's picture
Posted: June 5, 2014
3 Comments

Improving the Experience of Commerce Bundles

Commerce Bundles, while very powerful, isn’t exactly the most user-friendly from a UI standpoint. However, it is very customizable and there are a few things we can do really easily to improve the overall experience:

Using a View for the Bundle Item Autocomplete

Out of the box, Commerce Bundle’s Bundle Item Autocomplete looks solely at the title. This doesn’t scale really well if you give all of your products in a set (e.g. S-XXL shirts) the same name, which is pretty common. So instead, we can modify the widget to use a custom view to load and search for autocomplete suggestions. To enable:

Nicholas Vahalik's picture
Posted: April 24, 2014
1 Comments

Commerce Module Tuesday: Commerce Add to Cart Extras

Commerce Add to Cart Extras

Commerce Add to Cart Extras is a great little module that provides the ability to turn a product listing view into an add to cart form. It does this by providing a new field that you add to a view which provides a quantity text box and makes the entire view an add to cart form. This differs from the existing “Add to Cart” field provided by commerce, which allows you to add a single item to the cart from a list.

This allows you to do some useful things such as creating a bulk order form which lists some or all of the products on your site, allowing customers to enter a quantity directly for the products they want. Or, you can utilize standard Views functionality to create another add to cart form for wholesalers on products with several attributes allowing them to add quantities of each individual product quickly and easily. Let’s take a brief look at how we can do this.  Just download and enable the module, and you’re ready to get started.

Video and run-down after the break.

Nicholas Vahalik's picture
Posted: April 23, 2014
1 Comments

Quick and Dirty Price & Stock Updater with Editable Views

Have you ever wanted to be able to have a single page where you could update pricing and/or stock for your entire store? Look no further! Today you'll learn how to create a price and/or stock updater in 5 minutes with Views and the Editable Views module. It isn't perfect, but it can save you a bunch of time!

Read More

Nicholas Vahalik's picture
Posted: March 31, 2014
2 Comments

Building a Drupal Commerce store with almost no coding

Hi everyone, here is a case study about the recent personal business that I started, and how I’ve been able to build a complete working eCommerce store with Drupal Commerce, without being a developer and with almost no coding.

You can check the site at: coupledehuit.fr

Last summer, when I came back from my traditional wedding in China with my awesome wife, I realized that there was no way for us to buy clothes for couples in France, whereas it is so common in China.
That’s the reason why we decided (my wife and I) to bring that concept into Europe, starting in France. But we had to tweak the concept a bit to fit a European market, since European couples don’t act the same and tend to be more individualistic than Asian couples. So we had to create designs that our customers could wear separately, as well as a couple. We started with t-shirts since they’re fairly easy to produce and sell.

Augustin Delaporte's picture
Posted: February 19, 2014
1 Comments

Using permissions to allow users to create products

How to setup a user who can create products.

Today we have another quick screencast answering a question in the Q&A section of drupalcommerce.org. This user, golubovicm, has asked "Edit own products permission" is not working! First off, that's not the best way to phrase a question, but it does happen that a number of people are wondering how to set up a user to create, edit, and delete their own products. So, we've created a quick screencast to walk you through how to set this up.

View the screencast.

Josh Miller's picture
Posted: January 3, 2014
0 Comments

How to create a Drupal 8 Toolbar Icon

Drupal Commerce Cart icon translation

Have you installed Drupal 8 yet? That toolbar is an incredible piece of art. It's functional, beautiful, and really slick. The icons are resolution independent, so that means your average mobile phone and some of the higher end laptops can show off a lot more icon detail. It's so pretty, it's just begging to be extended and filled with all the awesome-sauce that is Drupal Commerce.

Below is a journey through making a toolbar icon happen on Drupal 8-alpha6. Note that things can definitely change between now and a stable Drupal 8.

D8 Toolbar Status

So, unless you were in the issue queues helping make decisions and solve problems, you've likely not taken much time to follow the evolution of the toolbar. In Drupal 7, this is the toolbar you get:

Drupal 7 Toolbar

And in Drupal 8, you get so much more:

Drupal 8 Toolbar

  • Toolbar Bar - This is the black bar across the top. Yes it's called the "Toolbar Bar" (note the double "bar"). In a particularly brilliant stroke, we have four very simple actions. The clutter is gone. And the best part? The links collapse into icons on smaller screens.
  • Toolbar Tray - This is the white bar just below the black bar that can go "horizontal" using a toggle switch. Unlike Drupal 7, the top bar items tie directly to the second bar. I, for one, am very impressed with how comfortable this tray feels. Finally, Drupal has a world-class toolbar.
  • Toolbar Tray expansion - When in a horizontal
  • Icons - Notice all those icons? They're a new feature and that's the focus of the rest of this article. Lots to talk about.

Read the entire tutorial

Josh Miller's picture
Posted: December 11, 2013
5 Comments

Pages

Subscribe to Blog