-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Configurable products with first simple product 'out of stock' breaks catalog 2.1.1 #6799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @staffrob , thank for report |
Did some debugging here in this related thread: #5762 |
@nissablagojevic saw your debug and would like to know where you found ->limit(1). |
In version 2.1.2 (after upgrade from 2.1.1 with same problems) the problem still exists. If i increase qty and set prodcut "in-stock" on the out-of-stock child, the frontend shows as expected. I can reproduce this situation with 2 different magento installation. |
Hi, It says |
@interpigeon @nmallepally: This pull request fixes the issue: #7030 |
@immist Thanks.. Great, worked absolutely fine after applying the fix. |
@nmallepally Please can you share with me what exactly you did? |
I have just upgraded 2.1.2 to 2.1.3 and now price on configurable product page displays as $0 (zero) until an attribute is selected. This only occurs if the first configurable attribute qty is 0 or out of stock. |
Since upgrading to 2.1.3 we have this issue as well as stated by @staffrob |
We're having the same issue as staffrob- configurable products with out of stock individual products are showing a price of $0 on both the catalog landing pages and the individual product pages. Magento 2.1.4 |
I have the same issue - price on configurable product displays as $0, if configurable attribute qty is 0 or out of stock. Magento 2.1.5 |
Magento 2.1.7 and I'm still having the same issue, price shows 0 if all the simple products are out of stock |
@Szymon-GP Yes me too. Magento 2.1.6 |
Still the same on 2.1.8 :/ ($0 product) |
Found the solution! The problem appears to be that, in the price resolver (
after the foreach loop. This will get the configurable product price. All that is required is to override this class in your own module and add the line above. |
@wildcard27 that doesn't seem to work with multi-currency.. |
@erfanimani Seems to be working on my project with multi currency. Do you have any errors is it just failing? |
@wildcard27 , actually - my bad. It's not working for product listings created through widget instances. Rest of the time it works fine with multi-currency. Probably a cache issue. Thanks for sharing your solution! |
Hello @staffrob. Your issue has been fixed in later versions. If You are still able to reproduce it on 2.1.9 please let us know. |
@staffrob, thank you for your report. |
Preconditions
Steps to reproduce
Expected result
Actual result
Exception #0 (Magento\Framework\Exception\LocalizedException): Configurable product "BSBG" does not have sub-products
Exception #0 (Magento\Framework\Exception\LocalizedException): Configurable product "BSBG" does not have sub-products
#0 /home/72576-57509.cloudwaysapps.com/jpyshppark/public_html/vendor/magento/module-configurable-product/Pricing/Price/FinalPrice.php(43): Magento\ConfigurableProduct\Pricing\Price\ConfigurablePriceResolver->resolvePrice(Object(Magento\Catalog\Model\Product\Interceptor))
The text was updated successfully, but these errors were encountered: