Alternate method: $groups['theme']['fields']['template']['value'] = 'template_name'; $groups['theme']['fields']['skin']['value'] = 'skin_name'; $groups['theme']['fields']['layout']['value'] = 'layout_name'; $groups['theme']['fields']['default']['value'] = 'template_name'; Mage::getModel('adminhtml/config_data') ->setSection('design') ->setWebsite('your_website') ->setGroups($groups) ->save(); $installer->setConfigData('design/theme/template', 'facebook', 'stores', $store->getId()); $installer->setConfigData('design/theme/skin', 'facebook', 'stores', $store->getId()); $installer->setConfigData('design/theme/layout', 'facebook', 'stores', $store->getId()); $installer->setConfigData('design/theme/default', 'facebook', 'stores', $store->getId());
Set Magento Template, Skin & Layout
[code language=”php”] $groups[‘theme’][‘fields’][‘template’][‘value’] = ‘template_name’;
Related posts
Magento
Magento get store by storecode
Learn how to efficiently retrieve a Magento 1 store by its unique store code without unnecessary loops. This guide explains how to use Magento’s built-in Mage::app()->getStore() method, handle invalid store codes safely, and improve code performance and memory efficiency in multi-store environments.
Magento
Magento: Render static block in a phtml file
Learn how to render a Magento 1 static block directly inside a PHTML template using the cms/block block type. This guide covers how to create and load CMS static blocks, use block identifiers, render content with PHP, troubleshoot common display issues, and choose between PHTML, layout XML, and CMS directives.
Magento
How to change Magento Base URL
Learn how to configure and change the Magento Base URL, secure and unsecure URLs, HTTPS settings, domain migrations, localhost installations, and common URL problems. This guide also covers cache clearing, database updates, and essential SEO checks after changing your Magento store URL.