=== Torgly for WooCommerce ===
Contributors: torgly
Tags: marketplace, tradera, cdon, fyndiq, multichannel
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 0.5.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sell your WooCommerce products on Nordic marketplaces. Stock, orders and tracking sync automatically.

== Description ==

Torgly connects your WooCommerce store to Nordic marketplaces. Tradera works today. CDON, Fyndiq, Elgiganten and Stadium are being tested now and open to all stores when they are ready.

* Connect in a minute – approve in WooCommerce, no keys to copy.
* Choose "Sell on …" on the product or with a bulk action in the product list.
* Stock is updated on the marketplaces as soon as it changes, including after a sale.
* Marketplace orders are created in WooCommerce. Set the order to Completed and the marketplace is notified with the tracking number.
* Price per marketplace directly on the product, with automatic markup and rounding when left empty.
* Runs alongside your current integration (for example Sello) – orders and publishing stay paused until you switch.
* Supports HPOS and classic order storage.

The plugin interface is available in English and Swedish. The Torgly app is available in English, Swedish, Danish, Norwegian and Finnish.

== Installation ==

1. Install and activate the plugin. WooCommerce must be active.
2. Go to Torgly → Connect in the admin menu and click Connect to Torgly.
3. Approve the access in WooCommerce. You are sent back to WordPress when it is done.
4. Open Torgly and connect the marketplaces you want to sell on.

Requirements: https, and permalinks set to anything other than "Plain" (Settings → Permalinks).

== Frequently Asked Questions ==

= Do I need a Torgly account? =

Yes. The account is created when you connect the store. Torgly is a paid service with a fixed monthly price and a 14-day free trial. No features in the plugin are locked.

= Do I need my own seller account on the marketplaces? =

Yes. You sell under your own seller account on each marketplace and connect it in Torgly.

= Can I keep using Sello or another integration while I try Torgly? =

Yes. When Torgly finds existing listings it pauses orders and publishing, so nothing is duplicated. You switch when you are ready.

= What happens if I deactivate the plugin? =

Syncing stops. Your listings on the marketplaces are not removed.

== External services ==

This plugin connects your store to Torgly (https://www.torgly.com), a service that publishes your products on marketplaces and imports marketplace orders into WooCommerce. It does not work without a Torgly account.

The plugin talks to Torgly at https://app.torgly.com:

* When you connect: WooCommerce creates a REST API key that you approve. Torgly uses it to read products and create orders. The plugin exchanges a one-time code for a shared secret.
* While connected: when products, stock or order status change, the plugin sends the ID and type of the change, signed with the shared secret. Torgly then reads the current data through the REST API.
* On the product and plugin pages: the plugin asks Torgly for marketplace prices and connection status, and sends prices you change.
* When you open Torgly from wp-admin: your email address, display name and admin language are sent in a signed link so that you are logged in.
* When you deactivate the plugin: a notice is sent so that Torgly pauses syncing.

Terms of service: https://app.torgly.com/terms
Privacy policy: https://app.torgly.com/privacy
Pricing: https://www.torgly.com/#pricing

== Changelog ==

= 0.5.0 =
* The plugin texts are now in English, with a Swedish translation included.
* Styles and scripts are loaded as separate files.

= 0.4.0 =
* Torgly has its own menu in wp-admin with shortcuts to Overview, Products, Orders, Campaigns, Marketplaces and Settings (opened logged in, in a new tab). The number on the menu shows products that need attention.
* Still available under WooCommerce → Torgly.

= 0.3.0 =
* Price per marketplace directly on the product: one field per connected marketplace under Regular price (and on each variation). Empty = Torgly's automatic price, shown in the field.

= 0.2.0 =
* Torgly opens in the same language as the WordPress user (Swedish, English, Danish, Norwegian, Finnish).
* Torgly product tab: link to price per marketplace in Torgly.

= 0.1.0 =
* First version: connection, events, "Sell on" for products, order box with tracking.
