=== Bloqcode Chile - RUT and Checkout Validation ===
Contributors: bloqcode, andresvilchescortes
Tags: woocommerce chile, rut chile, validate rut, checkout chile, shipping chile
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Checkout utility for Chile stores. Integrates a RUT identification field, performs mathematical modulus 11 validation, and formats input structural customer data.

== Description ==

**Bloqcode Chile - RUT and Checkout Validation** adapts the native WooCommerce checkout process to comply with standard customer identification requirements in Chile.

The plugin provides server-side and client-side validation to ensure checkout data structure correctness before payment processing. It formats the required metadata fields and organizes administrative information.

=== Features: ===
* **Field Injection:** Inserts the RUT input field natively underneath customer first and last name fields within the billing section.
* **Mathematical Validation:** Runs validation queries based on the standard Modulus 11 algorithm on both frontend and backend handlers.
* **Automated Formatting:** Formats characters during user interaction to present standard punctuation patterns (e.g., 12.345.678-9).
* **Order Metadata Panel:** Appends stored billing RUT and custom delivery reference parameters directly inside the internal WooCommerce order edit screen.
* **Email Layout Structuring:** Restructures notification templates (customer and administrator copies) into separate Billing and Shipping data containers.
* **Core Standards:** Built strictly following WordPress API enqueuing requirements and WooCommerce filters.

== Installation ==

1. Upload the plugin directory to the `/wp-content/plugins/` folder, or search for it via the administration dashboard.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. The RUT field operates automatically on the standard checkout page upon activation.

== Frequently Asked Questions ==

= Is this plugin compatible with page builders? =
Yes. The script adheres to native WooCommerce form hooks, preserving theme and checkout engine asset compatibility.

= Where can order processors view the customer RUT? =
Stored variables are visible under the core order details management screen (`WooCommerce > Orders`), directly below the customer billing block.

= Does this handle business tax invoices? =
This version validates standard customer identification numbers. Advanced corporate invoice tax fields are handled separately.

== Screenshots ==

1. Integrated RUT identification field containing real-time input formatting structure.
2. Order summary view rendering metadata inside the internal WooCommerce order edit dashboard.
3. Structured customer and store manager HTML email notification containers.

== Changelog ==

= 1.0.0 =
* Initial directory release.
* Input validation rules and modulus 11 execution hooks.
* Asset processing updates complying with inline enqueuing guidelines.