Update all entities/rows within a Magento collection

I ran into an issue when I was attempting to update every row within a collection I had previously loaded. The only method I could easily […]

How to include composer libraries within Magento

Recently I’ve been playing around with Elasticsearch and I had the need to use their PHP library with Magento. As this library wasn’t conforming to the […]

Get total purchases of a product in Magento

There is always a need to understand which products are selling best within Magento. Yet there seems to be little information to retrieve the total quantity […]

Get Magento custom shipping price including country specific tax rules/percent

Whilst building some functionality for my pre-order system which separates out order items into individual orders with separate shipping methods I came across the need to […]

Add a new column to a table with Magento installation/upgrade script

When building a module you should always utilise the installation and upgrade scripts so that any database additions or changes are automatically modified on module installation. […]

How to call $this->getPriceHtml(); in any custom Magento template

If you’re pulling in products in custom templates and wanting to display information like the price you’ll run into the issue of how intimidating the price.phtml […]