Web Analytics

Fill the form & Get Installation Support





    To customize the layered navigation in Magento 2, sometimes, we need to override the core class file. Generally, we can use preference to override models, but it’s not possible every time.

    So on that case, we need to use a different approach and have to use virtualType to achieve that.

    Please find below the steps to override models using virtualType.

    1. Create an di.xml in : /app/code/Magemonkeys/LayerModel/etc

    2. Create an FilterList.php in : /app/code/Magemonkeys/LayerModel/Model/Layer

    Fill the below form if you have any Magento programming need.





      Recent Articles

      Author Info

      Author Image

      Magento 2 Developer

      Hire H. Shingala

      Get a Free Quote





        Let our Magento expert connect to discuss your requirement.


          We offer Magento
          certified developers.

          Our Magento clientele
          is 500+.

          We sign NDA for the
          security of your projects.

          We’ve performed 100+
          Magento migration projects.

          Free quotation
          on your project.

          Three months warranty on
          code developed by us.