Created
April 2, 2019 09:59
-
-
Save Sekiphp/bf645c4b1a2eca2cf04a9a017cdd9bf3 to your computer and use it in GitHub Desktop.
Magento 1 - get all active store IDS
This file contains hidden or 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
$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