mgh-tech/module-parent-products
Composer 安装命令:
composer require mgh-tech/module-parent-products
包简介
Magento2 Admin product form section listing parent products (grouped, configurable, bundle) for current product.
README 文档
README
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.
How It Works
When editing a product in the Magento admin:
- The module injects a collapsible fieldset "Parent Products" into the product form (if enabled and permitted).
- The fieldset displays a grid listing all parent products (ID, SKU, Name, Type, Relation, Edit link).
- The grid is dynamically populated via a provider interface, allowing for extensibility.
- 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_productspermission - 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/magento-parent-products bin/magento setup:upgrade
Option 2: Manual Installation
-
Place the module under
app/code/MGH/ParentProductsin your Magento 2 project:mkdir -p app/code/MGH/ParentProducts # Copy module files into this directory -
Register the module by running setup upgrade:
bin/magento setup:upgrade
-
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
- Navigate to Stores > Configuration > MGH > Parent Products
- 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 parentproducts/general/enable 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.
mgh-tech/module-parent-products 适用场景与选型建议
mgh-tech/module-parent-products 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 140 次下载、GitHub Stars 达 9, 最近一次更新时间为 2025 年 12 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 mgh-tech/module-parent-products 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mgh-tech/module-parent-products 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 140
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2025-12-13