Hello, Magento Folks,

We have already learned How you can use input masks at checkout in the telephone field of Magento 2. Today, I am going to explain to you about how you can hide all other shipping methods in your Magento 2 store when a free shipping method is available.

Name:  Hide-Other-Shipping-Methods-if-Free-Shipping-is-Available-Magento-2.png
Views: 35
Size:  12.5 KB

When you have enabled the free shipping method in your store, it will show with other shipping methods as well. It does not harm you in any way, but you might want to hide other methods when free shipping in your store is enabled.

While developing a Magento site for one of our clients, we came across similar requirements to hide other shipping methods when free shipping is available. We thought about why not write a blog on the topic. So, in this article, we are going to explain to you how to do that programmatically. Using the below codes, it is possible to hide other shipping methods.

Step 1: Let’s create a “Registration.php ” file at the below given path.
app\code\Vendor\Extension
for more step and tutorial: http://bit.ly/337gMUe

View more threads in the same category: