Acessando um bloco estático Magento a partir de um arquivo de modelo .phtml
<?php// Retrieve the layout object$layout = Mage::getSingleton(‘core/layout’);// Generate a CMS block object$block = $layout->createBlock(‘cms/block’);// Set the block ID of the static block$block->setBlockId(‘block-id-in-magento’);// Write the static block content to screenecho $block->toHtml();?>
Continuar lendo