Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $path = 'carriers/tablerate/active';
- $config = Mage::getModel('core/config_data')->load($path, 'path');
- $config->setValue('1')->setPath($path);
- $config->save();
- $block = Mage::getModel('cms/block');
- $block->setTitle('Some title here');
- $block->setIdentifier('identifier_here');
- $block->setContent('This is the content');
- $block->setStatus(1);//enabled
- $block->setStores(array(0)); //make it available in all stores
- $block->save();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement