- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Layered Navigation in configurable products
Please help me. I have a store in magento 2 (CE 2.1). In my store only products configurable are visible. The products simple, associated at configurable products, are not visible and have more attributes. My problem is that, in layered navigation (but analog problem is in advanced research), the filters are applied at level of configurable products and not at simple product level. See this simplified example:
So if the customer clicks on the product B does not find the desired combination
Can you help me how solve this problem?
Thanks
Fabio
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Layered Navigation in configurable products
Are you using any module?
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Layered Navigation in configurable products
Yes, some modules but I think this is a M2 feauture standard.
Infact it's the same in a clean enviroment (2.1.7), you can see at this link: http://ur2.chelegno.com/scatole-confezione.html.
I think this is a bug because the customer inserts into the cart the simple product that must have all filter choices.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Layered Navigation in configurable products
I never try it.
but you can try it
File name Magento\Eav\Model\Entity\Collection\AbstractCollection.php
where line no :- 364
$conditionSql = '(' . implode(') OR (', $sqlArr) . ')'; change with $conditionSql = '(' . implode(') AND (', $sqlArr) . ')';
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Layered Navigation in configurable products
Hi Sunil,
thank you. I modified the file
/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php
but I have the same result. Look this picture:
Fabio
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Layered Navigation in configurable products
Any news?