I am trying to override ListProduct.php Block File Using Preference method But InitialiseProductCollection() being a protected function does not give me result. I need to know how can I override a protected function of ListProduct.php
1 Answer
You can check the solution of your problem here:Magento 2 Override ListProduct.php Block File.
Let's us know if solution help you