Skip to content

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" #16069

@alexber88

Description

@alexber88

Preconditions

  1. Magento CE 2.2.2 with Sample Data
  2. PHP 7.0

Steps to reproduce

  1. Create configurable product with view simples
  2. Make configurable and all simple products out of stock
  3. Set Display Out of Stock Products to "yes"

Expected result

  1. Price for configurable product should be displayed

Actual result

  1. 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()) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: ConfigurableProductEvent: MM18IDIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions