Skip to main content
Jan 17, 2023

Launching my wife's cookie shop web store with Drupal 10 and Square

My wife owns her custom cookie shop, which sells decorated sugar cookies. On top of her regular custom orders, she does special cookies and cookie sets for each holiday. Recently she moved from PayPal to Square for her invoicing to leverage their more extensive offering of tools to merchants.

#drupal  #drupal-commerce
Mar 11, 2018

Flush and run, using Kernel::TERMINATE to improve page speed performance

At DrupalCon Dublin I caught Fabianx’s presentation on streaming and other awesome performance techniques. His presentation explained how BigPipe worked to me, finally. It also made me aware of the fact that, in Drupal, we have mechanisms to do expensive procedures after output has been flushed to the browser.

#drupal  #performance  #drupal-commerce
Jun 04, 2017

Swapping Drupal 8 services to customize Drupal Commerce

One of the reasons that I love Drupal 8 is the fact it is object orientated and uses the Dependency Injection pattern with a centralized service container. If you’re new to the concept, here’s some links for some fun reading.

#drupal  #8  #drupal-commerce
May 19, 2016

Drupal Commerce and Migrate status

First Steps

Plans were made back in December 2015 to put effort into the ability to support Migrate with Drupal Commerce to speed up adoption of Drupal Commerce 2.0. Commerce Migrate for Drupal 8 will provide migrations from Drupal Commerce 1.x, Ubercart for D6, and Ubercart for D7. Ideally, this module will also support other vendors, such as Magento and WooCommerce.

#drupal  #drupal-commerce  #migrate
Jun 25, 2015

Commerce entity's and storing arbitrary data

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.

#drupal-commerce  #drupal
Nov 27, 2014

Programmatically change the "Add to Cart" line item type

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.
#drupal-commerce
Nov 10, 2013

Sort Drupal Commerce Shipping Services

If you are using Drupal Commerce and are allowing customer's two or more shipping services you'll notice that the order may not make sense. By default the shipping services are displayed by how they're output in grouping of shipping provider then some other sorting that isn't cost based. There is a hook within Commerce Shipping that allows reordering of all shipping services.

 

#drupal-commerce
Nov 07, 2013

Commerce Reports 4.x

I spent a few hours this evening and knocked out a few updates for Commerce Reports to kick off the 4.x version of the module. It separates the module from the non-maintained Visualization API for the maintained Charts module. This version also removes the granularity filter we've all come to know and love with using Views Date Format SQL module.

#drupal-commerce  #commerce reports