Skip to content

Can't add grouped product, with out of stock sub product, to cart #12970

@kvydiuk

Description

@kvydiuk

When "Stores -> Configuration -> Catalog -> Inventory -> Options -> Display Out of Stock Products" config enabled.
Can't add grouped product, which haves out of stock sub product, to cart.

Preconditions

  1. Magento 2.1.8 CE/EE
  2. nginx/1.10.3
  3. Ver 15.1 Distrib 10.0.31-MariaDB
  4. PHP 7.0.22-0ubuntu0.16.04.1

Steps to reproduce

  1. Create grouped product with one out of stock sub product
  2. Set default sub products quantities biggest then "0"
    http://pix.toile-libre.org/upload/original/1514981790.png
  3. Set "Stores -> Configuration -> Catalog -> Inventory -> Options -> Display Out of Stock Products" to "Yes"
  4. Go to grouped product PDP
  5. Add product to cart

Expected result

  1. Sub products which are "In stock" is added to cart

Actual result

  1. No one product added to cart:
    http://pix.toile-libre.org/upload/original/1514981851.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: GroupedProductIssue: Cannot ReproduceCannot reproduce the issue on the latest `2.4-develop` branchIssue: 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 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions