Writing

Howto's, snippets, and articles I've written over the years.

Magento: remove admin mass action for specific role

August 15th, 2017

I had a use case where a Magento admin user was limited to viewing the orders only. They should be able to view orders but not perform any actions on an order. The best way to do this with Magento is to remove admin mass actions for a specific user role.

Magento: Remove specific tabs from product edit in admin

August 8th, 2017

Here's how to remove specific tabs from Magento's admin product edit pages.

How to upgrade Magento 2 to a later version

June 9th, 2017

Here's how to upgrade Magento 2 to a later version. For example, if you are currently running 2.1.6 and you need to upgrade to 2.1.7.

How to get the URL of a CMS page or a static block in Magento

April 19th, 2017

Here's how to get the URL of a CMS page or a static block in Magento.

How to use a different SSH port with rsync

April 18th, 2017

I'm forever forgetting how to use a different ssh port with rsync, so here's how to do it.

HEAD request with PHP

March 30th, 2017

If you want to perform a HEAD request with PHP on an URL you can use the `stream` functionality...

Cheat Sheet: Magento Collection Snippets

August 18th, 2016

A cheat sheet containing useful Magento Collection snippets.

Magento Snippet: Use a Group By clause on a collection model

August 17th, 2016

Here's a Magento snippet showing how to use a Group By clause on a Magento collection model.

Managing Homebrew Services

August 5th, 2016

Homebrew is easy to use and makes installing services such as MySQL or Elasticsearch a breeze. Here's how to manage those services.

I’m a Magento Certified Developer!

I’m a Magento Certified Developer!

August 4th, 2016

I'm pleased to announce that I have recently passed the Magento Certified Developer exam.

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

July 28th, 2016

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

Magento Custom Variables

July 12th, 2016

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.

Newer articles Older articles