Рет қаралды 7,206
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: wpsimplehacks....
Blocksy and Kadence are currently two of the best WordPress themes. So, if you’re interested, then you can grab:
🅱️ Blocksy theme wpsimplehacks.... (SAVE 10% Coupon WPSH10)
🔵 Kadence theme here: wpsimplehacks.... (SAVE 10% Coupon SIMPLEHACKS)
✅ If you want to be the first to be notified about the new tutorials then please subscribe to this channel. / @wpsimplehacks
✅ BEST WORDPRESS THEMES:
Blocksy theme: wpsimplehacks.... (SAVE 10% Coupon WPSH10)
Kadence Theme: wpsimplehacks.... (SAVE 10% Coupon SIMPLEHACKS)
Astra Theme: wpsimplehacks....
GeneratePress: wpsimplehacks....
OceanWP: wpsimplehacks.... (SAVE 10% Coupon WPSH10)
✅ AWESOME WORDPRESS PLUGINS:
WPCodeBox wpsimplehacks.... (SAVE 20% Coupon WPSH20)
WooLentor Elementor/Gutenberg add-on wpsimplehacks.... (SAVE 20% Coupon WPSH20)
Best Wordpress Backup, Migration and Staging plugin - WpVivid Pro wpsimplehacks.... (SAVE 20% Coupon WPSH20)
Best Gutenberg Blocks addon - Kadence Blocks wpsimplehacks.... (SAVE 10% Coupon SIMPLEHACKS)
Best forms plugin - Fluent Forms: wpsimplehacks.... (SAVE 20% Coupon: WPSH20)
WP Social Ninja wpsimplehacks.... (SAVE 20% Coupon: WPSH20)
Best for email marketing - Fluent CRM: wpsimplehacks.... (SAVE 20% Coupon: WPSH20)
Best for creating tables - Ninja Tables wpsimplehacks.... (SAVE 20% Coupon: WPSH20)
Best Wordpress LMS - Tutor LMS wpsimplehacks.... (SAVE 20% Coupon thmwelcome20)
Best Wordpress SEO plugin - SEOPress wpsimplehacks....
Image Map Pro - wpsimplehacks....
✅ AWESOME WOOOCOMMERCE EXTENSIONS:
Best Woocommerce Swiss Knife tool - Kadence WooExtras wpsimplehacks.... (SAVE 10% Coupon SIMPLEHACKS)
Advanced Dynamic Pricing Pro wpsimplehacks.... (SAVE 20% Coupon: WPSH20)
Phone orders For Woocommerce Pro wpsimplehacks.... (SAVE 20% coupon: WPSH20)
Advanced Orders Export Pro wpsimplehacks.... (SAVE 20% coupon: WPSH20)
Best Woocommerce sidecart plugin - Woocommerce Cart in One wpsimplehacks....
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