Sunday, August 30, 2015

Drupal Commerce: Update Totals When Quantity Is Changed

This is just an example on how to implement ajax on the drupal commerce line items form. For this to work on your project, you'll need to make some significant changes, but this should at least give you a good start.

Saturday, May 9, 2015

How To Make A Drupal Module: Part 1

Creating a Drupal Module is easy! At the minimum, you only need two files; a .info file, which describes our module and a .module file, which is where most of our code goes.

First things first, you need to create a folder to place our two files in. Call it my_module and place it in sites/all/modules (I place mine in sites/all/modules/custom).

Pass JSON To Drupal Page

I worked on a complex javascript application that comprised of many checkboxes, textfields, dropdowns and multiple steps. The data needed to be stored in a database and since I didn't use Drupal's Ajax, I needed to pass the data asynchronously elsewhere for that to be handled.

Saturday, February 28, 2015

View Exposed Filter with a dropdown/select and textfield

In this example, we'll edit the commerce orders view. We need to edit the exposed filters in the view's configuration so we can then modify it programmatically and add more form elements. Without a preexisting exposed filter, there won't be a form to modify.