Skip to content

Instantly share code, notes, and snippets.

@jreinke
Last active November 8, 2015 03:40
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jreinke/1808f2eb40b92e8419c9 to your computer and use it in GitHub Desktop.
Save jreinke/1808f2eb40b92e8419c9 to your computer and use it in GitHub Desktop.
Magento: Disable flat catalog category on the fly
<?php
/** @var $collection Mage_Catalog_Model_Resource_Category_Collection */
$collection = Mage::getModel('catalog/category', array('disable_flat' => true))->getCollection();
// ... custom stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment