Jump to content

New Sub-categories - not showing


Recommended Posts

Hi,

I'm adding new subcategories to one of the category, but they are not showing in the category list (footer or left menu).

These new categories are visible in the DB, but the 'nleft' and 'nright' values are equal 0.

I also noticed that the parent category has limited range by nleft and nright and all values in this range have been already taken by existing subcategories, thus my new categories can't get category numbers. Is there a way to recalculate it? 

I'd really appreciate your answer.

 

Link to comment
Share on other sites

  • 1 month later...
  • 4 months later...

Hi,

Unfortunately it didn't help.

I've created new subcategory, added some products to it, but when I select it from the list of subcategories it shows:

"Category not found"

Any idea?

Moreover, when I checked the ps_category table in DB if found that this newly created table has values of nleft and nright equal to zero.

I'd appreciate your answer.

Looking forward to your reply.

image.png.1a3fda342781f6f0090cc522d098fcd0.png

image.png.a49288c6250060e52d20de8369a16636.png

Regards

B

 

Link to comment
Share on other sites

  • 1 year later...
  • 1 month later...

Hi,

 

I´m facing a problem in subcategories when i update from 1.6.1.9 to 1.6.1.24.

When i click to edit subcategories the backoffice comes back to home categories. I can see they all have 1 in the position, but i haven't change anything, just updated.

 

Can you please help solve it?

 

Attached are two images with the problem.

 

Thank you very much for any help

 

Categories.thumb.png.c1cf1b6c69d2af7d833c4b483888dae4.pngSubCategories.thumb.png.7ce6c0961b21fbd2ed5d35966c1709aa.png

Link to comment
Share on other sites

  • 4 weeks later...
On 1/23/2020 at 1:39 PM, NemoPS said:

open controllers/front/CategoryController.php.
in the initContent method, add this at the beginning:

Category::regenerateEntireNtree();

Access a category in the front office, then remove the modification. See if it's fixed.

Thank you for the information. I haven't tested your solution because i have built all the categories and sub-categories from scratch.

 

But i'll keep your solution to another time if it happens again, because it took me days to build it all over.

 

Thanks.

Link to comment
Share on other sites

  • 1 year later...
On 1/23/2020 at 4:39 PM, NemoPS said:

open controllers/front/CategoryController.php.
in the initContent method, add this at the beginning:

Category::regenerateEntireNtree();

Access a category in the front office, then remove the modification. See if it's fixed.

Hi, I have tested that but it didn’t work, I using ps 1.7.6.3 please help me.

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...