magento2: Configurable product price is not displayed if all children are out of stock and even if Display Out of Stock Products is set to "yes"
Preconditions
- Magento CE 2.2.2 with Sample Data
- PHP 7.0
Steps to reproduce
- Create configurable product with view simples
- Make configurable and all simple products out of stock
- Set Display Out of Stock Products to βyesβ
Expected result
- Price for configurable product should be displayed
Actual result
- Price is not displayed at all
Seems like in \Magento\ConfigurableProduct\Model\ResourceModel\Product\StockStatusBaseSelectProcessor::process() there is incorrect condition.
It should be:
if (!$this->stockConfig->isShowOutOfStock()) {
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 11
- Comments: 15 (6 by maintainers)
Commits related to this issue
- fix inversed logic for adding stock status for configurable product subitems * the current logic is inversed as it will add the filter for stock only elements when the option is activated * this comm... — committed to brosenberger/magento2 by rosenberger-e-conomix 6 years ago
- magento/magento2#16069: Configurable product price is not displayed if all children are out of stock and even if Display Out of Stock Products is set to "yes" - allow "out of stock" items to be used f... — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento/magento2#16069: Configurable product price is not displayed if all children are out of stock and even if Display Out of Stock Products is set to "yes" - add strict types. — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- Merge remote-tracking branch 'upstream/2.2-develop' into 2.2-develop-#16069 — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento/magento2#16069: Configurable product price is not displayed if all children are out of stock and even if Display Out of Stock Products is set to "yes" - refactor variable names. — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento/magento2#16069: Configurable product price is not displayed if all children are out of stock and even if Display Out of Stock Products is set to "yes" - add blank space. — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento#16069: Configurable product price is not displayed if all children are out of stock and even if Display Out of Stock Products is set to "yes" - remove unneeded usage of the variable. — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento/magento2#16069: Configurable product price is not displayed if all children are out of stock and even if Display Out of Stock Products is set to "yes" — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento/magento2#16069: Configurable product price is not displayed if all children are out of stock and even if Display Out of Stock Products is set to "yes" - allow "out of stock" items to be used f... — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento/magento2#16069: Configurable product price is not displayed if all children are out of stock and even if Display Out of Stock Products is set to "yes" - add strict types. (cherry picked from ... — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento/magento2#16069: Configurable product price is not displayed if all children are out of stock and even if Display Out of Stock Products is set to "yes" - refactor variable names. (cherry picke... — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento/magento2#16069: Configurable product price is not displayed if all children are out of stock and even if Display Out of Stock Products is set to "yes" - add blank space. (cherry picked from c... — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento#16069: Configurable product price is not displayed if all children are out of stock and even if Display Out of Stock Products is set to "yes" - remove unneeded usage of the variable. (cherry... — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- magento/magento2#16069: Configurable product price is not displayed if all children are out of stock and even if Display Out of Stock Products is set to "yes" (cherry picked from commit f4ec67e) — committed to vpodorozh/magento2 by vpodorozh 6 years ago
- fix inversed logic for adding stock status for configurable product subitems * the current logic is inversed as it will add the filter for stock only elements when the option is activated * this comm... — committed to brosenberger/magento2 by rosenberger-e-conomix 6 years ago
I just created a small module to show the price of out-of-stock items based on this answer at stackexchange. Feel free to fork: https://github.com/nordcomputer/magento2-showoutofstockprice
Composer install should work, if you add the repo to your dependencies. Be aware, that I set the required php version to β^7.1β - you may need to reconfigure that in the cmposer.json file, if you use another version.
Sorry @nordcomputer, I reindex and fix all, Many Thanks.
I am working on this #mm18id