=== AIT eBay Sync for WooCommerce - Alberto IT ===
Contributors: albertosoliman
Donate link: https://www.paypal.com/donate/?business=info%40albertoit.com
Tags: ebay, woocommerce, sync, marketplace, orders
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 0.11.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Free, full-featured eBay integration for WooCommerce: connect your eBay seller account, sync products and inventory, import orders, send tracking back.

== Description ==

AlbertoIT eBay Sync connects your WooCommerce store to your eBay seller account using the official eBay Sell REST APIs - completely free, with no per-product limits.

**Features:**

* Connect your eBay seller account with secure OAuth 2.0 (one click)
* Production and Sandbox environment support
* Marketplace selection (eBay DE, AT, CH, US, UK, FR, IT, ES)
* Publish and update WooCommerce products as eBay listings, end listings again
* Listing policies (payment, return, shipping) loaded straight from your eBay account
* Import paid eBay orders into WooCommerce automatically every 15 minutes, with buyer, shipping address and SKU matching
* Send shipment tracking numbers back to eBay, automatically when an order is completed or manually
* Stock sync: stock changes in WooCommerce update the eBay listing quantity
* Every feature has its own on/off switch in the settings - use only what you need

**Requirements:**

* WooCommerce 7.0 or newer
* A free eBay developer account (developer.ebay.com) for API keys - the plugin's settings page walks you through it

By Alberto IT - https://albertoit.de

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install via the Plugins screen
2. Activate the plugin (WooCommerce must be active)
3. Go to "eBay Sync" > Settings and follow the two-step setup: enter your eBay developer keys, then click "Connect with eBay"

== Frequently Asked Questions ==

= Do imported eBay orders change my WooCommerce stock? =
Only for matched products that have "Manage stock" turned on. If Manage stock is off, the order line is linked but stock does not change. For variable products an eBay item links to the parent product, so variation stock is not reduced. Unmatched items are plain order lines and never change stock. The plugin never blocks an order because of stock.

= Is it really free? =
Yes. All features, no product limits, no subscriptions. You only need a free eBay developer account.

= Does it work with the eBay sandbox? =
Yes, switch between Sandbox and Production in Settings. Use the sandbox to test safely.

= Which marketplaces are supported? =
eBay Germany, Austria, Switzerland, US, UK, France, Italy and Spain at launch.

== External services ==

This plugin connects to the eBay APIs (api.ebay.com / apiz.ebay.com, or api.sandbox.ebay.com / apiz.sandbox.ebay.com in sandbox mode) and to eBay sign-in (auth.ebay.com / auth.sandbox.ebay.com). It does this only after you enter your own eBay developer keys and connect your seller account.

Data sent: OAuth tokens, product data (title, description, price, stock, images, SKU, attributes) when you publish a product, and tracking numbers when you send them. Data received: your listing policies, categories, and paid orders including buyer name and shipping address, which are imported as WooCommerce orders. Every sync feature is off by default and can be switched on and off in Settings. Nothing is sent to Alberto IT.

Optional carrier status lookup (off by default, per carrier): if you switch on a carrier and enter your own free API key, the plugin sends only the shipment tracking number to that carrier's API and reads back the delivery status. DHL: api-eu.dhl.com (https://developer.dhl.com/tracking). UPS: onlinetools.ups.com (https://developer.ups.com). 17TRACK, for Hermes, DPD, GLS and other carriers: api.17track.net (https://api.17track.net). No buyer data is sent. No order is changed.

* eBay API License Agreement: https://developer.ebay.com/join/api-license-agreement
* eBay User Privacy Notice: https://www.ebay.com/help/policies/member-behaviour-policies/user-privacy-notice-privacy-policy?id=4260

== Changelog ==

= 0.11.2 =
* Changed: the DHL complaint button now opens the DHL Nachforschung page for private senders (online franking) by default. New setting "DHL account type" switches it to the Post & DHL Geschaeftskundenportal for business senders.

= 0.11.1 =
* Fixed: the DHL complaint button now opens the Post & DHL Geschaeftskundenportal (geschaeftskunden.dhl.de), where a business sender files a Nachforschungsauftrag, instead of the recipient-side form.

