Tag Archives: block

Show Customer Review on Product Page Magento

ShareTo display basic reviews on a product page, you want to add the following line to your catalog.xml within catalog_product_view. “<block type=”review/product_view_list” name=”product.info.product_additional_data” as=”reviews” template=”review/product/view/list.phtml”/>”   And Add below line   <?php echo $this->getChildHtml(‘reviews’) ?>   to your catalog/product/view.phtml template

How do I call a static block

ShareHow to call staic block any XML file <reference name=”left”> <block type=”cms/block” name=”sample_block” before=”-“> <action method=”setBlockId”><block_id>sample_block</block_id></action> </block> </reference> How to call staick block in your template or .phtml files <?php echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘my_static_block_name’)->toHtml() ?> How to call static block in CMS->Pages {{block type=”cms/block” block_id=”your_block_id”}}

%d bloggers like this: