Block created inside custom module doesn't show up in the fron-end.
Namespace: Fmat
Module: FtPrices
Custom Block file: Fmat/FtPrices/Block/Product/View/Tierprices.php
custom block php file:
<?php
class Fmat_FtPrices_Block_Product_View_Tierprices extends Mage_Core_Block_Template {
}
?>
block's definition in module's config.xml (...etc/config.xml)
<global>
(...)
<blocks>
<fmat_ftprices>
<class>Fmat_FtPrices_Block_Product_View_Tierprices</class>
</fmat_ftprices>
</blocks>
</global>
in module's layout file:
<catalog_product_view>
<reference name="product.info">
<block type="fmat_ftprices/product_view_tierprices" name="product.custom.tierprices" as="custom_tierprices" template="fmat/ftprices/product/view/tierprices.phtml"/>
</reference>
</catalog_product_view>
in catalog/product/view.phtml
I get the block via:
echo $this->getChildHtml('custom_tierprices');
Once I change block type in module's layout file from type="fmat_ftprices/product_view_tierprices"
to type="catalog/product_view"
the template shows up in the front end. Can you see any errors in my files?
I'd appreciate your input.