Skip to content

Instantly share code, notes, and snippets.

@steve-ross
Created March 25, 2014 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steve-ross/9763322 to your computer and use it in GitHub Desktop.
Save steve-ross/9763322 to your computer and use it in GitHub Desktop.
mage get all ids
$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