``nordcomputer/module-stockfilter``
Enabels filtering by stock status
* = in production please use the --keep-generated
option
app/code/Nordcomputer
and rename the directory to Stockfilter
php bin/magento module:enable Nordcomputer_Stockfilter
php bin/magento setup:upgrade
*php bin/magento cache:flush
composer config repositories.nordcomputer/module-stockfilter git "git@github.com:nordcomputer/magento2-stockfilter.git"
composer require nordcomputer/module-stockfilter
php bin/magento module:enable Nordcomputer_Stockfilter
php bin/magento setup:upgrade
*php bin/magento cache:flush
Yes
for every simple product (you can do so by mass-action).Yes
(Default value) for at least one time, otherwise, the attribute for that specific product does not get created.Once the attribute was set to Yes
at least one time, the cronjob does his thing and sets the value automatically with every run.
You can find the configuration for this extension in Stores -> Configuration -> Catalog -> Inventory -> Stock Filter Cronjob Configuration
The Cronjob iterates over all simple products and sets the newly created attribute "filter-stock" according to the stock status of the product.
As this extension creates an attribute, the attribute needs to be removed when the extension get uninstalled.
You can uninstall this extension by running 'bin/magento module:uninstall Nordcomputer_Stockfilter --remove-data'
Stockfilter
directory in /app/code/Nordcomputer
filter_stock
from the eav_attribute
table in your databaserun following commands:
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento indexer:reindex
bin/magento c:f