Magetno 1.x - How to check which templates and/or blocks are used on the page?

Sometimes you need to check which template and block is responsible for displaying the page's info.

The user area of the website

Magento has a built-in functional for developers which is quite often left aside.
It can be found in: System -> Configuration -> ADVANCED ->Developer -> Debug

The function Template Path Hints enables hints for the used templates.
The function Add Block Names to Hints enables hints for the used blocks.

With the help of these functions, hints will be shown.

Website's user area with enabled hints for the used templates and blocks
  • 1. Go to path: 'System -> Configuration -> ADVANCED ->Developer -> Debug'

    System -> Configuration -> ADVANCED ->Developer -> Debug
  • 2. In the dropdown menu 'Current Configuration Scope:' select 'Store View'.

    Select 'Store View'

    If 'Default config' is selected you won't be able to display used blocks.

    After selecting 'Store View' you will see

    'Store View' is selected.
  • 3. Don't forget to configure client restrictions. (if you won't configure these rules then the used blocks' hints will be available to all visitors of the previously selected e-shop.)

    Enter your current IP-address.

    Developer client restriction settings
  • 4. Enable the display of used blocks:
    path: System -> Configuration -> ADVANCED -> Developer -> Debug -> Template Path Hints
    and
    path: System -> Configuration -> ADVANCED -> Developer -> Debug -> Add Block Names to Hints

    Enable the display of used blocks
  • 5. Save the configuration!