{{skin url='images/media/about_us_img.jpg'}}
Friday, 11 January 2013
How to call staick block in your template or .phtml files
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('my_static_block_name')->toHtml() ?>Wednesday, 9 January 2013
Phtml page call in cms page in magento
{{block type="core/template" template="custompage/homecontent.phtml"}}
Product Available (In stock/Out of stock)
<?php
$thisProduct = Mage::getModel('catalog/product')->load($_product->getId());
if($thisProduct->isAvailable()):
echo $this->__('In stock');
else:
echo $this->__('Out of stock');
endif;
?>
Thursday, 3 January 2013
Wednesday, 2 January 2013
Subscribe to:
Posts (Atom)