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:
  1. //if (null === $parentPath) {  
  2. //    $parentPath = $this->getResource()->getCategoryParentPath($category);  
  3. //}  
  4. //elseif ($parentPath == '/') {  
  5.     $parentPath = '';  
  6. //}  
Step 2:
Now re-index Catalog URL Rewrites in Index Management. That's it you are done.

Comments

Popular Posts

Magmi Single and Multiple Category Importer