Categories
Posts

Building a cross-browser compatible, multi-handle range slider

Range Inputs are HTML elements which let users select a numeric value between a specified minimum and maximum value. They support single values by default.

As part of the WooCommerce Blocks project we’ve been working on converting WooCommerce widgets to Gutenberg blocks. One of those happens to be a price slider which currently uses jQuery UI. For blocks we’re using React.

Rather than use a library, we were really keen to use native range inputs to keep our dependencies to a minimum, and so the range inputs were semantic and keyboard accessible. Our idea was to overlay 2 range sliders to form a single component.

After working on this, I’d like to share some of my findings. Spoiler alert, the final slider looks like this:

The finished slider
Categories
Photos

Trip to Somerset

Some photos I took this month in Somerset, including Bristol Zoo, Longleat Safari, Glastonbury Abbey, and Brean Down.

Taken with a Nikon Z7, Sigma 24-105mm f/4, and 100-400mm f/5-6.3 lens via FTZ adapter.

Categories
Posts

I made a Super Mario Themed Nursery

Last year, before the birth of my first son, I was able to get creative and decorate the nursery. Being a huge fan of video games (and retro style graphics!) logically I chose a Super Mario theme for the room and set about making plans to create a large wall mural and other themed objects (as well as doing the boring adult stuff like flooring and painting the walls).

It took approximately 2 months to get everything completed, and a lot of that was lead time on the custom things I needed to order. I do wish I took more shots during the build, but alas I didn’t think I’d be blogging about it. Maybe next time!

Categories
Posts

How we’re tackling GDPR in WooCommerce core

What we’re up to in WooCommerce land right now.

Categories
Snippets

WooCommerce 3.3 – Hide uncategorized category from the shop page on the frontend

Categories
Snippets

Small drop-in plugin to fix double-serialized product attributes (they are no longer double-unserialized in WC Core)

Categories
Snippets

WooCommerce 3.0 – Disable deferred email sending

Categories
Snippets

WooCommerce – Notify admin when a new customer account is created

Categories
Snippets

WooCommerce – Hide price suffix when product is not taxable.

Categories
Snippets

WooCommerce – Redirect external products offsite (disable single listings)