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());
Magento
Set Magento website template, skin and layout programmatically
[code language=”php”] $groups[‘theme’][‘fields’][‘template’][‘value’] = ‘template_name’;
· 5 min read
Related posts
Magento
Magento 1: Export manufacturers CSV by specific store view
This post will guide you on how you can export the manufacturer list (Magento 1.9) to CSV file. In this script, I am filtering the list by store view. Let’
Magento
Magento 1: Export catalog categories for a specific store view
In this post you will learn how you can export Magento 1.9 categories for a specific store view as CSV. For example, you have Arabic store view with ID 7, and y
Magento
Search Magento products by product labels
Project Overview: Task was to develop a Product Labels Magento extension. Where admin can create product labels by uploading an image, enter label title and att