=== Revup Social ===
Contributors: seshsuk18
Tags: woocommerce, referral, commission, affiliate, earnings
Requires at least: 6.2
Requires Plugins: woocommerce
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Custom WooCommerce referral sharing, commission tracking, earnings, bank accounts, and withdrawal requests for Revup products.

== Description ==

Revup Social adds custom referral-chain sharing and commission tracking to WooCommerce products.

Store admins can mark selected WooCommerce products as Revup products and configure:

* Total commission percentage
* Direct commission percentage
* Throughout commission percentage

Logged-in customers can generate Revup share links from eligible product pages. When buyers purchase through a Revup link, the plugin records direct and throughout commission rows based on the tracked sharing chain.

Customers can view earnings from My Account, add bank accounts, request withdrawals, and review withdrawal history. Store admins can review commissions and process withdrawal requests from the WooCommerce admin menu.

This plugin requires WooCommerce.

== External services ==

This plugin can connect users to WhatsApp and Facebook sharing URLs when a logged-in customer chooses to share a generated referral link.

WhatsApp sharing is used to open a WhatsApp share window from the product page. When the customer clicks the WhatsApp share button, the generated referral link, product title, and short product description are included in the share text and sent to WhatsApp through `https://api.whatsapp.com/send`.

WhatsApp is provided by Meta Platforms, Inc. Terms: https://www.whatsapp.com/legal/terms-of-service Privacy Policy: https://www.whatsapp.com/legal/privacy-policy

Facebook sharing is used to open a Facebook share window from the product page. When the customer clicks the Facebook share button, the generated referral link is sent to Facebook through `https://www.facebook.com/sharer/sharer.php`.

Facebook is provided by Meta Platforms, Inc. Terms: https://www.facebook.com/legal/terms Privacy Policy: https://www.facebook.com/privacy/policy/

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/revup-social` directory, or install the plugin zip through the WordPress Plugins screen.
2. Activate the plugin through the Plugins screen in WordPress.
3. Make sure WooCommerce is installed and active.
4. Edit a WooCommerce product and enable "Is this a Revup product?"
5. Enter the commission percentages and save the product.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes. Revup Social only works when WooCommerce is installed and active.

= Does this plugin automatically send payouts? =

No. The plugin records earnings and withdrawal requests. Store admins process payments outside the plugin and then mark withdrawal requests as processed.

= Where do customers see earnings? =

Customers can open My Account > Earnings. They can also manage bank accounts and view withdrawal history from My Account.

= Where do admins see commission and withdrawal data? =

Admins can open WooCommerce > Revup Commissions and WooCommerce > Withdraw Requests.

== Screenshots ==

1. Revup product commission fields in WooCommerce product settings.
2. Revup Share button on eligible product pages.
3. Customer earnings and withdrawal request flow.
4. Admin commission and withdrawal request tables.

== Changelog ==

= 1.0.0 =
* Initial public release.
* Added Revup product commission configuration.
* Added referral link generation and sharing.
* Added direct and throughout commission tracking.
* Added customer earnings dashboard.
* Added bank account management.
* Added withdrawal request functionality.
* Added admin commission management.
* Added admin withdrawal request processing.
* Added login and registration redirect handling for referral links.

== Upgrade Notice ==

= 1.0.0 =
Initial public release of Revup Social.
