=== WTC: Sözleşmeler, Kargo, SMS, İade, Form, OTP (SMS Doğrulama), Puan, Kupon Yönetimi ===
Contributors: woosoft
Donate link: https://www.woosoft.com.tr/
Tags: sözleşmeler, mesafeli satış sözleşmesi, ön Bilgilendirme formu, tc kimlik no, fatura
Requires at least: 5.9
Tested up to: 7.0
Requires PHP: 8.2
Stable tag: 1.3.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WC Turkiye: Contracts, Form Fields, District/Neighborhood Select, Auto Postcode, Cargo, SMS, OTP, Points, Coupons, Return and Dashboard Management.

== Description ==

WooCommerce Turkiye Checkout (WTC) is a comprehensive solution developed considering the local needs and legal requirements of e-commerce sites in Turkiye. It offers the basic needs required by the E-Commerce ecosystem and laws under a single roof, securely and with high performance.

= 📍 End Address and Invoice Chaos! (🆓 Free) =
**Question:** My customers choose the wrong neighborhood or forget to enter their T.C. Identity Number. I have a hard time issuing invoices, what can I do?
  * **Hierarchical Address Selection:** Your customers select City, District and Neighborhood information from up-to-date lists, eliminating the margin of error.
  * **Automatic Postal Code:** When neighborhood or village information is selected, the postal code is automatically filled.
  * **Flexible Invoice Options:** You can dynamically present Name, Surname, T.C. Identity No for individual customers or Company Name, Tax No, Tax Office fields for corporate customers.

= ⚖️ Legal Compliance is Now Very Easy (🆓 Free) =
**Question:** Creating a Distance Sales Agreement and delivering them to the customer takes a lot of time. I don't want to leave a legal loophole, what should I do?
  * **Automatic Contract Management:** Distance Sales Agreement and Preliminary Information Form are automatically created at the time of order.
  * **Dynamic Contract Content:** Customer information is instantly reflected in contracts. Your customers see and approve the final version of the document containing their own information; this makes your legal processes legally complete and flawless.
  * **PDF Archiving:** Created contracts are saved in PDF format with random names and are both added to the order detail and sent to the customer via email.
  * **Third Custom Form:** Optionally, you can create a third customizable contract for KVKK or a different contract type specific to your e-commerce site.

= 🎫 Coupon Management System (🆓 Free) =
**Question:** Coupons I define for my customers are forgotten or they give up shopping because they cannot find the coupon code at the cart stage. How can I make my coupons more visible?
  * **Coupon Monitoring Panel:** Your customers can see all coupons defined specifically for them or active general coupons in bulk on the special interface on the "My Account" page.
  * **Transparency of Terms of Use:** Reduce "why doesn't this coupon work?" complaints by clearly showing users the restrictions and features of coupons.
  * **Full Integration:** Works 100% compatible with WooCommerce's existing coupon system; manages your existing coupons without putting extra load on your site.

= 🎨 Modern and Stylish User Experience (🆓 Free) =
**Question:** The standard WooCommerce user panel looks very complex and old. Is a more professional interface possible?
  * **Renewed My Account Page:** Offer a modern, mobile-compatible and fast user interface.
  * **Personalization:** Personalize the user interface in harmony with your site's theme.
  * **Statistic Cards:** Let your customers see their total spending, number of orders and other details with stylish graphics.

= 📄 Checkout Page Layouts and Integration (⭐️Premium) =
**Question:** Can I change the form layout and transfer data to the accounting software/ERP system I use?
  * **Customizable Field Layout:** You can adjust the order and layout of form fields according to your needs.
  * **Dynamic Custom Fields:** Add new fields in 15 different types (date, text, select etc.) to the checkout page.
  * **Meta Key Control:** Ensure full compatibility with external accounting/ERP software such as Paraşüt, Logo, BizimHesap by changing the meta key values of Identity/Tax fields.

= 🚚 Cargo Tracking and Customer Notification (⭐️Premium) =
**Question:** My customers keep asking 'Where is my cargo?'. How can I make cargo tracking professional?
  * **Cargo Panel:** With existing or your own defined cargo companies, enter tracking numbers and enable your customers to instantly track their cargo from the order detail page.
  * **PTT Cargo API Support:** If you ship with PTT Cargo, you can offer automatic tracking inquiry through your site.

