=== CatCode ERLI Connector for WooCommerce ===
Contributors: catcodestudio
Tags: erli, marketplace, poland, stock sync, orders
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect WooCommerce to the ERLI.pl marketplace through the official ERLI Shop API: link products and keep stock and prices in sync.

== Description ==

You sell in your WooCommerce shop and on ERLI.pl. Every sale and every price change has to be repeated on ERLI, or the last piece is sold twice. This plugin connects the shop to your ERLI seller account through the official ERLI Shop API (REST, API key of the shop), with no subscription service in between.

= Free =

* Connection with the API key from the ERLI seller panel (Integration method, Own integration via API), live or sandbox; the key is stored encrypted.
* Linking of the products you already have on ERLI to WooCommerce products: by externalId (product ID or SKU, your choice), then by SKU. A report lists the ERLI products without a match in the shop. Nothing is created or deleted on ERLI.
* Stock and price sync of the linked products, automatically a minute after a change (a sale, an edit) and on demand. Only the changed fields are sent, in batches.
* Price rules: price with or without VAT, markup in % and a fixed add-on, a conversion rate for another shop currency, rounding (,99 / ,90 / whole złoty), or an own ERLI price per product or variation.
* Stock reserve kept for your own shop and a quantity for products without stock management; a product that is switched off or unpublished becomes inactive on ERLI.
* The "productsNeedSync" messages of the ERLI inbox are handled: the named products are sent again.
* "ERLI" column in the product list and an ERLI box in the product editor; API log for 30 days, the API key is never logged.

= Pro =

* ERLI orders in WooCommerce every 5 minutes from the ERLI inbox: buyer, delivery address or parcel locker, invoice data with NIP, products, delivery method and cost, payment (online or cash on delivery). The stock goes down here.
* Cancellations on ERLI are applied in WooCommerce, with the stock restored.
* Seller status back to ERLI (in progress, sent, ready for pickup, received, cancelled) from the WooCommerce order statuses you choose.
* Tracking numbers sent to ERLI with the carrier, from the order screen or automatically from your shipping plugin's order field.
* New products listed on ERLI from the product screen: name, HTML description, photos, shop categories, VAT rate, delivery price list and dispatch time.

Pro can be tried for 7 days for free, no card needed.

= Notes =

* ERLI shows changes with a delay of up to about 20 minutes.
* Order totals and line prices are taken from ERLI as gross amounts; the plugin does not split the VAT into WooCommerce tax lines.

= Languages =

English, Polish (pl_PL).

== Installation ==

1. Upload the plugin and activate it (WooCommerce must be active).
2. WooCommerce → ERLI → Connection: paste the API key from the ERLI seller panel and save.
3. Listings tab: choose how products are identified, then "Link products from ERLI".

== Changelog ==

= 1.0.0 =
* First release: connection, linking, stock and price sync; Pro: orders, status and tracking, listing new products.
