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
Are you using any module?
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.
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) . ')';
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
Any news?