Search by

sparkable / magento-mago-product-finder

gerritsecommerce

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

Statistics

Installs: 29

Dependents: 1

Suggesters: 0

Stars: 1

Open Issues: 0

1.1.0 2026-11-27 09:07 UTC

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_attributes also needs Magento_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