Blog Archives

Allowing Users to Cancel Their Own Commerce Licenses

UPDATE: I’ve written a contrib module called Commerce License Cancel to get the ball rolling to make this a community effort. Read on if you’d like to see how I got there. There’s been some talk in the issue queue

Tagged with: , , , , ,
Posted in Development

Free Shipping for Specific Products in Drupal Commerce

Recently I had a client call me asking if she could offer free shipping on a specific promotional/limited-run product. Unfortunately I didn’t find any clear-cut solutions in contrib or Drupal Commerce core. Also, I could not come up with a

Tagged with: , , ,
Posted in Development

Drupal 7 – Commerce Migration Class

Here’s a migration class I’ve been working on to import 8200 products. The biggest feature of this code is that it will automatically create a single product display node that groups all products who share the same “grouping identifier.” So,

Tagged with: , , , ,
Posted in Development

Drupal Commerce Add To Cart Form Tweaks / Registration Improvements

In this example I’m showing how to improve the Add to Cart button for Drupal Commerce products to show differently based on whether or not users have already purchased a product, or whether the product is already in their cart.

Tagged with: , , , , ,
Posted in Development

Creating a Link on a Product Display Node to Edit a Referenced Product

Drupal Commerce is amazing. On a recent project I had the pleasure of working with it for the first time. I understood the link between products and product displays, but there were a few things that bothered me about the

Tagged with: , ,
Posted in Development