Blog

Drupal Commerce Bulk Product Update

Drupal Commerce has the best implementation for handling virtual products sales as if in a real life store, in my opinion. Each product has a product display (or container) which houses each individual product, a variation per se, ( ex: shirt Z size small, shirt Z size medium) which provides better stock management and a streamlined business process if you do have a physical store and virtual store. There's just one major caveat: each product variation has to your product data attached, not the product display. So a t-shirt with 6 sizes is actually 6 products.

Setup Drupal cron through cPanel

Drupal uses a cron to take care of clean up tasks, as well as utilizing certain features. By default Drupal executes its cron run every three hours based on a user visit. This causes the cron to be executed over HTTP. Depending on the generally it can be more efficient to execute your Drupal cron directly through PHP command line on the server side versus HTTP.

Flush WordPress rewrite rules through phpMyAdmin

I migrate a lot of WordPress installs from a localhost to the beta server and then to production. It's easy enough to update the URLs in _options and guids in _posts, but the one thing that irritated the hell out of me was the rewrite rules. WordPress caches the rewrite rules within _options; if you've migrated a WordPress you'll notice links are broken even though .htaccess is fine. Simply find "rewrite_rules" in _options table and clear out it's value - badda bing.