定制 fidesio/attribute-index-fix 二次开发

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

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

fidesio/attribute-index-fix

Composer 安装命令:

composer require fidesio/attribute-index-fix

包简介

N/A

README 文档

README

Magento 2 supports custom source models for attributes except for indexing them into the catalog_product_index_eav table (which feeds layered navigation).

The original problem is found in \Magento\Catalog\Model\ResourceModel\Product\Indexer\Eav\Source:302 where it ensures that the values saved exist in the eav_attribute_option table. When using that custom source model, those values do not exist.

The first / easy solution is to comment out those lines. That doesn't work for production so a more durable method needs to be had. While using a preference is not preferrable, this will solve the problem in the short term.

After some research and many hours spent, I found that @maderlock has a good fix: magento/magento2#417 (comment)

Here is how to get this running:

  • composer require fidesio/attribute-index-fix
  • php bin/magento module:enable SwiftOtter_AttributeIndexFix
  • php bin/magento cache:clean

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 5
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2017-04-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固