We have following category and sub-category in our store.
Category: http://yoursite.com/category.html
Sub-category: http://yoursite.com/category/sub-category.html
Is it possible to access sub-category listing page using below URL
Sub-category: http://yoursite.com/sub-category.html
Case 1 : Access sub-category listing page, even if its main category id disabled
Case 2: Access sub-category listing page without using main category in URL
Also if my product is assigned to any sub-category
and set the visibility to Catalog
, will it appear on sub-category listing page when its category id disabled ?
How can I achieve this ?
Thanks
Best Answer
In Admin:
Programmatically:
Open the class
Mage_Catalog_Model_Url
and comment the below lineunder
function getCategoryRequestPath($category, $parentPath)
You can always create a local of your file, just in order to avoid over riding the core files