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
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
- 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
- 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.
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.
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.
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.
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
Integration tests
| 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.
More from run-as-root
View vendorHyva Theme compatibility for zwernemann/module-withdrawal
Magento 2 EU Withdrawal Button Module - Adds a withdrawal/revocation button for orders in compliance with EU Directive (EU) 2023/2673
Provides message queue retry processing functionality via RabbitMQ's dead letter exchange.
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.