=== Express AI - Kargo Takibi ===
Contributors: expressai
Tags: woocommerce, expressai, shipping, tracking, orders
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Shows a "Kargo Takibi" button on WooCommerce Order Tracking and My Account order detail pages when Express AI tracking URL meta is available.

== Description ==

This plugin reads the `_expressai_tracking_url` order meta field (written by "Express AI - Sipariş Entegrasyonu" via the status feed) and displays a **Kargo Takibi** button for customers when the URL is set and not empty.

= Features =

* Order Tracking page (guest order lookup result).
* My Account → Orders → Order detail page.
* Configurable open mode: iframe (mobile-friendly modal with "Kapat" close button) or new tab.
* Configurable WooCommerce hook position for button placement.
* Per-page toggles (Order Tracking / My Account).
* Compatible with WooCommerce HPOS (High-Performance Order Storage).

= Requirements =

* WooCommerce
* "Express AI - Sipariş Entegrasyonu" (or any integration that writes `_expressai_tracking_url` via status feed)

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`.
2. Activate through the WordPress admin (WooCommerce must be installed).
3. Configure under WooCommerce → Express AI Kargo Takibi.

== Frequently Asked Questions ==

= Why is the button not visible? =

The `_expressai_tracking_url` meta field must be set on the order. This is populated when Express AI sends a status feed with `trackingUrl`. Check the order meta in admin (Sipariş Entegrasyonu or Barkod plugin boxes).

= Which WooCommerce hook should I use? =

"After order table" works for My Account order details. For Order Tracking page results, the plugin automatically falls back to `woocommerce_view_order` when a different hook is selected.

== Changelog ==

= 1.0.0 =
* Initial release.
