Hi There!
I'm trying to override Magento\Catalog\Model\Layer\FilterList class.
My vendor\module\etc\di.xml:
<preference for="Magento\Catalog\Model\Layer\FilterList" type="\vendor\module\Model\Layer\FilterList"/>
<type name="Magento\Catalog\Model\Product">
<plugin name="logProductName" type="\vendor\module\Plugin\ProductName" />
</type>
The plugin above works perfect. However, preference doesn't. The statement is ignored.
Please advise me on it. What am I missing?
Thanks!