Magento-Icon-Small

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 […]
Magento-Icon-Small

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. […]
Magento-Icon-Small

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

Determine execution time of PHP script in seconds

If you’re completing some potentially lengthy operations within a PHP script you may want to track how long the script is taking to run so you […]
Magento-Icon-Small

Disable/hide pagination and filter options in Magento adminhtml grid

If you’re using a custom data collection within the Magento admin you’ll soon discover that the pagination and filtering both break. Depending on your needs you’re […]
Magento-Icon-Small

Sort Order (addAttributeToSort) Resource Model Magento Collection

You can typically just use addAttributeToSort() to sort any collection retrieved through the getCollection() function. If you’re retrieving your collection through a resource model or another […]