Jump to content

Convert Category to root category?


Recommended Posts

  • 1 year later...

Hi,

 

This topic is a bit old, but solving it may help a lot of people.

 

I have the same issue in PrestaShop 1.6.1.1, which, I think, is not very different from your version regarding multistore management.

 

The issue is that the backoffice does not allow to set/declare an existing category as a root category.

It seems that a category can be declared as a root category only when it is created via "Categories" > "Add a new root category".

 

However, I found that editing the `prestashop_category` MySQL database table *might* solve our issue. For the concerned `id_category`, I changed the `is_root_category` column from 0 to 1. This simple change *seems* to work. But there might be other changes to do in the database that only developpers can recommend because they have a global knowledge of PrestaShop internals. And this single change might break some things in PrestaShop, so if you do it, it is at your own risk.

 

I hope that a developper will come across this topic and share his point of view.

 

Best regards.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...