Go to app/code/core/Mage/Catalog/Model/
Open Url.php and go to line no 632 and comment(//) the below line
If you are using Magento 1.5 then please go to line number 797 instead of 632
//if (null === $parentPath) {
//$parentPath = $this->getResource()->getCategoryParentPath($category);
//}
//elseif ($parentPath == '/') {
$parentPath = ''; //('Don't comment it')
//}
Now save and upload it.
Now login to admin panel of your site then go to System->Config->Index Management and click on select all then select Reindex Data from the Action Dropdown then click on submit.
Does this really work? Do you have an example of a site where it is working?
ReplyDeleteDo you do freelance Magento work?
Thanks
works perfectly. tested on magento 1.4.1.1!!
ReplyDeletegreat job!
Hi!
ReplyDeleteThis is really great! However, what I need is to remove only the very first main cat and still leave the subcats. For example: /main_cat/sub_cat/another_subcat/page.html, how can I remove only the "main_cat" so I can have /sub_cat/another_subcat/page.html
Your help is highly appreciated!
Thanks
Doesnt work in 1.5. The code is all different. Anyone have a fix for 1.5??
ReplyDeleteI need the reindex steps for 1.3.2. There is not a System->Config->Reindex Data dropdown menu option.
ReplyDeletePlease tell me where to go to reindex data on my version.
is there any alternate of editing the core? I don't want the code change is there any other option to do this?
ReplyDeleteThanks a lot !!
ReplyDeleteThis solution is not working for Magento 1.13.1.0.
ReplyDeleteHas anyone got success to make it working with Magento 1.13.1.0. ?
Thanks