Drupal Planet

Function scope & Drupal cache

Submitted by swim on Mon, 07/14/2014 - 04:43

When developing with caching in mind it's important to consider functionality scope. For example, writing code which is per visitor specific in PHP with caching support ahhh =O. While rewriting that same functionality in JavaScript offers us a quick and cache friendly solution. Consider the following examples.

Drupal Commerce Responsive Checkout Tables

Submitted by swim on Fri, 06/06/2014 - 04:18

Providing a responsive checkout is an important feature of any eCommerce site. Drupal Commerce if themed correctly handles this fairly sweet; except for one element, tables.

Here is a quick solution which leverages stacktable.js. Automatically applying it to each views table instance during the checkout process. Simply add more form_id's to extend this functionality to other pages.

Subscribe to Drupal Planet