= 0.11.0 =
* New: Archive tab and an Archive button per order, a count bubble for orders needing attention, and per-order buttons: Delivered / dismiss, Snooze 3 days, and File complaint (opens the carrier's claim page in a new tab). Workflow only, nothing is changed on eBay.

= 0.10.0 =
* New: filters (search, status, shipped or not, carrier, delivery status, warning, date range) and sortable columns on the Orders page, default sort by eBay order date, newest first.

= 0.9.0 =
* New (optional, off per carrier until a free API key is entered): real delivery status from DHL, UPS or 17TRACK (Hermes, DPD, GLS and others) next to each order, used by the delivery warning.

= 0.8.0 =
* New (optional, display only): eBay order date, shipped date, tracking and eBay status on the Orders page, plus a configurable highlight for orders in transit or unshipped for N days.

= 0.7.0 =
* New: Source column with an eBay badge and an eBay filter in the WooCommerce orders list (display only, optional, on by default).
* Help page and new settings translated into German and Arabic.
* Docs: stock behavior of imported orders is now explained in the Help page, next to the matching settings and in the FAQ.

= 0.6.2 =
* New: Help page in the plugin menu; item linking table on the Orders page (link eBay items to WooCommerce products without typing IDs).

= 0.6.1 =
* New (all optional, off by default): match imported order lines to products by eBay item ID (new product field) and by exact title; suppress WooCommerce order emails for imported orders.

= 0.6.0 =
* Fix: order import used a method that does not exist in WooCommerce; imported orders are now marked paid correctly. Manual import looks back 14 days, automatic import 24 hours.
* New: eBay marketplace account deletion notification endpoint (required by eBay for production keys). Buyer data on imported orders is anonymised when eBay sends a verified deletion notice.
* New: "Create default policies on eBay" button in settings. When the connected seller account has no Business Policies on the selected marketplace yet, the plugin creates a simple payment, returns and free-shipping policy via the eBay Account API, using a valid domestic shipping service for the marketplace.
* New: automatic eBay category suggestion via the Taxonomy API when no default category ID is set; the suggested category is remembered per product.
* New: eBay item specifics (aspects) on listings, taken from WooCommerce product attributes, with an optional global JSON default in Settings.

= 0.5.3 =
* Better diagnostics: policy-load errors now include the eBay error code, HTTP status and response body.

= 0.5.2 =
* Fix: send a valid BCP47 Content-Language header (e.g. de-DE) instead of letting a WordPress locale like de_DE_formal reach eBay, which rejected listing calls; inventory items now also carry the matching locale field.

= 0.5.1 =
* German (Sie) translation: added de_DE_formal files so the plugin is fully translated on sites using the formal German locale.

= 0.5.0 =
* German (de_DE) and Arabic translations included (full coverage of all 139 strings), translation loading added.
* Internal milestone labels removed from the admin UI now that all features ship.

= 0.4.4 =
* Plugin icon added (storefront with sync ring), 256x256 and 128x128.

= 0.4.3 =
* Remaining name strings updated to the new plugin name.

= 0.4.2 =
* Renamed to AIT eBay Sync for WooCommerce - Alberto IT (new slug and text domain ait-ebay-sync-for-woocommerce).

= 0.4.1 =
* Milestone 4: stock sync. Stock changes in WooCommerce update the eBay listing quantity automatically, plus a "Push current stock to eBay now" button for a full reconciliation. Gated behind the "Stock sync" toggle.

= 0.3.0 =
* Milestone 3: import paid eBay orders into WooCommerce (Fulfillment API), automatic import every 15 minutes plus manual import, buyer and shipping address mapping, product matching by SKU, per-order notes for unmatched items
* Milestone 3: send shipment tracking numbers back to eBay automatically when an order is completed, or manually from the new eBay Orders page
* New setting: WooCommerce status assigned to imported eBay orders

= 0.2.0 =
* Milestone 2: publish/update WooCommerce products on eBay (Sell Inventory API), end listings, per-product status and error messages, listing policies loaded from the eBay account, default eBay category setting. Gated behind the "Product sync" toggle.

= 0.1.0 =
* Milestone 1: eBay OAuth 2.0 connection (production + sandbox), settings page, connection dashboard, WooCommerce product preview
* Per-feature on/off switches, optional Donate and Pro boxes on the settings page

== Upgrade Notice ==

= 0.11.0 =
* Adds archive, alert dismiss/snooze and complaint links on the Orders page.

= 0.10.0 =
* Adds filters and sortable columns on the Orders page.

= 0.9.0 =
* Adds an optional carrier status lookup (off by default).

= 0.8.0 =
* Adds eBay dates and a delivery warning on the Orders page.

= 0.7.0 =
* Adds an eBay badge/filter in the orders list and a translated Help page.

= 0.6.3 =
* Documentation update (stock behavior of imported orders).

= 0.6.2 =
* Adds a Help page and an easy item linking table.

= 0.6.1 =
* Three new optional order import settings: match by eBay item ID, match by title, suppress WooCommerce emails. All off by default.

= 0.6.0 =
* Fix: order import used a method that does not exist in WooCommerce; imported orders are now marked paid correctly. Manual import looks back 14 days, automatic import 24 hours.
Adds the eBay account deletion endpoint needed for production keys, default policy creation, category suggestion and item specifics. Sync features stay off until you enable them.

= 0.5.2 =
* Fix: send a valid BCP47 Content-Language header (e.g. de-DE) instead of letting a WordPress locale like de_DE_formal reach eBay, which rejected listing calls; inventory items now also carry the matching locale field.

= 0.5.1 =
* German (Sie) translation: added de_DE_formal files so the plugin is fully translated on sites using the formal German locale.

= 0.5.0 =
* German (de_DE) and Arabic translations included (full coverage of all 139 strings), translation loading added.
* Internal milestone labels removed from the admin UI now that all features ship.

= 0.4.4 =
* Plugin icon added (storefront with sync ring), 256x256 and 128x128.

= 0.4.3 =
* Remaining name strings updated to the new plugin name.

= 0.4.2 =
All four milestones included: connect, product sync, order import with tracking push, stock sync.
