15 Easy Hacks to Hide Shipping Options in WooCommerce (Conditionally)

by | Feb 21, 2022 | 0 comments

15 Easy Hacks to Hide Shipping Options in WooCommerce (Conditionally)

by | Feb 21, 2022 | Free Wordpress Plugins | 0 comments



In this full complete guide, I will show you how to hide Woocommerce shipping methods conditionally without any extra plugin. Before you jump in a quick comment though: all the snippets shown below will go to either to your child theme’s functions.php file or, better yet, use Code Snippets plugin for it (like I do).

All the snippets shown in the video are here:

Blocksy and Kadence are currently two of the best WordPress themes. So, if you’re interested, then you can grab:

🅱️ Blocksy theme (SAVE 10% Coupon WPSH10)

🔵 Kadence theme here: (SAVE 10% Coupon SIMPLEHACKS)

✅ If you want to be the first to be notified about the new tutorials then please subscribe to this channel.

✅ BEST WORDPRESS THEMES:
Blocksy theme: (SAVE 10% Coupon WPSH10)
Kadence Theme: (SAVE 10% Coupon SIMPLEHACKS)
Astra Theme:
GeneratePress:
OceanWP: (SAVE 10% Coupon WPSH10)

✅ AWESOME WORDPRESS PLUGINS:
Best WordPress Backup, Migration and Staging plugin – WpVivid Pro (SAVE 20% Coupon WPSH20)
Best Gutenberg Blocks addon – Kadence Blocks (SAVE 10% Coupon SIMPLEHACKS)
Best forms plugin – Fluent Forms: (SAVE 20% Coupon: WPSH20)
WP Social Ninja (SAVE 20% Coupon: WPSH20)
Best for email marketing – Fluent CRM: (SAVE 20% Coupon: WPSH20)
Best for creating tables – Ninja Tables (SAVE 20% Coupon: WPSH20)
Best WordPress LMS – Tutor LMS (SAVE 20% Coupon thmwelcome20)
Best WordPress SEO plugin – SEOPress
Image Map Pro –

✅ AWESOME WOOOCOMMERCE EXTENSIONS:
Best Woocommerce Swiss Knife tool – Kadence WooExtras (SAVE 10% Coupon SIMPLEHACKS)
Advanced Dynamic Pricing Pro (SAVE 20% Coupon: WPSH20)
Phone orders For Woocommerce Pro (SAVE 20% coupon: WPSH20)
Advanced Orders Export Pro (SAVE 20% coupon: WPSH20)
Best Woocommerce sidecart plugin – Woocommerce Cart in One

TIMESTAMPS
00:00 How to conditionally hide Woocommerce shipping options
00:35 Code Snippets vs functions.php?
01:12 Disable Woocommerce shipping methods for a specific shipping class
03:20 Hide woocommerce checkout fields when local pickup is selected
04:39 Hide Woocommerce Checkout Fields Based on Shipping Methods
07:19 Display store address for Local pickup shipping method
08:37 Disable Woocommerce shipping methods for specific category
10:16 Disable shipping methods for specific tags
10:55 Disable shipping methods for specific products
12:20 Disable shipping methods for specific variations
14:15 Disable shipping methods based on cart subtotal
16:13 Disable shipping methods based on cart weight
17:37 Disable all shipping rates when free shipping is available
18:10 Hide all shipping rates when free shipping is available, but keep “Local pickup
18:44 Disable shipping methods based on user roles
21:01 Remove “ship to a different address” if Local Pickup is selected
21:48 Remove “ship to a different address” only for specific products

source