Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. $path = 'carriers/tablerate/active';
  2. $config = Mage::getModel('core/config_data')->load($path, 'path');
  3. $config->setValue('1')->setPath($path);
  4. $config->save();
  5.  
  6. $block = Mage::getModel('cms/block');
  7. $block->setTitle('Some title here');
  8. $block->setIdentifier('identifier_here');
  9. $block->setContent('This is the content');
  10. $block->setStatus(1);//enabled
  11. $block->setStores(array(0)); //make it available in all stores
  12. $block->save();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement