Andrew McCombe


Full stack website developer

Fix for PHP Composer “????%” issue

I’ve had a problem on a few older projects where composer dies with “????%” after running `composer update`. Here’s the fix.


Introducing Hit The Ground: Laravel Edition

I had the idea a while ago of creating a basic starter app containing the boilerplate code needed to get started on an idea – so here it is. Introducing my Laravel Starter App – Hit the Ground.


Magento Custom Variables

Magento provides an interface for you to define your own custom variables. You can use these in CMS pages, static blocks, email templates and phtml templates. Here’s how to use them.


Testing Magento Email with Mailtrap.io

Have you discovered how hard it is when testing Magento email? Have you ever tried getting Magento to use a separate SMTP server to send emails? I have, and got very frustrated with it. My solution to testing magento email is to use Mailtrap.io.


How to backup and restore with Magento 2

Magento 2 comes with built-in functionality to backup and restore the code, media, and database. You can choose to backup and restore code, media, or database separately. Here’s how to backup and restore with Magento 2.


Product and Breadcrumb Rich Snippets in Magento

Here’s how to add products and breadcrumb Rich Snippets in Magento.


Magento Snippet: How to set and get cookies in Magento

Here’s how to set and get cookies in Magento: Set: Mage::getSingleton(‘core/cookie’)->set( ‘cookieName’, ‘cookie value;, time() + (10 * 365 * 24 * 60 * 60), ‘/’ ); Get: Mage::getSingleton(‘core/cookie’)->get(‘cookieName’); // will return the cookie value or false/null Delete: Mage::getSingleton(‘core/cookie’)->delete(‘cookieName’);


Solved: PHP Imagick ‘unable to open image’ PDF

I’ve recently stumbled across an issue where PHP Imagick can’t open a PDF file despite the file being there and readable. This is using Mac OSX El Capitan with Homebrewed PHP5, Imagemagick, Ghostscript and the PHP55-imagick module. After a bit of searching I found the fix.


Magento Snippet: Admin grid currency type with currency symbol

Here’s a snippet for using a currency column type with the currency symbol prefix in Magento admin grids.


My Current Podcasts

Like many web professionals, I listen to a lot of podcasts when I have the time. They generally fall into two categories which cover my interests; tech and music, and so I thought I’d list my current podcasts in case anyone else found them interesting.