Showing posts with label path. Show all posts
Showing posts with label path. Show all posts

Wednesday, October 5, 2011

How to enable template path hints in magento admin panel?

1. Admin > System > Configuration
2. Switch your "Current Configuration Scope" to your store (’Main Website’ on a stock build)
3. Click on the Developer Tab (bottom left) and find the Debug area
4. Template Path Hints: Yes (also might want to add Block Names to hints)

How to remove parent category path from sub category in magento URL?

Step 1:
Edit "/app/code/core/Mage/Catalog/Model/Url.php"
Around line 805 comment the below lines:
//if (null === $parentPath) {
//    $parentPath = $this->getResource()->getCategoryParentPath($category);
//}
//elseif ($parentPath == '/') {
    $parentPath = '';
//}
Step 2:
Now re-index Catalog URL Rewrites in Index Management. That's it you are done.

Thursday, September 22, 2011

How to Enable template path hints for Magento Admin Panel?

When developing a new Magento Admin theme, one of the tools that will make your life easier is the template path hints. One thing this feature is missing, is the ability to show the template path hints on the admin panel. Whether you’re working on a custom admin theme or module or you’re just curious about what’s under the hood, being able the enable the hints in the admin would be a cool feature. Here is the easy way to accomplish this:

Run the following query to enable the hints:
INSERT INTO core_config_data SET scope = 'default', scope_id = 0,
            path = 'dev/debug/template_hints', value = 1;
INSERT INTO core_config_data SET scope = 'default', scope_id = 0,
            path = 'dev/debug/template_hints_blocks', value = 1;
Clear the config cache, Thats it. You have template path hints in the admin. To disable run a sql query to set the value to 0.