• Magento 2

    Magento2 How to disabled free shipping method at frontend

    Magento2 How to disabled free shipping method at frontend. In this article, I am going to show Magento2 How to disabled free shipping method at frontend. At magento2, it difficult to disable a shipping method at frontend and Enable at admin area. At first, I target to override  Free shipping method class  Magento\OfflineShipping\Model\Carrier\Freeshipping ‘s method  collectRates() using Plugin around method [crayon-5c180013456ed709405141/]   And defined under  di.xml  at app/code/Devamitbera/CoreRewrite/etc/  and try disable by using Area code [crayon-5c180013456f4105712212/]   But this is not working at Magento checkout page. I was going strange as the condition as was not working as excepted. Then, I was started to debug and find that issue is this Magento area.At Checkout page, Magento is…