=== Clean Checkout for WooCommerce ===
Contributors: riffaz
Tags: woocommerce, checkout, fields, customization, checkout blocks
Requires at least: 5.0
Tested up to: 7.0.1
Stable tag: 2.0.2
Requires PHP: 7.0
Requires Plugins: woocommerce
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.txt

== Description ==
**Clean Checkout for WooCommerce** simplifies your WooCommerce checkout by removing unnecessary fields and replacing the default First Name and Last Name fields with a single Full Name field.

It fully supports both Classic Checkout and WooCommerce Checkout Blocks, automatically detecting which checkout experience your store is using.

No CSS or JavaScript files are loaded on the frontend — so your checkout stays fast!

**Key Features:**
- 🧩 **Block Checkout Support** — Now works with WooCommerce Checkout Blocks
- 👤 **Full Name Field** — Unified field for first + last names (stored in order details)
- ⚙️ **Toggle-based Settings** — Enable or disable individual checkout fields easily
- ⚡ **Lightweight** — No frontend scripts or extra load
- 💬 **Classic Checkout Only Notice** — Clear notes on fields not available in Block Checkout (e.g., Country)

Perfect for store owners who want to reduce checkout friction and improve user experience.

== Installation ==
1. Upload the `clean-checkout-for-woocommerce` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **WooCommerce → Clean Checkout** in your WordPress admin dashboard.
4. Configure your preferred checkout fields using the toggle switches.
   * 💡 **Important:** If you enable the **Full Name** field in *Block Checkout*, make sure the **First Name** field toggle is **turned off**.  
     (Both fields are mapped to the same API field in block checkout.)
5. Save your settings and test the checkout page.

== Frequently Asked Questions ==
= Does this work with the new WooCommerce Checkout Blocks? =
✅ Yes! Version 2.0 adds full support for Checkout Blocks (WooCommerce 10.0 and above).  
Please note that *Country* and *Email* cannot be removed due to WooCommerce API restrictions, but you can hide or simplify others.

= Can I still use it with the classic checkout? =
Absolutely. The plugin continues to support classic checkout seamlessly.

= Is any JavaScript or CSS loaded on the frontend? =
No, everything runs only in the backend settings — keeping your checkout lightweight.

= Where are the settings located? =
Navigate to **WooCommerce → Clean Checkout** to configure your fields.

== Screenshots ==
1. **Settings Page** — Toggle switches to enable/disable checkout fields.
2. **Classic Checkout with Full Name Field** — Example showing the Full Name field enabled in classic checkout.
3. **Block Checkout with Full Name and Country Fields** — Example showing the Full Name field enabled in block checkout.

== Changelog ==
= 2.0.2 =
* 🧪 Tested with WordPress 7.0.1
* 📚 Updated plugin documentation
* 🛠️ Minor maintenance improvements

= 2.0.1 =
* 🛠️ Fix: Missing file causing fatal error on activation (Blocks loader).
* 🧩 Note: Added clarification — in Block Checkout, do not enable both *Full Name* and *First Name* at the same time.

= 2.0.0 =
* ✨ Added full support for WooCommerce Checkout Blocks (10.2+)
* 👤 Added new Full Name field (works in both Classic and Block checkout)
* ⚙️ Unified toggle settings for both checkout types
* 💬 Added admin notes and "Classic checkout only" labels for clarity
* 🪄 Improved UI design and toggle spacing
* 📸 Added new screenshot (Screenshot_3.png)

= 1.0 =
* Initial release — support for disabling default WooCommerce billing fields and adding a Full Name field (classic checkout only)

== Upgrade Notice ==
= 2.0.1 =
Fix: Missing file causing fatal error on activation (Blocks loader).

= 2.0.0 =
Major update! Clean Checkout now supports both Classic and Block-based WooCommerce checkouts.  
Adds Full Name field, updated UI, and curated support links. Please test on a staging site before updating.

= 1.0 =
Initial release.

== Future Features ==
Planned enhancements:
- **Conditional Logic:** Enable/disable fields based on roles or cart contents
- **Custom Field Options:** Add and manage extra fields beyond Full Name
- **Multilingual Support:** Translation-ready `.pot` file
- **Styling Controls:** Basic styling options directly from the settings
- **Analytics Integration:** Track field usage and abandonment
- **Import/Export Settings:** Move your field setup between sites easily