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.
Comments
Post a Comment