= 🔒 Security and Fake Order Protection (⭐️Premium) =
**Question:** I am tired of orders with cash on delivery or created with fake information. How can I be sure I am reaching real customers?
  * **OTP (SMS Verification):** Prevent fake transactions by verifying phone numbers before ordering, at registration or login.
  * **Rate Limiting:** Prevent malicious attempts with trial and blocking mechanisms in the OTP system.

= 📱 Professional Notification with SMS (⭐️Premium) =
**Question:** Order emails sometimes fall into the spam folder or my customers don't see them. How can I inform them instantly and guaranteed?
  * **Automatic SMS Notifications:** Make information flow uninterrupted by automatically sending SMS to your customers whenever the order status changes (Order received, Shipped, Completed, etc.).
  * **Customizable Templates:** Create different text templates for each order status and address your customer by name using dynamic variables.
  * **Wide Provider Support:** While working 100% compatibly with IletiMerkezi and Verimor; it offers support for popular SMS providers such as NetGSM, Kobikom and Mutlucell.

= 📈 Customer Loyalty and Points System (⭐️Premium) =
**Question:** How can I encourage my customers to shop from my site again?
  * **Earning Points from Shopping:** Let your customers collect points from every purchase and use these points as discounts in their next orders.
  * **Welcome Gift:** Increase your registration rates by defining special points for new members or the first order.
  * **Advanced Limits:** Manage your system profitably with minimum spending or maximum point usage limits.

= 🔁 Professional Return Management (⭐️Premium) =
**Question:** How do I manage return requests, which are a legal requirement, on my site?
  * **Customer Panel Return Request:** Your customers can create a request from their own account panel by selecting the reason for return and uploading product photos.
  * **Process Tracking:** Manage requests from the admin panel, automatically inform the customer with status updates.

= ⚙️ Usability and Fine Tuning (🆓 Free) =
**Question:** I have to install many different plugins for the sine qua non features for my site. This causes extra load on my site and causes it to slow down. What can I do?
  * **Hide Unnecessary Fields:** Hide order notes, shipping calculation fields or unnecessary shipping methods with a single click.
  * **Registration Form Editing:** Create a professional registration form by adding Name/Surname, Phone fields to the member registration form.
  * **Local Currency:** You can choose to use the "TL" phrase instead of the "₺" symbol.
  * **T.C. Identity No Verification:** You can prevent erroneous data entry by managing T.C. Identity No requirement or verification from the panel.
  * **Hide Order Note:** You can hide the order note field on the checkout page.
  * **Password Strength:** Enable users to set the minimum password strength level when registering.

**HPOS Support:** Fully compatible and fast with WooCommerce High-Performance Order Storage (HPOS).
**Modular Structure:** Keep your site light and performant by turning off features you don't need.
**User Friendly:** No complex settings, "Install and Use" logic.
**Theme Compatibility:** In customer interface management; achieve perfect harmony with the theme you are using with minimum style intervention.
**Up-to-Date Data:** Current City, District, Neighborhood and Postal code information (September 2025).
**Ready Cargo Companies:** Aras Cargo, DHL E-Commerce, Fedex, Geliver.io, Hepsijet, Horoz Logistik, Kargoist, Kolay Gelsin, PTT Cargo (API), Sürat Cargo, TNT Express, Trendyol Express, UPS Cargo, Yurtiçi Cargo.


