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 […]

Fix layout.xml caching causing blocks to render other blocks in Magento

If you’re building a system which uses Ajax and makes numerous calls to $this->getLayout()->getUpdate()->load() (which enables you to load sections of the layout.xml file) and render […]

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 […]