=== H6 Smart Shipping & Payment Control for WooCommerce ===
Contributors: hutsixdigital
Tags: woocommerce, shipping rules, payment gateways, checkout rules, conditional shipping
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Conditionally hide WooCommerce shipping methods and payment gateways using simple checkout rules.

== Description ==

H6 Smart Shipping & Payment Control for WooCommerce gives you simple, practical control over which shipping methods and payment gateways customers can use at checkout.

Create lightweight checkout rules based on cart total, cart weight, shipping country, or customer login status, then hide the shipping or payment options that should not be available.

Perfect for stores that need cleaner checkout control without complicated rule engines or bloated plugin suites.

== Key Features ==

= Control shipping methods =

Hide shipping methods when certain checkout conditions are met.

Examples:
- Hide Free Shipping for heavy orders
- Hide Flat Rate below a minimum basket total
- Disable Local Pickup for certain countries

= Control payment gateways =

Show only the payment methods that make sense for the order.

Examples:
- Disable Cash on Delivery for guests
- Hide Bank Transfer for small orders
- Restrict payment methods by shipping destination

= Simple rule builder =

Create rules using a clean "condition → action" workflow.

Supported conditions:
- Cart total
- Cart weight
- Shipping country
- Logged-in or guest customer status

Supported actions:
- Disable shipping methods
- Disable payment gateways

= Clean WooCommerce admin experience =

Built with a lightweight admin UI.

- Focused settings layout
- Shipping and payment rule tabs
- Enable or disable rules individually
- Responsive admin interface

= Lightweight and WooCommerce-friendly =

Designed to work alongside standard WooCommerce shipping zones and payment settings without replacing them.

== Installation ==

1. Upload the plugin to `/wp-content/plugins/` or install it from the WordPress plugin directory.
2. Activate the plugin via the Plugins screen.
3. Go to WooCommerce → H6 Shipping & Payment.

== Frequently Asked Questions ==

= How do I hide Free Shipping for heavy items? =

Create a rule using Cart Weight as the condition, then disable the `free_shipping` method when the weight exceeds your chosen value.

= How do I find shipping method IDs? =

Common WooCommerce shipping method IDs include:

- `flat_rate`
- `free_shipping`
- `local_pickup`

= Can I disable payment gateways for guests? =

Yes. Create a rule using User Status as the condition, select Guest, then choose the payment gateway you want to hide.

= Can I temporarily disable all rules? =

Yes. Use the main plugin enable switch to pause all rules without deleting them.

== Screenshots ==

1. Shipping and payment rule builder.

== Changelog ==

= 1.0.1 =
* Redesigned the admin interface for a cleaner WooCommerce experience.
* Added improved styling and layout consistency.
* Added Shipping and Payment rule tabs.
* Improved rule row spacing, badges, and responsive layouts.
* Simplified overall rule management UX.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.1 =
Improves the admin interface with a cleaner rule-builder layout and updated styling.