**⭐️For Premium Features:** [https://www.woosoft.com.tr/](https://www.woosoft.com.tr/)

= Demo Access =

You can test "⭐️Premium" version features on our demo site:

* **Customer:** [https://demo.woosoft.com.tr/](https://demo.woosoft.com.tr/)
  * Username: user
  * Password: user123

* **Admin:** [https://demo.woosoft.com.tr/wp-admin/](https://demo.woosoft.com.tr/wp-admin/)
  * Username: demo
  * Password: demo123

== Frequently Asked Questions ==

= Which WooCommerce versions is the plugin compatible with? =
The plugin is regularly tested and made compatible with the latest WooCommerce and WordPress versions.

= Is the plugin compatible with all WooCommerce themes? =
Tests have been conducted with the most used global themes. Since our plugin uses WooCommerce standards, it will work smoothly with your theme as well.

= Does it automatically save PDFs? =
Yes. The Distance Sales Agreement and Preliminary Information Form are saved randomly to prevent direct access to the site directory. Optional submission via email attachment is provided when the order status is "Completed", along with download links in order emails.

= I installed the plugin but the form layout does not appear on the checkout page? =
The plugin uses the standard WooCommerce checkout page. If your theme uses a different checkout page, you need to create a new page and add the [woocommerce_checkout] shortcode inside it.

= Can I use the plugin on my site that sells internationally? =
No. Currently, you can only use our plugin for domestic sales (within Turkiye). It is not suitable for international orders. On the payment page, "Turkiye" is selected and cannot be changed. You must completely disable the plugin for international orders. Future updates will make the plugin usable for international orders.

== Screenshots ==

1. Customized User Panel
2. Checkout Page (User with registered address)
3. Checkout Page (First time user)
4. Checkout Page Distance Sales Agreement (Popup)
5. User Login OTP (SMS Verification)
6. My Points Page
7. My Coupons Page
8. Successfully Completed Order Page
9. Creating User Return Request
10. Form Field Layouts and Management
11. Adding New Fields to Form Fields
12. Contract > Distance Sales Agreement Management
13. Adding and Editing Cargo Companies
14. WooCommerce Orders Page
15. Adding and Editing SMS Notification Templates
16. OTP (SMS Verification) System Settings
17. OTP (SMS Verification) System Logs
18. Return System Settings
19. Return Requests Display and Management
20. Order Detail Page with Return Request Created
21. Points Management Settings
22. Coupon Management Settings
23. User Panel Settings

== Changelog ==

= 🆓 Free - 1.3.4 - 2026-06-02 =
* Tested WordPress 7.x

= 🆓 Free - 1.3.3 - 2026-05-15 =
* Fixed a bug in the My Account > Addresses > Billing Address page where the required fields were not saved correctly according to the invoice type.

= 🆓 Free - 1.3.2 - 2026-03-24 =
* A validation system for Tax Number and Turkish ID Number (T.C. Kimlik No) has been added to the Tax Number field.

= ⭐️ Premium - 1.2.2 - 2026-03-12 =
* A button option has been added for Invoice Type selection on the payment page.
* For the corporate invoice type, the Tax Number field has been updated to support Turkish ID Number (T.C. Kimlik No) entry for sole proprietorships.
* A validation system for Tax Number and Turkish ID Number (T.C. Kimlik No) has been added to the Tax Number field.
* User interface (UI) views have been improved.

= 🆓 Free - 1.3.1 - 2026-03-12 =
* In the corporate option, the Tax ID field for sole proprietorships has been updated to support T.C. Identity Number entry.

= ⭐️ Premium - 1.2.1 - 2026-02-11 =
* More style management has been added for the user panel.
* The user panel width has been made adjustable from the admin panel.
* Due to restrictions on the use of “Dashicons” in some themes, SVG icons have been used.
* In the refund form, for orders where points are used, the refund amount has been arranged to be calculated based on the product price weight.
* The issue with calculating the discount amount when using coupons and points together on the payment page has been fixed.
* The multi-tax inconsistency in point usage has been resolved.
* User interface (UI) views have been improved.

= 🆓 Free - 1.3.0 - 2026-02-09 =
* 🎨 User Panel and 🎫 Coupon modules have been added to the free version.
* UI (User Interface) appearances improved.

= ⭐️ Premium - 1.2.0 - 2025-12-30 =
* **New:** User Points System module added.
    * Earn points from purchases and spend points on the checkout page.
    * Ability to change the points menu title, link, and unit type.
    * Point earning rates and spending rates can be configured by the administrator.
    * Encourage customers to register by offering welcome points and first order points.
    * Control point spending with settings such as minimum cart amount, minimum total points required to spend, and maximum points per order.
    * Ability to manually add and deduct points.
    * User balance management and detailed point transaction logs in the admin panel.
    * A dedicated interface that allows users to easily track their current points via the “My Account” page.
* **New:** Coupon module added.
    * Integrated with WooCommerce’s existing “Coupons” system.
    * Uses and manages the existing coupon system without adding extra load to the site.
    * Ability to change the coupon menu title and link.
    * Ability for users to view restricted coupon features.
    * A dedicated interface that allows users to easily track their current coupons via the “My Account” page.
* **New:** Modern User Panel module added.
    * A completely redesigned, modern, and responsive user interface for the “My Account” page.
    * Light and Dark mode support.
    * Dynamic info cards displaying order statistics and total spending amounts.
* Email usage can now be managed via WooCommerce > Settings > Emails.
* UI (User Interface) appearances improved.

= 🆓 Free - 1.2.0 - 2025-12-05 =
* Security update: Sanitization, validation, and escaping protocols improved based on plugin review standards.
* Fix: Register setting callbacks added.
* Fix: Text domain mismatch corrected.

= ⭐️ Premium - 1.1.3 - 2025-11-27 =
* **New:** Dynamic 'Custom Field Addition' system added to the Checkout page.
    * Supported field types: Text, Password, Email, Phone, Web Address, Long Text, Select Box, Radio Button, Single Checkbox, Multiple Checkbox, Date, Date and Time, Time, Number, and Color Picker
    * Ability to select the section to add (Billing Details / Shipping Address)
    * Assigning custom 'meta keys' for added dynamic fields
    * Assigning 'class' for theme compatibility
    * Mandatory / Optional selection
    * Dynamic display capability in contracts
    * Display capability in My Account > Addresses pages
* UI (User Interface) appearances improved.
* Fixed warning notification occurring after order confirmation.
* Fixed PDF display issues in new generation browsers.
* Contract creation library (DOMPDF) updated to the latest version.

= 🆓 Free - 1.1.2 - 2025-11-24 =
* Fixed warning notification occurring after order confirmation.

= ⭐️ Premium - 1.1.2 - 2025-11-19 =
* The 'meta key' values (billing_invoice_type, billing_tckn, billing_tax_number, billing_tax_office) used for Invoice Type, T.C. ID No, Tax Office, and Tax No fields added outside WooCommerce standards have been made changeable by the administrator in line with 3rd party compatibility requirements.
* Display of name and surname fields made optional when Corporate invoice type is selected.

= 🆓 Free - 1.1.1 - 2025-11-19 =
* Display of name and surname fields made optional when Corporate invoice type is selected.

= ⭐️ Premium - 1.1.1 - 2025-10-18 =
* Phone number entry requirement added when OTP (SMS Verification) system is activated.
* Time display in SMS verification messages corrected according to user time zones.
* API-supported PTT Cargo tracking viewing feature added to the admin panel.
* Progress bar added to the return form during image upload.
* UI (User Interface) appearances improved.

= 🆓 Free - 1.1.0 - 2025-10-16 =
* **New:** Third customizable contract form
* **New:** Adding phone field to registration form
* City, District, Neighborhood, and Postal Code data updated (September 2025)
* T.C. Identity No optional/mandatory setting added
* Made compatible with the latest WordPress/WooCommerce versions

= ⭐️ Premium - 1.1.0 - 2025-10-12 =
* **New:** OTP (SMS Verification) System added.
    * Phone number verification before ordering
    * Two-factor authentication on user login
    * Phone number verification during member registration
    * Rate limiting, attempt limit, and blocking mechanism
    * Separate templates for checkout, login, and registration forms
    * Detailed logs and statistics of all OTP (SMS) transactions
* **New:** API-supported PTT Cargo tracking system added.
* **New:** Phone field feature optionally added to member registration form.
* City, District, Neighborhood, and Postal Code data updated (September 2025).
* Popular cargo companies added by default and updated.
* Most used SMS templates based on order status added by default.
* Verimor and IletiMerkezi made 100% compatible with SMS Notification and OTP system as SMS providers.
* Fixed order loss issue by setting order statuses belonging to the return system to "Completed" when the plugin is deactivated.

= ⭐️ Premium - 1.0.3 - 2025-09-03 =
* "Mandatory / Optional" option added for T.C. Identity No field in Individual invoice type.

= 🆓 Free - 1.0.2 - 2025-07-08 =
* Bug fixes

= ⭐️ Premium - 1.0.2 - 2025-07-06 =
* Bug fixes

= 🆓 Free - 1.0.1 - 2025-07-05 =
* Bug fixes

= 🆓 Free - 1.0.0 - 2025-07-01 =
* First stable release

= ⭐️ Premium - 1.0.1 - 2025-07-01 =
* Bug fixes

= ⭐️ Premium - 1.0.0 - 2025-06-21 =
* First stable release

== Installation ==

1. Install the WTC plugin via the WordPress.org plugin repository or by uploading the files to your server.
2. Activate the plugin from the WordPress admin panel.
3. Configure the plugin settings according to your needs.
4. If there is no change on the Checkout page; create a new page and add the [woocommerce_checkout] shortcode inside it.
