mgh-tech/module-parent-products
最新稳定版本:1.0.0
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/magento2-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 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.
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2025-12-13