定制 mgh-tech/module-parent-products 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

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/magento-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 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 我们能提供哪些服务?
定制开发 / 二次开发

基于 mgh-tech/module-parent-products 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 140
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 21
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2025-12-13