Hello Everyone.
I have magento site running for past 4 years. by mistake admin added a root category and this caused the main category of the site to disappear from front page. problem I have is this ..
I can not remove it .. there is no delete button in admin section to remove it .
I was not able to move it around, directly from database , I changed its Level , and now I can move it around but still can not remove it . odd part is that , this category has a ID ( 2 ) . and because of its hierarchy if i change my store view ( i have multiple language ) keeps showing this category only and non of the categories are visible .
please let me know how I can fix this issue.
Thanks.
Got it fixed. issue was root category was renamed and managed to correct it .
Thanks.
To resolve this issue with the root category in Magento, follow these steps:
Check the Store Configuration:
Change Category Assignment in Store View:
Reassign Products to the Correct Categories:
Check Database for Root Category ID:
Clear Cache and Reindex:
Backup and Try to Delete via Database:
If you’re still facing issues, it’s recommended to contact a Magento developer to assist, as working directly with the database can sometimes cause unintended consequences.