Dynamically Generate Product Variations with PHP

Note: This post was originally published on iamianwright.com it’s been moved here for archival purposes. “Why can’t I just dynamically generate product variations with PHP?”, I thought, “Surely that must be how other people do this!”. I’ve been working on an ecommerce site, with Drupal Commerce, for a business that a friend and I have started up. We’re selling sports clothing that is made to order. The customer is able to pick a style, two colours and a size. There are eighteen available colours so for each style there are over three hundred variations that could be chosen. As well as building the site I am creating artwork for the products. They are fairly simple vectors that use only two flat colours with a black outline on top. ...

August 16, 2013

jQuery mousemove project

Note: This post was originally published on iamianwright.com it’s been moved here for archival purposes. I set myself a little project yesterday to make an image where the head follows the cursor around the screen. I thought it would be an interesting way to learn jQuery. I took nine images of me and then I put together a simple test. The image was set to absolute positioning, 200px from top and 200px from the left. This allows me to set up a series of if statements that find out if the cursor was in a specific sector. ...

January 6, 2012