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. ...