定制 yireo/magento2-easier-extension-attributes 二次开发

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

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

yireo/magento2-easier-extension-attributes

Composer 安装命令:

composer require yireo/magento2-easier-extension-attributes

包简介

N/A

README 文档

README

This module tries to make implementing Magento 2 Extension Attributes easier by offering generic DI plugins that hook into various repositories.

Current features

  • Creation of plugins for various entities (See etc/di.xml for a listing of current repositories supported)
  • Saving simple Extension Attributes in the table of the original entity (by copying the Extension Attribute to a data property of the entity and vice versa)

Example

For an example implementation, see YireoTraining_EasierExtensionAttributesExample, more specifically its easier_extension_attributes.xml which complements the regular extension_attributes.xml. For extending the MSI Source entity, it adds a column example to the source database table, which is then automatically filled with the Yireo EasierExtensionAttributes module.

TODO

  • Integration tests for getList, save and getById
  • Integration tests for additional repositories
  • Connect your own simple Extension Attribute with a separate table
  • Connect your own Extension Attribute with a custom repository
  • Connect your own complex Extension Attribute
  • Try to merge extension_attributes.xml with easier_extension_attributes.xml to cleanup code
  • Automatically add extension attributes to frontend and backend forms

统计信息

  • 总下载量: 857
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2022-07-23