Jump to content

Delete 2 root categories?


Lucky

Recommended Posts

Can I delete the 2 root categories? Or can I give them another (negative?) ID?

I need to import a .csv file that is exported by another software and it contains categories with IDs 1 and 2, which are already used by the 2 root categories. These IDs are also used in the products.csv so I can't skip those lines or give them another number because then I need to rename all products.category_id every time there's an export/import (every 24 hours).

So, can I delete the 2 root categories? Or can I give them another (negative?) ID?

Or how to make sure ID's 1 and 2 become available to imported categories?

Thanks for any quick help.

Link to comment
Share on other sites

If I import the new categories without keeping their original ID then my products with category_id 1 and 2 won't be in the right category anymore. And also all other products will shift 2 categories.

And I can't change the products.category_id before the import because they are exported from a third party software every 24 hours.

So how can I solve this?

Edited by Lucky (see edit history)
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...