Blog

Notes on Magento and web development.

3 min read

HowTo: Create a Cron Job in Magento 2

A while ago I needed to run a task automatically every night to clean up some old rows from a custom table. The obvious tool for the job is a cron job, but if you come from Magento 1 the …

3 min read

HowTo: Create a custom Payment Method in Magento 2

Recently I was tasked with creating a custom payment method for a project. While doing some research I discovered that there are two ways to create a payment method in Magento 2. The legacy …

2 min read

HowTo: Create a REST API Call in Magento 2

These code snippets will show you how to ask the Magento REST API and retrieve some data. In this example I will query the Magento REST API to retrieve all products updated since 2018-10-09 …