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>
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.
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
Thank you to our contributers: