Jump to content

Problem with module categories


sildav

Recommended Posts

Hello to everyone, i have prestashop 1.7.6.3 and when i go to my module manager i have a problem. I noticed that if i search by category all module categories are 0, everything is moved to "others" category (i have 61 modules there) and "theme module" (i have 14 modules there). Why all modules are not in their categories? 

Thanks
Nicola

Link to comment
Share on other sites

Add the below line at the starting of findModuleCategory() function in the file : src\PrestaShopBundle\Service\DataProvider\Admin\CategoriesProvider.php

The line needed to be added:-

$moduleCategory = $installedProduct->attributes->get('categoryName');
$moduleCategoryParent = $this->getParentCategory($moduleCategory);

A line needs to be removed:-

$moduleCategoryParent = $installedProduct->attributes->get('categoryParentEnglishName');

Clear the cache and try again it will work fine.

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