Иногда бывает необходимо разобраться какие файлы отвечают за работу конкретной секции админпанели magento. Но по умолчанию мы можем включить режим отладки только для frontend части системы.

Для решения этой проблемы мы можем использовать несколько способов:

Способ первый.

1. Подключаемся к базе данных magento (Например используем Navicat MySQL Lite)

2. Формируем следующую query:


INSERT INTO core_config_data (scope, scope_id, path, value)
VALUES ('default', 0, 'dev/debug/template_hints', 1),
('default', 0, 'dev/debug/template_hints_blocks', 1);

Запрос добавляет 2 различных значения в таблицу core_config_data

Все готово.

Теперь, если мы хотим вернуть все как было:


UPDATE core_config_data SET value=0 WHERE scope='default' AND scope_id = 0 
AND path ='dev/debug/template_hints'

Или включить опять:


UPDATE core_config_data SET value=1 WHERE scope='default' AND scope_id = 0 
AND path ='dev/debug/template_hints'

Способ второй.

1. Копируем


/app/code/core/Mage/Core/etc/system.xml

в


/app/code/local/Mage/Core/etc/system.xml

находим строки:


<template_hints translate="label">
    <label>Template Path Hints</label>
    <frontend_type>select</frontend_type>
    <source_model>adminhtml/system_config_source_yesno</source_model>
    <sort_order>20</sort_order>
    <show_in_default>0</show_in_default>
    <show_in_website>1</show_in_website>
    <show_in_store>1</show_in_store>
</template_hints>
<template_hints_blocks translate="label">
    <label>Add Block Names to Hints</label>
    <frontend_type>select</frontend_type>
    <source_model>adminhtml/system_config_source_yesno</source_model>
    <sort_order>21</sort_order>
    <show_in_default>0</show_in_default>
    <show_in_website>1</show_in_website>
    <show_in_store>1</show_in_store>
</template_hints_blocks>

меняем


<show_in_default>0</show_in_default>
</pre>

на


<show_in_default>1</show_in_default>
</pre>

Готово.