=== Merch Factory for WooCommerce ===
Contributors: merchfactory
Tags: print on demand, dropshipping, fulfillment, woocommerce, apparel
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
WC requires at least: 7.0
WC tested up to: 9.3
Stable tag: 1.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect WooCommerce to Merch Factory for print on demand fulfillment, an embedded order portal and automatic tracking sync.

== Description ==

Merch Factory is India's premier on-demand apparel manufacturing and dropshipping fulfillment platform. With our official WooCommerce extension, you can connect your WordPress store and automate print-on-demand fulfillment seamlessly.

= Key Features =

* **Embedded Admin Portal**: Manage orders, check live factory manufacturing progress, and monitor wallet balance right inside WordPress Admin.
* **Pull-Based On-Demand Sync**: Zero brittle webhooks. Orders sync securely via the official WooCommerce REST API.
* **1-Click Order Fulfillment**: Review customer details, select live courier rates (Delhivery, BlueDart, DTDC, Shiprocket), and trigger industrial DTF/DTG production with 1 click.
* **Automated Tracking Sync**: When orders dispatch from our facility, genuine courier tracking numbers and links sync back to WooCommerce automatically, notifying customers instantly.
* **HPOS Compatible**: 100% compatible with WooCommerce High-Performance Order Storage (HPOS) and legacy custom post types.

== Installation ==

1. Upload `merch-factory-woocommerce.zip` via **Plugins > Add New > Upload Plugin** in your WordPress Admin.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Open the **Merch Factory** menu in your WordPress Admin sidebar to connect your store and start fulfilling orders!

== Frequently Asked Questions ==

= Do I need a Merch Factory account? =
Yes. You can sign up for free at [merchfactory.in](https://www.merchfactory.in).

= Does this require webhook configuration? =
No! Merch Factory uses secure, on-demand pull synchronization via the WooCommerce REST API, ensuring 100% reliability even on shared hosting environments.

= Are custom packaging and branding supported? =
Yes. Merch Factory offers custom branded neck labels, shipping label branding.

== External Services ==

This plugin connects your store to the Merch Factory service (https://www.merchfactory.in), which is required for it to work.

* **Embedded portal**: the Merch Factory admin screen loads https://www.merchfactory.in inside an iframe. Your store URL and a signed, per-store token are sent so the portal can identify your store.
* **Order and tracking sync**: Merch Factory reads orders from your store through the WooCommerce REST API, and writes tracking details back to those orders.
* Terms of Service: https://www.merchfactory.in/terms-of-service
* Privacy Policy: https://www.merchfactory.in/privacy-policy

== Changelog ==

= 1.1.1 =
* Fix: portal handshake route moved to the wc/v3 namespace so WooCommerce API keys can authorize it.

= 1.1.0 =
* Security: embedded portal URL is now signed with a per-store secret (REST handshake at /wp-json/wc/v3/mf-handshake).
* Tracking details are stored on the order and shown to customers without duplicate emails.
* Minimum versions raised to WordPress 6.0 / WooCommerce 7.0.

= 1.0.0 =
* Initial release of Merch Factory for WooCommerce.
* Embedded admin management portal.
* Live fulfillment status badges in WooCommerce Orders table.
* Automated tracking synchronization and customer order note notifications.

== Upgrade Notice ==

= 1.1.1 =
Fixes the portal handshake so WooCommerce API keys can authorize it. Recommended for all users.
