Category

This module adds enhancements to category functionality. It provides the possibility to add a category group id to each category that is displayed on the front end and can help with styling specific categories.

 

Installation

This module is part of MageSuite metapackage

 

Installation if metapackage is not used:

composer require "creativestyle/magesuite-category" ^1.0.0

Admin settings

Category group ID can be added in the admin panel per each category, in the Design tab:

Catalog -> Categories -> [category] -> Design

In the Category group field add an additional category's identifier to be used by developers to add e.g. CSS classes

 

 

Backend

protected function getProductCountInAllCategories()

Internal method $category->getProductCount() returns only amount of categories in a specific category without taking subcategories into account, this method returns counts also with subcategories.

 

Backend documentation need to be added

Frontend

category_identifier is passed in Navigation module:

magesuite-content-constructor-frontend/DataProviders/NavigationDataProvider.php

 

For example for category Damen category group - damen_test