HummingbirdUK main logo

Coding solutions to business problems

About us

We use code to create solutions to business challenges, bottle-necks and headaches.

If you think your business has a problem that can be solved through code, we are happy to chat things through without any obligation.

Get in touch

Update Magento catalogue price rules

Home / Blog / Update Magento catalogue price rules

Written by Giles Bennett

If you've a long or complicated catalogue, then on occasion when you try to update and reapply all your price rules via the admin panel you may find that things time-out. Whilst the updating should continue to run past this point, it may not.

Below is a quick a dirty script - upload it to the web root of your site, and then access through the Terminal over SSH (where you don't get any of those pesky timeout issues), and it'll reapply all your price rules in one go.

require 'app/Mage.php';
Mage::app('admin', 'store');
  $catalogPriceRule = Mage::getModel('catalogrule/rule');
} catch (Exception $e) {
Author : Giles Bennett

About the author

Giles Bennett built his first website in 1996, and is old enough to miss Netscape Navigator. Initially a lawyer, he jumped ship to IT in 2008, and after 5 years as a freelancer, he founded HummingbirdUK in 2013. He can be reached by email at