Overriding a Core File in magento

If you are Going to Override a core File

For Ex: app\code\core\Mage\Catalog\Block\Navigation.php

If you want the Navigation Class to be Override.

Please do as follows

1. create the same folder structure Mage\Catalog\Block\
2. Copy the Navigation.php File to this Folder and make it like this Mage\Catalog\Block\Navigation.php
3. Place this Folder structure to this path: app\code\local

Thats it the Core is Overrided. you can do any changes with navigation.php.

So Now you are not touching the Core Files.

Note: If you Find my Post useful please click on the Thanks Icon

This question is now closed

Written By