cancel
Showing results for 
Search instead for 
Did you mean: 

[Grouped product] Can´t add simple products to cart if one other is out of stock

Re: [Grouped product] Can´t add simple products to cart if one other is out of stock

@JadeArtistry 

 

You no need to create the same file path in app/code folder. Your way will not work. 

 

Please find the file below folder structure:

\vendor\magento\module-grouped-product\Model\Product\Type\Grouped.php

You can check with change in this file. 

 

Also I would suggest you to override this code with creating a custom module.

 

Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!

Re: [Grouped product] Can´t add simple products to cart if one other is out of stock

Hi @JadeArtistry 

 

It's delayed massage. You have created a wrong directory structure.

 

File code changes are correct but directory structure is wrong

 

Update code line no. 347

 

if ($isStrictProcessMode && !$subProduct->getQty() && $subProduct->isSalable()) {

 

You can update the file code changes on vendor/magento/module_groupedproduct/Model/Product/Type/Grouped.php file for now later update with the creating custom module.

 

 

Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!