run-as-root / magento2-product-grid-category-filter

run-as-root/magento2-product-grid-category-filter

Provides the possibility to filter products by categories in Magento Admin Product Grid

magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Fail Tests: Fail Security: Fail MIT

Magento 2
PHP
PHP
packagist
build

Overview

This open-source Magento 2 module enhances the functionality of the Magento Admin Product Grid by introducing the ability to filter products by categories directly from the product grid interface.
By enabling category-based filtering, users can quickly and easily find products within specific categories.

After installing the module you will see a new column in the product grid called "Categories". This column will display the categories that the product is assigned to.

An example of the category filter in action is shown below:

[image: category-filter-opened.png]

[image: category-filter.png]

An example of the category column on the product grid is shown below:
[image: product-grid.png]

Installation

Via Composer

  1. Run the following command in your Magento 2 root directory to install the module via Composer:
composer require run-as-root/magento2-product-grid-category-filter
  1. Enabling the module by running:
php bin/magento module:enable RunAsRoot_ProductGridCategoryFilter

Configuration

No additional configuration is required after installation. The category filter will automatically appear in the Admin Product Grid, allowing you to filter products by categories immediately.

Support

This module is provided as-is, but we welcome contributions and feedback on GitHub. Please feel free to submit issues or pull requests to improve the module.

License

This module is open-source and released under the MIT Licence.

No changelog yet

The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.

Versions
Version Stability QA Status Compatibility Released
1.0.0 stable Fail Magento 2.4.7-2.4.9 Details 2024-03-08 17:38:27

Requires 5

Package Constraint
php ^8.1
magento/framework 103.0.*
magento/module-store 101.1.*
magento/module-catalog 104.0.*
magento/module-ui 101.2.*

Requires-dev 10

Package Constraint
phpunit/phpunit ~9.5.20
phpmd/phpmd ^2.13
phpstan/phpstan ^1.10
squizlabs/php_codesniffer ~3.9.0
slevomat/coding-standard ^8.8
sebastian/phpcpd ^6.0
pdepend/pdepend ^2.13
bitexpert/phpstan-magento ^0.30
roave/security-advisories dev-master
magento/magento-coding-standard 32

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Fail 11 2 errors, 9 warnings (ruleset: Magento2)
PHPMD Warning 1 1 rule violation (MissingImport:1)
Cpd Pass 0
Composer validate Pass 0

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 1 1
2.4.9 Error not tested

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Fail 14 14 advisories (high:8, low:2, medium:4); 8 high+, 4 medium/unknown, 2 low
Malware scan Pass 0
License
MIT

More from run-as-root

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.