Blog on

Published on Sunday 2, August 2015

I've been a fan of since it came out, even before I started at Commerce Guys. I'm a fan of using builder tools for constructing projects - Composer or Drush make (latter for Drupal) - instead of putting extra code into version control. However, this post is not about a PHP project, but one of my AngularJS projects. 

Drupal Commerce, Deconstructed

Published on Saturday 18, July 2015

Recently I presented at the Drupal 414 user group in Milwaukee on "Drupal Commerce, Deconstructed" to break down what makes Drupal Commerce and better explain some of its inner workings. The goal isn't to blow the minds of advanced users, but to sell it to all on its flexibility and help users understand why certain things are how they are. I've also submitted it as a session to DrupalCamp WI 2015.

Fixing "UpdaterException: Unable to determine the type of the source directory"

Published on Sunday 28, June 2015

I don't use the built in update functionality provided by the Update module for updating code. I like to use it for reminders and push back statistics of modules used for However, someone people do use it. Sometimes this piece of functionality can fail and throw an interesting message which doesn't seem to have many answers despite the best Google-fu.

Commerce entity's and storing arbitrary data Thursday 25, June 2015 mglaman

Drupal Commerce entities all make use of the "data" attribute. The data attribute is a blob that contain just about anything you would like - for example, Commerce Shipping utilizes this for shipping line items. Recently there was a StackExchange question on the documentation of this attribute.

Role Provisioner: Drupal 7 role and permission management

Published on Sunday 1, March 2015

If there's one thing we've all grown to encounter in Drupal it has, and probably will always be, configuration management. Drupal 8 is looking to solve a lot of that. However a lot of us don't live in the Drupal 8 world and can't sit and wait for that "magical" day. Features gives us a lot of functionality, but after a certain point Features either breaks down or becomes too cumbersome to manage.

Introducing Saturday 24, January 2015 mglaman

A recent project of mine has been for the Drupal community. The name speaks for itself - it provides a way for contributors to work on project issues queues through a kanban board. This app has two purposes: visualize the project issue queues in a useful fashion, and provide an experiment that tries to fully utilize APIs.

Drupal Issue Tracker, Chrome App

Published on Thursday 1, January 2015
Yesterday I released a Chrome application to provide a simple method for keeping track of project issues. Take a issue number (the node ID) and add it to the app. It will then utilize's REST APIs and keep track of the issue.

Responsive Media YouTube CSS

Published on Monday 1, December 2014

Make the Media: YouTube module responsive friendly with this tidbit of CSS. This snippet provides a responsive solution but doesn't force it to be full width (it will respect the width set on the elements.)

Programmatically change the "Add to Cart" line item type Thursday 27, November 2014 mglaman
Drupal Commerce has a very interesting "Add to Cart" form. The add to cart form is a field formatter for the product reference field (or even entityreference field.) In a general sense, a node has a product reference field using the "Add to Cart" formatter. What makes it more unique is that this form exposes certain fields from the product entities, but also the line item type being used. Specific fields on products can be exposed as attributes, things you pick to make your purchase.
Subscribe to Blog