ghoster / module-outofstockatlast
Magento 2.4.x 模块 最后排序缺货产品
1.1.3
2024-08-08 02:09 UTC
Requires
- php: ~7.4.0||~8.0.0||~8.1.0||~8.2.0||~8.3.0
- magento/framework: ^102.0|^103.0
README
composer require ghoster/module-outofstockatlast
主要功能
- 最后排序缺货产品
- 与
smile/elasticsuite^2.11
兼容 - 首先,从
Stores > Configuration > Catalog > Inventory > Stock Options
设置Display Out of Stock Products
为Yes
- 当然,我们谈论的是 Elastic Search。我们不支持 旧搜索引擎
- 不时提醒您,在启用模块后进行 重新索引
兼容性
安装
* = 在生产环境中,请使用 --keep-generated
选项
类型 1:ZIP 文件
- 将 ZIP 文件解压到
app/code/GhoSter
- 通过运行
php bin/magento module:enable GhoSter_OutOfStockAtLast
启用模块 - 通过运行
php bin/magento setup:upgrade
应用数据库更新 - 通过运行
php bin/magento cache:flush
清除缓存
类型 2:Composer
- 使模块在 composer 存储库中可用,例如
- 私有存储库
repo.magento.com
- 公共存储库
packagist.org
- 公共 GitHub 存储库作为 vcs
- 私有存储库
- 通过运行
composer config repositories.repo.magento.com composer https://repo.magento.com/
将 composer 存储库添加到配置中 - 通过运行
composer require ghoster/module-outofstockatlast
安装模块 - 通过运行
php bin/magento module:enable GhoSter_OutOfStockAtLast
启用模块 - 通过运行
php bin/magento setup:upgrade
应用数据库更新 - 通过运行
php bin/magento cache:flush
清除缓存
配置
- 启用模块后重新索引
捐赠
如果这个项目帮助您减少开发时间,您可以给我一杯啤酒 :)