Hi All, Is there any solution to show price and other product attributes like swatch images, colors in product grid view and product description of magento 2.27?
I followed this post but it didn't help since my products are of "configurable type" https://magento.stackexchange.com/questions/160145/magento-2-how-to-show-prices-for-out-of-stock-pro....
Please let me know your thoughts.
Thanks, Javid
Solved! Go to Solution.
Hi @subhan_javid !
You can get fix from this PR: https://github.com/magento/magento2/pull/18739.patch
It is not still accepted due to some minor architecture questions - but it works without any performance issues.
Thx!
Hi Javid,
Are the color swatches displayed on the Product Display Pages (the individual product pages in your site), but not on the category or search results pages? If so, have you proceeded to Stores --> Settings - Configuration --> Catalog - Storefront, and made sure that Show Swatches in Product List is enabled? You should also be able to control how many swatches are displayed via the Swatches per Product field.
If this doesn't work, are you using a custom theme? If so, have you reached out to the theme developers about this?
Best of luck!
Hi Robert,
My main concern now is to display price of configurable product in SHOP page as well as in product description page when products are "out of stock".
I tried the solution mentioned in my initial post. But it didnt work.
Any solutions?
So, On your category and search results pages, your products normally show a price, but when a product is "out of stock" your configurable products don't currently show any price or price range?
I noticed this posted as an official bug in Github: https://github.com/magento/magento2/issues/16069
If I'm understanding your post, and this bug report, it sounds like it's a known issue that's actively being worked on by the community.
I'm tagging @vpodorozh, who has been committing changes on GitHub, in case he has any thoughts to share with you. I'm not sure if he actively monitors his account on the forums, but I figured it wouldn't hurt.
Best of luck!
Thanks Robert. If you find any solution for this please send me a message.
Hi @vpodorozh, Please help me in this bug. I have been trying for a while now and i didnt find a solution to show "price" in product description page for configurable products when all of the configured products are out of stock.
Thanks,
Javid
Hi @subhan_javid !
You can get fix from this PR: https://github.com/magento/magento2/pull/18739.patch
It is not still accepted due to some minor architecture questions - but it works without any performance issues.
Thx!
Thank You @vpodorozh
Can i consider all the files here https://github.com/magento/magento2/pull/18739/files and create a module in my project?
Any suggestions for the the best way to apply the patch https://patch-diff.githubusercontent.com/raw/magento/magento2/pull/18739.patch in my magento2 project.
Thanks,
Javid
@vpodorozh In continuation to my previous reply, i also want to tell you that my current magento version is 2.2.7
In your patch, in di.xml i found that you are overriding Magento\ConfigurableProduct\Model\ResourceModel\Product\Type\Configurable\StockStatusInterface
But in current magento 2.2.7 version, this path file is not present.
Any suggestions for your code to work in magento EE 2.2.7?
Thanks,
--Javid
@vpodorozh Your patch is working in magento2 EE 2.2.7. But price displays only in category page for configurable products out of stock. In description page, it doesnt show the price.
You have any other patch for this?
Thanks,
Javid