Skip to content

This Magento2 Module adds prices and the add-to-cart button to out-of-stock configurable products.

Notifications You must be signed in to change notification settings

nordcomputer/magento2-showoutofstockprice

Repository files navigation

Module for Magento 2 to show price for out-of-stock products

This Magento2 Module adds prices to out-of-stock products. You can either download it and put it into /app/code/Nordcomputer/Showoutofstockprice/ or install it with composer (make sure, you have set your auth.json file correctly, to download from github. You need to set an Auth Token for your github account and put it into the auth.json file). Install with composer from terminal:

composer config repositories.nordcomputer/showoutofstockprice git "[email protected]:nordcomputer/magento2-showoutofstockprice.git"

composer require nordcomputer/showoutofstockprice <prefered version>

Configuration

You can now configure, if you want to show swatches and the add-to-cart button on the product page from the backend (Stores -> Configuration -> Nordcomputer -> Show Price for out-of-stock products)

Since v0.6 it is possible, to also show swatches and add-to-cart button on category and searchresult pages. Both can be configured individually.

Note

If you have no swatches configured (for example by using Dropdown instead), the Dropdown wont show up. But the Add-to-cart button still works

Contributers

Thank you to our contributers: