sparkable / magento-mago-product-finder
Mago Assistant tool that finds products, parent products and product attributes
Package info
github.com/sparkable-agency/mago-product-finder
Type:magento2-module
pkg:composer/sparkable/magento-mago-product-finder
Requires
- php: ^8.3
- magento/framework: *
- magento/module-bundle: *
- magento/module-catalog: *
- magento/module-config: *
- magento/module-configurable-product: *
- magento/module-eav: *
- magento/module-grouped-product: *
- magento/module-store: *
- mago-assistant/magento2-mago: ^1.1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-02 14:31:00 UTC
README
A tool for the Mago admin assistant. It finds products and product attributes. It writes nothing.
| Action | What it does |
|---|---|
find_products |
Counts and lists products by SKU, attribute filters, category or parent product, with the values of chosen attributes. |
parent_products |
Finds the configurable, grouped or bundle parents of a child SKU. |
list_attributes |
Finds product attributes by code, label or option label. An option matches when its label contains the search word. |
Example questions:
- "Give me five red products."
- "Which products are siblings of SKU gear-44t-red?"
- "Which attributes have an option with “Anthracite”?"
Installation
The package is on Packagist: sparkable/magento-mago-product-finder.
composer require sparkable/magento-mago-product-finder
bin/magento module:enable Sparkable_MagoProductFinder
bin/magento setup:upgrade
Attribute access
The module adds two settings that say what the assistant may change. Other Mago tools, such as sparkable/magento-mago-bulk-update, obey them.
- Store default: Stores > Configuration > Mago > Product Attribute Access.
- Per attribute: Stores > Attributes > Product > Advanced Attribute Properties.
Filters
A filter has a field, a condition_type and a value, as in Magento search criteria. An option label works as a value, in the language of any store view. The conditions neq, nin and nlike also match products without a value.
Permissions and privacy
- The admin user needs
Magento_Catalog::products.list_attributesalso needsMagento_Catalog::attributes_attributes. - All returned fields are catalog data and cross as they are. Admin links cross as tokens.
Tests
vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist vendor/sparkable/magento-mago-product-finder/Test/Unit