Search code examples
phpmagentoopenx

add code snippet in magento core


I'm running magento 1.4 and I'm trying to display an overlayer banner on all the pages in my magento store. In which file should I add the code snippet for the banner so that the it gets displayed on all pages? BTW: the code snippet is actually some a short php if function + an OpenX Javascript Tag


Solution

  • From this search:

    1. Go to /admin/cms_block/ and add a block. Remember the identifier.
    2. In your code add <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('identifier')->toHtml() ?>

    There you go…