Skip to content

This module makes Magento 2 display out-of-stock configurations for configurable products when the relevant option is set to Yes in the back end.

License

Notifications You must be signed in to change notification settings

pkarsai/show-out-of-stock-products-magento2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This module makes Magento 2 display out-of-stock configurations for configurable products when the relevant option is set to Yes in the back end.

There is an option in Magento 2's admin interface that enables the display of out-of-stock products on the front end. The problem with this option is that out-of-stock product configurations for configurable products are not displayed even when this option is enabled. This module makes Magento 2's front end display these products, while keeping the swatches for the out-of-stock configurations crossed out.

Update for 1.0.4

Removed the Magento Framework and PHP version requirements imposed by composer.json. But this module was not tested with releases later than Magento 2.2.7. Use at your own risk!

Installation

Via composer:

composer require myweb/show-out-of-stock-products
bin/magento setup:upgrade

OR copy the contents of this repo to the following location:

{magento_root}/app/code/Myweb/ShowOutOfStockProducts

then

bin/magento setup:upgrade

If you are in production mode you also need to run the following after installation:

bin/magento setup:di:compile
bin/magento setup:static-content:deploy

About

This module makes Magento 2 display out-of-stock configurations for configurable products when the relevant option is set to Yes in the back end.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages