interjar/module-configurable-child-visibility 问题修复 & 功能扩展

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

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

interjar/module-configurable-child-visibility

Composer 安装命令:

composer require interjar/module-configurable-child-visibility

包简介

Magento 2.x Extension to prevent Out of Stock Children being removed from Used Product Collections.

README 文档

README

Magento 2.x Extension to Fix a few issues surrounding Configurable child products visibility when out of stock.

Various Related Core Issues:

Possibly some more too..

Whats it all about?

So, in Magento we have an option in config:

Stores > Configuration > Catalog > Inventory > Display Out Of Stock Products (Y/N)

This implies that we'll get to see any out of stock products at any point where we would expect. For a lot of people - me included, it implies we'd get to see child options etc.

Unfortunately its not the case. There are quite a few places where products are removed from various collections due to the stock_status value.

In this extension I've attempted to stop this from happening if the aforementioned configuration is set to Yes.

Note

This is really temporary solution, we're hoping to get the issues fixed in the core following conversations with various developers/maintainers/contributors. The problem with this is that its a case of, is this a Bug or a Feature?

If you would like to show options/swatches even if all children are out of stock you need to make a template change, you need to remove the $product->isSalable() checks from the Magento_Catalog::product/view/form.phtml template

Installation

  • Add the module to composer:

      composer require interjar/module-configurable-child-visibility
    
  • Enable the module:

      bin/magento module:enable Interjar_ConfigurableChildVisibility
    
  • Deploy static content and compile DI:

      bin/magento setup:static-content:deploy
      bin/magento setup:di:compile
    
  • Clear cache

Support

If you have any issues with this extension, open an issue on GitHub.

Contribution

Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.

License

OSL - Open Software Licence 3.0

Copyright

© 2018 Interjar Ltd

统计信息

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

GitHub 信息

  • Stars: 29
  • Watchers: 8
  • Forks: 21
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固