Template path hints in magento is boon for magento template designer but you can not enable it on the admin panel of the magento , so here is the simple trick by which you can enable the template path hints in admin
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);
Dont forget to add suffix
To turn this off once you are done, either delete these rows from the database, or set the values to 0. (If you set them to 0 you can later reactivate this by just swapping it back to 1, but the insert statement won’t work any more.