can I use install scripts to configure multiple stores and views?

Can I find any examples? thanks


To add a store use the code below:

/** @var $website Mage_Core_Model_Website */
$website = Mage::getModel('core/website');

/** @var $storeGroup Mage_Core_Model_Store_Group */
$storeGroup = Mage::getModel('core/store_group');

/** @var $store Mage_Core_Model_Store */
$store = Mage::getModel('core/store');

Thanks to Zyava for providing this answer

  • 1
    Sorry, is that an install or data script? thanks – Antonio Pedicini Jan 27 '15 at 14:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.