mgh-tech/module-parent-products

Magento2 Admin product form section listing parent products (grouped, configurable, bundle) for current product.

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:magento2-module

pkg:composer/mgh-tech/module-parent-products

1.0.0 2025-12-12 21:45 UTC

This package is auto-updated.

Last update: 2025-12-13 22:07:48 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

A Magento 2 admin module that displays a fieldset listing all parent products (Configurable, Grouped, Bundle) referencing the current product in the product edit form.

Overview

MGH_ParentProducts enhances the Magento admin product edit experience by providing a clear, ACL-protected overview of parent product relationships. This is especially useful for catalog managers and merchandisers working with complex product structures.

Problem & Solution

Ever found yourself lost in Magento's admin, desperately trying to figure out which configurable, grouped, or bundle products reference the simple product you're editing? Have you ever needed to navigate back to the product grid or, even worse, run a database query just to find a parent product?

If so, this module is for you. Now you get a clear, instant overview of all parent products referencing the current product, right in the admin product edit form.

No more wild goose chases.

Before Without parent product feature After Parent products grouped/bundle Parent product configurable

How It Works

When editing a product in the Magento admin:

  1. The module injects a collapsible fieldset "Parent Products" into the product form (if enabled and permitted).
  2. The fieldset displays a grid listing all parent products (ID, SKU, Name, Type, Relation, Edit link).
  3. The grid is dynamically populated via a provider interface, allowing for extensibility.
  4. The fieldset is hidden if the module is disabled or the admin user lacks ACL permission.

Key Features

  • Seamless admin integration: "Parent Products" grid on product edit form
  • Intelligent provider: Extensible logic for parent product discovery
  • ACL protected: Only visible to users with MGH_ParentProducts::parent_products permission
  • Configurable: Enable/disable via system configuration
  • Zero impact when disabled: No UI or performance overhead
  • Graceful fallback: Parent name falls back to SKU if empty
  • Unit tested: Ensures reliability and maintainability

Installation

Option 1: Via Composer (Recommended)

composer require mgh-tech/magento2-parent-products
bin/magento setup:upgrade

Option 2: Manual Installation

  1. Place the module under app/code/MGH/ParentProducts in your Magento 2 project:

    mkdir -p app/code/MGH/ParentProducts
    # Copy module files into this directory
  2. Register the module by running setup upgrade:

    bin/magento setup:upgrade
  3. Configure the module (see Configuration section below)

Configuration

The module provides the following configuration options under Stores > Configuration > MGH > Parent Products:

Setting Type Description
Enable Parent Products Fieldset Boolean Toggle the module on/off. Only active in admin area.

Configuration via Admin Panel

  1. Navigate to Stores > Configuration > MGH > Parent Products
  2. Enable the module (Enabled by default)

Configuration via Command Line

Alternatively, configure the module using the command line:

# Enable the module
bin/magento config:set mgh_parentproducts/general/enabled 1

Requirements

  • PHP >= 8.1
  • Magento 2.4.x

Compatibility

  • ✅ Magento Open Source 2.4.x
  • ✅ Adobe Commerce 2.4.x

License

This module is licensed under the MIT License. See the LICENSE.txt file for details.

Author

mgh-tech - Magento 2 Development & Solutions
GitHub: github.com/mgh-tech

Support & Contributions

For issues, questions, or contributions, please contact the author or your Magento integrator.