Created
March 25, 2014 14:47
-
-
Save steve-ross/9763322 to your computer and use it in GitHub Desktop.
mage get all ids
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
$ids = Mage::getModel('catalog/product') | |
->getCollection() | |
->addAttributeToSelect('entity_id') | |
->addFieldToFilter('status', array('eq'=>'1')) | |
->addFieldToFilter('type_id', array('in'=>array('configurable', 'simple'))) | |
->getAllIds(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment