Drupal Commerce Blog

What's happening in the world of Drupal Commerce.

Using OpenID Connect for Single Sign-On with Drupal

At Commerce Guys we provide a varied range of services, including our cloud PaaS Platform.sh, this Drupal Commerce community website, support, and the Commerce Marketplace.

Our users may need to log in to any of these services, and sometimes several at the same time. So we needed to have a shared authentication system, a way of synchronizing user accounts, and single sign-on (SSO) functionality.

After a lot of research on the existing methods, such as CAS, we found that there was no generic open-source solution which would cover all of our current needs and would also allow us to grow and scale in the future when adding new features or applications.

We decided to implement the OAuth 2.0 and OpenID Connect protocols, which were designed to be flexible, yet simple and standardized - exactly what we wanted.

Patrick Dawkins
Posted: Feb 17, 2015

How to switch your payment settings based on environment variables using Platform.sh

When working on a Commerce project which uses a payment gateway, you need to always make sure that your Staging and Development environments are properly targeting the sandbox or test mode of your payment gateway, and that your Production site is targeting the live account.

This is actually true for any third-party service integration which provides a sandbox where you can test. The objective is to make sure you never send test data on a live account, no matter the service you're testing on.

For this tutorial, I will focus on payment method settings, but the principle remains the same for any other third-party integration.

I will start from an empty Drupal site hosted on Platform.sh and go through the following steps:

  • Enable and configure Paypal WPS payment method
  • Export its configuration to a settings.local.php file
  • Override its Sandbox configuration on the Staging environment
  • Write custom code to read the configuration from the settings.local.php

As you see, the goal (as always with Drupal) is to read the configuration from your code so that you can easily switch from a sandbox mode to a live mode.

Augustin Delaporte
Posted: Dec 4, 2014

Implementing a Commerce License plugin

One of the greatest additions to the Drupal Commerce contributed module space this year is the Commerce License and Commerce License Billing suite. Together, these modules provide a way to sell access to electronic resources, and track recurring orders, measure usage of resources, and bill customers accordingly. This is a use case that isn't well-addressed by many other popular e-commerce platforms, which are typically focused on shipping physical products rather than managing access to electronic resources like files, software, user accounts, or online content. Commerce License provides a way to tackle essentially any of these use cases using a combination of the Drupal Entity API module and CTools plugins delivered through a module called Entity Bundle Plugin. Bojan Živanovic, the module suite's author, has written about this methodology extensively here: http://bojanz.wordpress.com/2013/07/19/entity-bundle-plugin/

Posted: Aug 26, 2014

Cut Costs on Your Credit Card Processing

Credit card processing rates and fees are complicated with lots of fine print. But one thing is for sure. You likely feel that you are paying much more than the “super low” advertised rate from your current provider.

This webinar discusses 7 common mistakes online businesses make when selecting a payment processor, along with tips on how to cut your costs.

Specifically we’ll discuss:

Architecting Drupal Commerce Sites

Before diving into a Drupal Commerce project, you must reconcile the product model and business rules of your merchant with the data model and processes of the framework. Thanks to its dependence on Drupal's entity system, Views, and Rules, Drupal Commerce is flexible enough to accommodate most requirements with little custom development required. However, to get the most out of the system, you must understand how it's using these systems and where it expects different types of data for products, transactions, etc. to reside.

Drupal Commerce + Lingotek

Now it's easy to quickly translate your content directly from Drupal Commerce using the new Lingotek - Inside for Drupal Commerce integration.

Your users will be able to access translated content, nominate content for translation, and even offer to translate content themselves-all without leaving your site!

Join Calvin Scharffs, VP of Marketing for Lingotek and Robert Douglas Director of Product Operations for Commerce Guys in this webinar, they will walk you through the five steps needed to produce and maintain a multilingual website, including how to:

Your Drupal Site Can Talk

The Message Stack is a group of Drupal modules that enable cutting-edge social networking and user engagement features such as activity streams, notifications, subscribing to a particular content, etc.

Amitai Burstein, Gizra's CTO and the lead maintainer of Message Stack as well as Organic Groups 7 and Entity Reference modules, will discuss the core modules that make up the stack: Message, Message Notify and Message Subscribe - their architecture, different roles and how they work together in real world scenarios.

Commerce PayPal 2.0 Released

At the end of last year, I began an update to Commerce PayPal guided by Todd Hashimoto of PayPal. Our goal was clear: integrate Express Checkout, PayPal Payments Advanced, and Payflow Link on top of the PayPal WPS / WPP support the module already offered. By the time we hit beta, PayPal let us know just what they thought of our integration... by saying it was the strongest integration they've seen and then joining us to talk about it at DrupalCon Portland.

We've received great feedback from users and developers during the beta period, so I've just packaged a full 2.0 release incorporating a few bug fixes and additional features. Read on for more information about the services integrated and plans for continued development.

Ryan Szrama
Posted: Jun 29, 2013

Drupal Commerce sites can now use Google Store Locator

Working in eCommerce all the time can make it easy to forget that a vast majority of consumer spending is still done in brick-and-mortar shops. Discovering a dearth of ‘easy to install and configure’ store locator modules on drupal.org prompted us at Commerce Guys to create one. Our choice of which direction to move in was made easier because Google had recently announced the release of a store locator utility library, that makes working with their Maps API relatively painless.

Posted: Apr 26, 2013
Subscribe to RSS - Modules