=== Dropday - Dropship Order Automation ===
Contributors: dropday
Tags: dropshipping, automation, order automation, email to suppliers
Requires at least: 5.0
Tested up to: 7.1
WC requires at least: 3.2
WC tested up to: 11.2
Requires PHP: 7.0
Requires Plugins: woocommerce
Stable tag: 1.1.2
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Automatically sync your WooCommerce orders to Dropday for dropship order automation.

== Description ==

Dropday - Automatically synchronizes your WooCommerce orders to the Dropday platform, enabling seamless dropship order processing and automation.

= Features =

* Automatic order synchronization when orders are paid
* Choose the order status that sends orders to Dropday (e.g. Completed)
* Support for various cost-of-goods plugins
* Configurable product meta data whitelist
* Delivery date support from popular delivery date plugins
* Product tags sent as order line labels
* Track and trace added to the order as WooCommerce fulfillments, one per shipment with the products in it, also when an order is split across suppliers
* Live/Test mode toggle

== Installation ==

1. Download the Dropday plugin
2. Go to the admin area of your store
3. In the admin area, go to 'Plugins' and then 'Add New' and choose 'Upload Plugin'
4. Click on 'select file', upload the .zip file and click on 'Install Now'
5. Click on 'Activate Plugin'

== Configuration ==

Go to Settings → Dropday

1. Enter your API Key and Account ID from your Dropday Dashboard
2. Optionally choose the order status that sends orders to Dropday under 'Send orders on status' (default: any paid status)
3. Check 'Live mode' when you are ready to process real orders

When you save the settings, the plugin adds a webhook to your Dropday account, so Dropday can send track and trace back to your store. You can see it under Webhooks in your Dropday settings. Use the 'Install webhook' button under 'Track and trace' to install it again, for example after rotating its secret in Dropday.

== External Services ==

This plugin connects to the Dropday API to synchronize your WooCommerce orders for dropship order automation.
Endpoint: https://dropday.io/api/v1
Documentation: https://docs.dropday.io/

= What data is sent =

When an order is sent to Dropday (see "When data is sent"), the following data is sent to the Dropday API:

* Order ID and total amount
* Customer shipping address (name, company, address, city, postcode, country, phone)
* Customer email address
* Shipping method and cost
* Customer notes
* Delivery date (if available from delivery date plugins)
* Product information (name, SKU, quantity, price, image, brand, category)
* Product purchase price (if available from cost-of-goods plugins)
* Product tags as order line labels

To receive track and trace, the plugin registers a webhook in your Dropday account with your store's webhook URL (https://your-store.com/wp-json/dropday/v1/webhook).

= When data is sent =

Order data is sent automatically when:

* An order status changes to a paid status in WooCommerce (default)
* Or, if a status is chosen under 'Send orders on status', an order changes to that status

The webhook is registered when the settings are saved, when you click 'Install webhook' (or on the first visit to the admin after updating the plugin), and removed when the plugin is deactivated.

= What data is received =

When a supplier ships its part of an order, Dropday sends the tracking code, the tracking link, the carrier and the products in that shipment to your store. The plugin adds these to the WooCommerce order as a fulfillment, which WooCommerce shows on the order and emails to the customer. When an order is split across suppliers, each shipment gets its own fulfillment.

This uses WooCommerce Order Fulfillments (WooCommerce 10.1 or newer), which the plugin turns on, as WooCommerce has no setting for it yet.

= Service Provider =

This service is provided by Dropday.

* Service website: https://get.dropday.io
* Terms of Service: https://get.dropday.io/terms-of-service
* Privacy Policy: https://get.dropday.io/terms-of-service

== Frequently Asked Questions ==

= Where do I find my API Key and Account ID? =

You can find your API Key and Account ID in your Dropday Dashboard at https://dropday.io

= Does this plugin require WooCommerce? =

Yes, this plugin requires WooCommerce to be installed and activated.

== Changelog ==

= 1.1.0 =
* Updated plugin name for compliance
* Added Requires Plugins header for WooCommerce dependency
* Improved internationalization with proper text domain
* Security improvements with proper escaping
* Updated compatibility to WordPress 6.9 and WooCommerce 9.4

= 1.0.3 =
* Added configurable delivery date meta fields
* Added configurable purchase price meta fields
* Added product meta data whitelist feature

= 1.0.2 =
* Initial public release

== Upgrade Notice ==

= 1.1.0 =
This version includes important security and compliance updates. Please update immediately.
