=== CodeTrappers Supplier Sync for Fashion Biz and Legend Life ===
Contributors: yusufmudagal, ekamran, Saimarafat
Stable tag: 1.0.0
Tested up to: 7.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Import supplier products from Fashion Biz and Legend Life into WooCommerce.

== Description ==

CodeTrappers Supplier Sync for Fashion Biz and Legend Life imports supplier catalog data into WooCommerce by using each supplier API.

The plugin is intended for store administrators who already have valid supplier API credentials. It can create and update WooCommerce products by SKU, including descriptions, categories, tags, attributes, prices, stock, images, and variations.

== Features ==

* WordPress admin settings under WooCommerce > CodeTrappers Sync.
* Manual background import controls.
* Optional scheduled WP-Cron import: hourly, daily, weekly, or monthly.
* Product create/update by SKU.
* Batch processing to reduce server timeouts.
* Variable product support when supplier variations are available.
* Optional product image downloads into the WordPress Media Library.
* Optional variation image attachment when the supplier API provides SKU-level images.
* Import logs visible in WordPress admin.

== Included Suppliers ==

* Fashion Biz REST API.
* Legend Life REST API.

== External Services ==

This plugin connects to external supplier APIs only when an administrator tests supplier credentials, starts a manual import, or when a scheduled import runs.

= Fashion Biz API =

This plugin connects to the Fashion Biz API at `https://www.fashionbizapis.com/api/v3` to fetch product catalog data for WooCommerce imports.

Data sent: the configured API token, brand slug, branch/country code, product slug when requesting product detail data, and normal HTTP request metadata such as the server IP address.

Data received: product names, descriptions, categories, tags, prices, stock, attributes, variations, and image URLs.

Service provider: Fashion Biz / Biz Collection.

Terms / Site Notice and Privacy Policy: https://www.fashionbiz.com.au/privacy-policy

= Legend Life API =

This plugin connects to the Legend Life API at `https://api.legendlife.com.au/v1` to fetch product catalog, pricing, stock, SKU, and image data for WooCommerce imports.

Data sent: the configured bearer token, customer key, requested page number, page size, style code for pricing and stock requests, and normal HTTP request metadata such as the server IP address.

Data received: product names, descriptions, categories, tags, prices, stock, attributes, variations, SKU data, and image URLs.

Service provider: Legend Life.

Terms and Conditions / Company Policies: https://www.legendlife.com.au/media/wysiwyg/Epicentre-CompanyPolicies.pdf

Privacy Policy: https://www.cabac.com.au/privacy-policy

= Supplier Images =

When the Download images setting is enabled, WordPress may request supplier image URLs and store those files in the WordPress Media Library. When image downloading is disabled, this plugin does not import product or variation images.

== Installation ==

1. Upload `codetrappers-supplier-sync-fashion-biz-legend-life` to `wp-content/plugins/`.
2. Activate the plugin in WordPress admin.
3. Open WooCommerce > CodeTrappers Sync.
4. Add supplier API credentials.
5. Run a manual import first on staging.
6. Enable scheduled imports after confirming product mapping.

== Frequently Asked Questions ==

= Does this plugin require API credentials? =

Yes. The plugin needs valid supplier API credentials before it can import products.

= Does the importer overwrite WooCommerce product data? =

Yes. Products are matched by SKU. Fields controlled by the importer, such as title, description, price, stock, attributes, variations, and imported images, may be updated on later imports.

= Can imports run automatically? =

Yes. Scheduled imports can run hourly, daily, weekly, or monthly using WP-Cron.

== Changelog ==

= 1.0.0 =

* Initial release.
