Skip to content

Instantly share code, notes, and snippets.

@Sekiphp
Created April 2, 2019 09:59
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 Sekiphp/bf645c4b1a2eca2cf04a9a017cdd9bf3 to your computer and use it in GitHub Desktop.
Save Sekiphp/bf645c4b1a2eca2cf04a9a017cdd9bf3 to your computer and use it in GitHub Desktop.
Magento 1 - get all active store IDS
$allStores = Mage::getModel('core/store')
->getCollection()
->addFieldToFilter('is_active', ['eq' => 1])
->getAllIds();
var_dump(implode(',', $allStores));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment