=== Fusion64 Hide Shipping Methods for WooCommerce ===
Contributors: zeejay90
Tags: hide shipping methods, free shipping, hide shipping, shipping methods, local pickup
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Hide other WooCommerce shipping methods when free shipping is available, and hide shipping methods from chosen user roles.

== Description ==

When a shopper qualifies for free shipping, WooCommerce still shows your paid shipping options next to it. Some shoppers pick the paid one by mistake, then ask for a refund. Fusion64 Hide Shipping Methods hides the paid methods as soon as free shipping is available, so the choice is clear.

You can keep local pickup visible, treat any $0 method as free shipping, and hide shipping methods from chosen user roles: for example, no local pickup for guests, or no free shipping for wholesale customers.

**Features**

* Hide all other shipping methods when free shipping is available
* Keep local pickup visible next to free shipping, or hide it too
* Treat any delivery method that costs 0 (for example a flat rate of 0) as free shipping
* Hide any shipping method from chosen user roles, including guests
* Works with the classic cart and checkout and with the Cart and Checkout blocks
* Works with every shipping zone and with shipping methods from other plugins
* Compatible with WooCommerce High-Performance Order Storage (HPOS)
* Lightweight: no extra scripts or styles on the front end

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`, or install it from the Plugins screen.
2. Activate the plugin. WooCommerce must be active.
3. Go to WooCommerce > Settings > Shipping > Hide shipping methods.

Free shipping hiding is on as soon as the plugin is active (paid methods are hidden, local pickup stays). Change it on the settings page.

== Frequently Asked Questions ==

= How do I hide other shipping methods when free shipping is available? =

Install and activate the plugin. That's it: when a shopper qualifies for free shipping (for example by reaching your free shipping minimum), the paid methods are hidden. Local pickup stays unless you choose "Hide them all" in the settings.

= My free shipping is a flat rate of 0. Does that count? =

Yes, if you tick "Treat any delivery method that costs 0 as free shipping". Local pickup is never treated as free shipping, even when it costs 0.

= Does it work with the Checkout block? =

Yes. The plugin filters the shipping rates WooCommerce calculates, so the Cart and Checkout blocks and the classic checkout show the same options.

= Can I hide a shipping method from guests or from one user role? =

Yes. Under "Hide methods from user roles", choose the roles that must not see each shipping method. "Guest" means shoppers who aren't logged in.

= What if I hide every method from a role? =

Shoppers with that role would see no shipping options and can't check out, so leave at least one method visible to everyone who should be able to order.

= Will my changes show for shoppers who already have items in the cart? =

Yes. Saving the settings makes WooCommerce recalculate shipping for every cart.

== Screenshots ==

1. Settings under WooCommerce > Settings > Shipping > Hide shipping methods.
2. Checkout when free shipping is available: only free shipping and local pickup are shown.

== Changelog ==

= 1.0.0 =
* First release.
