I want to get block name from where price.phtml
called.Also I cant find block name from catalog.xml
.I fount this function but I don't know block name for this.
<?php echo $this->getPriceHtml($_product); ?>
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI want to get block name from where price.phtml
called.Also I cant find block name from catalog.xml
.I fount this function but I don't know block name for this.
<?php echo $this->getPriceHtml($_product); ?>
You can use hints for check block for each template:
http://insync.co.in/how-to-enable-template-path-and-block-name-hints-in-magento-commerce/
or You can use xdebug for check all of it
or You can use this: Mage::app()->getRequest()->getModuleName()
fir check module name, and search for block You need
You can also display instance of this
in phtml
or use $this->getNameInLayout();
Use this:
$blocks = Mage::app()->getLayout()->getAllBlocks();
This will give you an array with the block instances. To get only the names use this:
$blockNames = array_keys($blocks);
go to price.phtml and add below code to top of file it will show you block name of that file
$this->getNameInLayout();