=== GR Odstop od pogodbe ===
Contributors: Grega78
Tags: woocommerce, odstop od pogodbe, consumer rights, slovenia, zvpot
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPL-3.0-or-later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

A reliable and simple solution for WooCommerce compliance with EU consumer laws (Directive 2011/83/EU Article 11a) regarding contract withdrawal.

== Description ==

From June 19, 2026, all e-commerce stores in the EU must enable simple digital contract withdrawal ("withdrawal button"). This plugin ensures complete legal and technical compliance in a few minutes, without any custom development.

= Key Features: =
* **Clear and visible button** in the user account (My Account -> Orders) and on the single order details page.
* **Smart two-step online return form** to prevent accidental submissions (first click shows details, second confirms).
* **Support for guest customers** with a shortcode to look up orders by Order ID and billing email.
* **Automated email confirmations** sent to the customer (with all details and timestamp of receipt) and merchant notifications.
* **Audit Log (evidence of requests)** with timestamps, IP addresses, and processing statuses, ready for market inspection audits.
* **CSV Export** for easy compliance reporting.
* **Exclusion settings** (disabling withdrawal for specific product categories or individual product IDs, such as perishable goods or hygiene items).
* **Flexible refund methods** (original payment method, bank transfer IBAN, or store coupon/credit).

== Installation ==

1. Download and install the plugin via WordPress administration (Plugins -> Add New -> Upload Plugin).
2. Activate the plugin.
3. Go to **WooCommerce -> Settings -> Odstop od pogodbe** and adjust the settings (withdrawal window, email templates, exclusions).
4. For guest customers, create a page (e.g. "Odstop od pogodbe") and paste the shortcode: `[gr_odstop_od_pogodbe_form]`.

== Frequently Asked Questions ==

= Does the plugin work for guest customers? =
Yes, guest customers can search for their order using their Order ID and billing email, and submit a withdrawal request via the public page containing the shortcode.

= Where are the submitted requests stored? =
Requests are securely stored in a custom table in your WordPress database. You can access them anytime in the admin panel under **WooCommerce -> Odstopi od pogodbe**, where you can also export them to CSV.

== Changelog ==

= 1.0.1 =
* Lowered minimum PHP requirement to 7.4.
* Integrated Freemius SDK and cleaned up uninstall logic.

= 1.0.0 =
* Initial release of the plugin. Full compliance with the June 19, 2026 consumer rights legislation.
