How to enable Template Path and Block Name hints in Magento Commerce

Enabling Template Path and Block Name hints are one of the most important activities of web designers and developers.This article will tell you how to deal with the same in Magento.Magento contains different .phtml files for different section of the user panel. To work in some section of Magento template developer need to know in which .phtml file the code of that template section is stored. Block name is important to know because it tells which block has been used for a particular areas of the screen. So for this reason they will need the Template Path and Block name hints to work in those sections.


Steps to get Template Path Hints:

  1. Login to Magento Admin panel
  2. Go to System->Configuration.
  3. The Template Path and Block name will only appear for current website. So change the Current Configuration Scope to ‘Main Website’.
  4. Go to the Advanced section and click on Developers.
  5. Expand the Debug tab.
  6. Set the Template Path Hints to ‘Yes’.
  7. Click on ‘Save Configuration’ button.
  8. Open Magento user panel and see the template path hints. It shows each file where the page element is located in.

integrate magento with erp

[responsive]magento template path hints[/responsive]

 

Steps to get Block Name Hints:

  1. Login to Magento Admin panel
  2. Go to System->Configuration.
  3. The Template Path and Block name will only appear for current website. So change the Current Configuration Scope to ‘Main Website’.
  4. Go to the Advanced section and click on Developers.
  5. Expand the Debug tab.
  6. Set the Block Name Hints to ‘Yes’.
  7. Click on ‘Save Configuration’ button.
  8. Open Magento user panel and see the Block name hints. 


integrate magento with erp

[responsive]magento template path hints[/responsive]

 

Restrict Other users from viewing these hints: – These hints should not be viewable to general users, especially if the website is in live environment. Using below steps you can allow only few IP addresses who can view Template Path and Block Name hints.

Steps:

  1. Login to Magento Admin panel
  2. Go to System->Configuration.
  3. The Template Path and Block name will only appear for current website. So change the Current Configuration Scope to ‘Main Website’.
  4. Go to the Advanced section and click on Developers.
  5. Expand the Developer Client Restrictions tab.
  6. Enter the IP addresses separated by comma which will be allowed to see these Template Path and Block Name hints.
  7. Click on the ‘Save Configuration’ button.


integrate magento with erp

Hope you find this topic of ours on Magento template path hints interesting and useful.So don’t forget to share it and keep visiting our Blog for more interesting topics like this.

Subhajit Goswami

Subhajit is a Business Development Professional with ability in managing Customer Accounts and Channel Business. His specific interest is in the areas of Retail Industry and ecommerce, Multichannel eRetail and ERP Systems.