Mikkel Madsen Posted March 17, 2016 Share Posted March 17, 2016 Hello, I accidentally placed one of my main categorys in its own subcategory. So now the whole category is gone, I cant seem to fix the problem. And now, when I edit a product which had that category, then I cannot save it or even see the products category page. Hope some of you guys can help me out. Link to comment Share on other sites More sharing options...
musicmaster Posted March 17, 2016 Share Posted March 17, 2016 (edited) This may be a nleft / nright problem. You might try searching the forum for those terms. Edited March 17, 2016 by musicmaster (see edit history) Link to comment Share on other sites More sharing options...
shokinro Posted March 20, 2016 Share Posted March 20, 2016 it may also cause dead-loop issue when calculate number of product in a category recursively. you have to change the category-parent relationship from back office - catalogue page or may have to use database tool to correct the relationship in database table directly. ps_category Link to comment Share on other sites More sharing options...
Mikkel Madsen Posted March 28, 2016 Author Share Posted March 28, 2016 it may also cause dead-loop issue when calculate number of product in a category recursively. you have to change the category-parent relationship from back office - catalogue page or may have to use database tool to correct the relationship in database table directly. ps_category Thanks for the answer. Can you please explain how to change the category parent relationship? Link to comment Share on other sites More sharing options...
musicmaster Posted March 28, 2016 Share Posted March 28, 2016 Can you please explain how to change the category parent relationship? The ps_category table has a field id_parent. That is the id_category of its parent category. But - as I mentioned - changing that value is not guaranteed to solve the problem as nleft-nright problems may linger behind. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now