Last active
November 13, 2024 13:23
-
-
Save jreinke/1808f2eb40b92e8419c9 to your computer and use it in GitHub Desktop.
Magento: Disable flat catalog category on the fly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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