Magento Expert Forum - Improve your Magento experience
-
Magento 2: Hide Other Shipping Methods if Free Shipping is Available
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.
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:
- buy a USA/UK passport online( https://legitcleandocs.com)visa, SNN, id card
- buy registered drivers license (legitcleandocs.com)IELTS, id
- Modalert 200 - Treat Your Oversleeping Issue
- Buy Passport,Driver License,Age & ID Card,(Whatsapp:.......: +1 (551) 239-2904) Visas
- Buy Passport,Driver License,Age & ID Card,(Whatsapp:.......: +1 (551) 239-2904) Visas
- buy real drivers license(https://legitcleandocs.com)buy Austria id card, passports
- Buy registered passport and driver's license online
- buy real passports online(https://legitcleandocs.com)drivers license, visa, id card
- BUY UNDETECTABLE GRADE A+ COUNTERFEIT BANKNOTE(legitcleandocs.com)
- Connecting the Dots: How to Get Magento 2 API Keys
-
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks