Template path hints in magento


For fix condition we need to open below file in our editor
app/code/core/Mage/Core/Block/Template.php

now you need to findout this method getShowTemplateHints from Template.php

Before our getShowTmplateHints method return its value we need to put some code for template hints.

$token = Mage::app()->getRequest()->getParam(‘token’,false);

if($token==’hint’){
self::$_showTemplateHints = true; // template path
self::$_showTemplateHintsBlocks = true;
//block name
}

 

Now goto frontside and open url of our store. And when ever you want hint of template path

add ?token=hint in you url

for example

http://www.mage.com/store/product.html

change to template hint

http://www.mage.com/store/product.html?token=hint

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s