How can I restrict a particular shipping method with the Shipping Rules module?

How can I restrict a particular shipping method with the Shipping Rules module?

Shipping Rules extension was created to overwrite the rates of the available shipping methods, and it cannot restrict shipping carriers/methods.  In case you need to block any shipping method and hide it, you may consider using our Shipping Restrictions extension.

To create a new restriction rule, go to Sales → Shipping Restrictions → Add Rule.  In the Shipping Methods tab, you can choose the shipping method that you want to block, and set the restriction message if needed:



In the Conditions tab, you may specify the conditions for the rule application:



You may see on the storefront that, the Free Shipping method is displayed as usual with other countries:



But as soon as the condition of the restriction rule is met, the Free Shipping method is blocked: