Snippets with the tag: block

Display new products on home page

Description

code snippet to display new products on home page

Code

{{block type=“catalog/product_new” name=“home.catalog.product.new” alias=“product_homepage” template=“catalog/product/new.phtml”}}

Call Static Block

Description

Call Static Block

Code

$this->getLayout()->createBlock('cms/block')->setBlockId('block-name')->toHtml();

Show image cms

Description

Show image using current skin path (CMS)

Code

Show CMS block in html

Description

Show CMS block in html

Code

getLayout()->createBlock('cms/block')->setBlockId('block_identifier')->toHtml(); ?>