mgh-tech/module-parent-products 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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

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.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固