![]() |
Remove parent categories from subcategory in URLs in 1.9.2.4
Magento version is 1.9.2.4.
I have tried following solution which doesn't work for me. Step 1: Go to app/code/core/Mage/Catalog/Model/Url.php copy this file to app/code/local/Mage/Catalog/Model/Url.php because it is core Magento file so that we have to copy that file into the app/code/local. Step 2: Now search for the getCategoryRequestPath($category, $parentPath) around line 698 in Magento ver. 1.9.2.4 Step 3: Search if (null === $parentPath) around line 717 and comment the line as below: Code:
/* if (null === $parentPath) {Step 5: Refresh your browser cache and navigate again now you will see only the Sub Category in Url not the Parent Category just like as: http://www.cheapglasses.net/cheap-glasses. |
| All times are GMT +8. The time now is 10:54 AM. |
Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.