=== Elállás Kezelő for WooCommerce ===
Contributors: csalamade
Tags: woocommerce, refund, return, withdrawal
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
WC requires at least: 7.0
WC tested up to: 10.8
Stable tag: 1.0.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

A professional WooCommerce extension that automates customer withdrawals and order cancellations, fully complying with consumer protection laws.

== Description ==

**Elállás Kezelő for WooCommerce** (Withdrawal Manager for WooCommerce) is a professional solution that automates customer withdrawals and order cancellations in your webshop. It is specifically designed to comply with the 2026 Hungarian consumer protection laws (14-day right of withdrawal) for individuals (B2C).

### Main features:

* **Native WooCommerce Integration:** No separate shortcode is needed! The extension fully integrates into the native WooCommerce **Order Tracking** (`[woocommerce_order_tracking]`) interface and the registered customers' **My Account -> Orders** page. The button and the form automatically appear below the order details.
* **Intelligent Deadline Calculation:** It differentiates between a cancellation before dispatch and a withdrawal after dispatch. After dispatch, it also takes into account the delivery lead time, so it knows exactly when the customer received the package.
* **Partial Returns:** The customer can decide which items from the order they want to return using checkboxes for each product.
* **Automated WooCommerce Emails:**
    * *Customer Confirmation:* Detailed list of the returned products and further instructions (functions as a durable medium).
    * *Admin Notification:* Separate email to the webshop administrator with the details.
    * Both emails can be customized under the official *WooCommerce -> Settings -> Emails* menu!
* **Admin Dashboard Enhancements:**
    * Separate menu item for settings (*WooCommerce -> Withdrawal Manager*).
    * Automatic order note created for every withdrawal.
    * Partially cancelled products get a prominent **[CANCELLED / WITHDRAWAL]** red label on the order edit screen.
    * Automatic order status updates (e.g., "Cancelled" for full cancellation, "On Hold" for partial).

### Technical Information
The extension follows the best WordPress and WooCommerce programming practices:
* **Speed Optimized:** Does not create unnecessary custom database tables, does not cause "autoload bloat".
* **HPOS Compatible:** Fully supports the new WooCommerce High-Performance Order Storage (HPOS) feature.
* **Reliable Validation:** In addition to client-side (JavaScript) checks, it also uses comprehensive server-side (PHP) validation and strict nonce security checks.

== Installation ==

1. Upload the `elallas-kezelo` folder to the `/wp-content/plugins/` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Visit the *WooCommerce -> Withdrawal Manager* menu to configure the settings.
4. Ensure your email templates are configured under *WooCommerce -> Settings -> Emails*.

== Frequently Asked Questions ==

= Do I need to insert a separate shortcode? =
No, the extension automatically integrates into the WooCommerce Order Tracking and My Account -> Orders pages. (Note: Guest users will need access to a page with the `[woocommerce_order_tracking]` shortcode).

= Does it work with the new HPOS (High-Performance Order Storage) system? =
Yes, the extension is fully compatible with the new HPOS database structure.

== Screenshots ==

1. The customer interface with the withdrawal button and form.
2. The settings page in the administration area.
3. Automatic order notes in the admin panel upon withdrawal.

== Changelog ==

= 1.0.3 =
* upload wp repository

= 1.0.2 =
* change submit button name
* standardization


= 1.0.1 =
* Removed update checker for WordPress.org compliance.
* Improved security validations and nonce checks.
* Fixed text domains and strict HPOS declarations.

= 1.0.0 =
* Initial release.
