=== SMC Fashion Dropship Connector ===
Contributors: nodirg
Tags: dropshipping, wholesale, inventory sync, product import, dresses
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.2.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Import SMC Fashion's wholesale dress catalog into WooCommerce and keep stock in sync automatically.

== Description ==

SMC Fashion is a US wholesaler of formal, prom, bridal and evening dresses. This plugin connects your WooCommerce store to our catalog so you can sell our styles without holding stock.

* **Browse and import:** pick styles from the full SMC catalog inside wp-admin. Products arrive with photos, sizes, colors and your markup applied.
* **Automatic stock sync:** sizes that sell out at SMC are set to zero in your store, and restocks come back. You do not run any cron job.
* **One-click connect:** WooCommerce's own Approve screen grants access. There are no API keys to copy.
* **Orders:** new orders containing SMC styles are sent to SMC for fulfilment.

= Plans =

* **Free:** up to 10 styles in your store.
* **Unlimited:** all styles for $39/month, billed through Stripe. Cancel any time.

An SMC Fashion account is not required to try the free plan. Fulfilment of orders is covered by SMC Fashion's dropship terms.

== Installation ==

1. Install and activate WooCommerce. The site must use https://.
2. Install this plugin from Plugins → Add New, then activate it.
3. Open **SMC Fashion** in the wp-admin menu and click **Connect**.
4. WooCommerce asks you to approve Read/Write access for "SMC Fashion Dropship". Click **Approve**.
5. Back on the SMC Fashion page, pick styles, set your markup and click **Import selected**.

If WooCommerce shows an error after you click Approve (some hosts block a site from calling itself), use **Connect with my own REST API key** on the same page. Create the key under WooCommerce → Settings → Advanced → REST API with Read/Write permission.

== Frequently Asked Questions ==

= Why does it need Read/Write access? =

SMC creates the products you import, updates their stock levels, and receives order details for fulfilment. It does not read or change anything else in your store.

= Does stock keep syncing if I deactivate the plugin? =

Yes. Deactivating keeps the connection, so a temporary deactivation does not break anything. Click **Disconnect**, or delete the plugin, to stop syncing.

= How often is stock updated? =

Every hour or so. Large stores can take longer to finish a full pass.

= Can I edit imported products? =

Yes. Titles, descriptions, prices and photos are yours to change. SMC only updates stock quantities on the variations it created.

== External services ==

This plugin connects to SMC Fashion's dropship service at https://dropship.smcfashion.com, which is operated by SMC Fashion. The plugin does nothing without this service.

Data is sent only after you click Connect and approve access in WooCommerce:

* **When you connect:** your store's address and the WooCommerce REST API key you approved. SMC uses the key to create the products you import, update their stock and register an order webhook.
* **When you browse or import:** your search text, page number, the styles you selected and your markup.
* **When you upgrade:** your wp-admin user's email address, for the Stripe receipt. Payment is handled by Stripe on its own checkout page (https://stripe.com/privacy).
* **When you disconnect or delete the plugin:** a disconnect request, so SMC stops syncing and forgets the key.
* **While connected:** SMC's servers call your store's WooCommerce REST API to update stock, and WooCommerce sends SMC new orders through a webhook. This happens on SMC's schedule, not from your site.

Terms of service: https://dropship.smcfashion.com/terms
Privacy policy: https://dropship.smcfashion.com/privacy

== Screenshots ==

1. The SMC Fashion page before connecting.
2. WooCommerce's Approve screen.
3. Browsing and importing styles.

== Changelog ==

= 0.2.1 =
* Every function, class, option, action and REST route now uses the unique prefix smcfds.

= 0.2.0 =
* Connect through WooCommerce's built-in Approve screen.
* Upgrade to the unlimited plan from inside the plugin.
* Deactivating no longer disconnects the store.
* Disconnect now requires the store's own key.

= 0.1.0 =
* First release.

== Upgrade Notice ==

= 0.2.1 =
Internal names renamed; reconnect if you connected with 0.2.0.

= 0.2.0 =
Connecting now uses WooCommerce's own Approve screen.
