=== Infumar Affiliate Tracking ===
Contributors: cihanhosgor
Tags: affiliate, influencer, marketing, tracking, woocommerce
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 2.3.0
WC requires at least: 4.0
WC tested up to: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Affiliate sales tracking for Infumar influencer marketing platform. Automatically tracks sales from influencer referral links.

== Description ==

Infumar Affiliate Tracking integrates your WooCommerce store with the Infumar influencer marketing platform. The plugin automatically tracks sales that come from influencer referral links and reports them to Infumar for commission calculation.

**Features:**

* Automatic sale tracking from affiliate links
* Refund and cancellation tracking
* Product synchronization to Infumar
* Easy setup with API key
* WooCommerce HPOS compatible
* Debug mode for troubleshooting

**How it works:**

1. An influencer shares their unique affiliate link
2. A customer clicks the link and lands on your store
3. The plugin stores the referral data in a cookie
4. When the customer completes a purchase, the sale is reported to Infumar
5. Commission is calculated based on your project settings

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/infumar-affiliate-tracking/`
2. Activate the plugin through the 'Plugins' screen in WordPress
3. Go to Infumar menu in WordPress admin
4. Enter your API Key from the Infumar project settings
5. Click "Test Connection" to verify the integration
6. Products will be automatically synced

== Frequently Asked Questions ==

= Where do I find my API Key? =

Log in to your Infumar account, go to your project settings, and copy the API Key from the Integration section.

= How long does the affiliate cookie last? =

The affiliate cookie lasts for 30 days. If a customer purchases within 30 days of clicking an affiliate link, the sale will be attributed to the influencer.

= Are refunds tracked? =

Yes, refunds and order cancellations are automatically reported to Infumar to adjust commission calculations.

= Does this work with WooCommerce HPOS? =

Yes, the plugin is fully compatible with WooCommerce High-Performance Order Storage (HPOS).

== Screenshots ==

1. Plugin settings page
2. Connection status and statistics
3. Product synchronization

== Changelog ==

= 2.1.0 =
* Product sync now sends each product's storefront URL (get_permalink), so affiliate links open the product page instead of the store homepage

= 2.0.0 =
* Major update for Infumar V3 API compatibility
* New REST API endpoint structure
* Improved product data format
* Better error handling
* Code cleanup and optimization

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 2.0.0 =
This version is required for Infumar V3. Please update your API Key after upgrading.
