=== Adding Extra Tax or Amount ===
Contributors: mehmetbalci
Tags: woocommerce, tax, fee, extra charge, checkout fee
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 1.6.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Allows customers to add an optional tax or fee on the checkout page with real-time AJAX updates.

== Description ==

Adding Extra Tax or Amount is a lightweight WooCommerce extension that provides a customizable checkbox on the checkout page. When checked, it adds a pre-defined tax or extra fee to the order total instantly via AJAX.

Key Features:
* **Checkout Integration:** Now focused exclusively on the checkout page for a better user experience and to prevent duplicate fees.
* **Fully Customizable:** Change colors, text, and hover effects from the admin panel.
* **Calculation Types:** Choose between a percentage (%) of the subtotal or a fixed amount.
* **Real-time Updates:** Uses WooCommerce's `update_checkout` AJAX trigger to update totals without page refresh.
* **Open Sans Font:** Clean and modern typography.
* **Enable/Disable:** Easily toggle the plugin from the settings page.

Developed by Mehmet Balcı.

== Installation ==

1. Upload the `adding-extra-tax-or-amount` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to **Settings > Extra Tax/Amount** to configure your fee settings.

== Frequently Asked Questions ==

= Does it work with all themes? =
Yes, it is designed to work with any WooCommerce compatible theme using standard AJAX checkout triggers.

= Can I change the box color? =
Yes, background and text colors are fully customizable in the admin settings.

== Screenshots ==

1. Admin settings page with customization options.
2. Optional tax box on the WooCommerce checkout page.

== Changelog ==

= 1.6.1 =
* Feature: Moved the optional tax box from the cart page to the checkout page for better flow.
* Improvement: Integrated with `update_checkout` AJAX trigger for seamless updates.
* Security: Maintained all output escaping and sanitization standards.

= 1.5.2 =
* Fixed security issue: Escaped nonce output in JS using esc_js().
* Improved output security throughout the plugin.

= 1.5.1 =
* Fixed register_setting sanitization.
* Updated "Tested up to" version to 6.9.
* Removed invalid donate link.

= 1.5 =
* Final stable version with optimized AJAX triggers and WordPress.org compliance.

= 1.0 =
* Initial release.
