VibeFox Affiliate — Help
Requirements
WordPress: 5.8 or later.
WooCommerce: 6.0 or later, installed and active. The plugin refuses to activate without it.
PHP: 8.0 or later.
CAPTCHA (optional): to protect the registration form, a site key and a secret key from Google reCAPTCHA (v2 or v3) or Cloudflare Turnstile.
VibeFox license key: bought on vibefox.net. One key works on one domain.
Installation
1. In WordPress go to Plugins > Add New > Upload Plugin, choose the plugin ZIP file and click Install Now. You can also upload the vfw_affiliate folder to /wp-content/plugins/ by FTP.
2. Click Activate. WordPress opens VF Affiliate > Settings > License. Paste your VibeFox license key into License key and click Activate. Until the key is active the plugin stays switched off and its menu shows only Settings (see License key).
3. Once the key is active, the plugin creates its database tables, a daily task and two pages: Affiliate Registration with the [vfw_a_register] shortcode and Affiliate Dashboard with the [vfw_a_dashboard] shortcode.
4. The menu VF Affiliate appears in the WordPress admin. Open VF Affiliate > Settings, or click Settings under the plugin name on the Plugins page.
5. Set the default commission, the refund period, the payout rules and the e-mails (see Configuration). Optionally add banners in VF Affiliate > Creatives and set product or category rates on their edit screens.
6. Share the Affiliate Registration page with your partners.
Configuration
All settings are on VF Affiliate > Settings, in tabs on the left. Click Save Changes after editing. The menu and all plugin screens are available to users who can manage WooCommerce (Administrator and Shop manager).
General
Enable the affiliate program: when off, referral links are not tracked and no new commissions are created. Default: on.
New affiliates: how new applications are handled.
Every new customer becomes an affiliate: customer accounts created at checkout or in My Account get an active affiliate account automatically. Default: off.
Registration page: the page with the [vfw_a_register] shortcode. Set automatically on activation.
Affiliate dashboard page: the page with the [vfw_a_dashboard] shortcode. The e-mails link to it. Set automatically on activation.
QR code in the affiliate dashboard: shows a QR code of the referral link. The image is generated by the external service api.qrserver.com, and the referral link is sent to it. Default: on.
Commissions
Rate priority: product, then product category, then the individual affiliate rate, then the tiered rate, then the default rate below. Product and category rates are set on the product and category edit screens, affiliate rates on the affiliate's page.
Default commission type: Percentage of the order (default) or Fixed amount per order.
Default rate: a percent, or an amount in the store currency for the fixed type. Default: 10.
Calculate without taxes: the commission base does not include tax. Default: on.
Calculate without shipping: the commission base does not include shipping. Default: on.
Calculate from the price before coupon discounts: when on, the commission is calculated from the price before coupons. Off (default, recommended): from what the customer actually paid.
Approve automatically after (days): pending commissions are approved by the daily task once the order is this old and still paid. Use your refund period. 0 means you approve commissions manually. Default: 14.
Reverse commissions on refunds and cancellations: refunded, cancelled and failed orders reject their unpaid commissions, and a partial refund reduces them. Default: on.
Welcome bonus for the first referred sale: a one-time extra commission in the store currency for the affiliate's first credited sale. 0 means off.
Tiered rates
Enable tiered rates: the rate grows with the affiliate's total referred sales (the order bases of their earned commissions). Used for affiliates without an individual rate. Default: off.
Tiers: rows with From total sales of, Rate and Type (Percentage or Fixed per order). Example: from 0, 5 %; from 1000, 7 %; from 5000, 10 %.
Multi-tier & lifetime
Multi-tier commissions: an affiliate who recruited another affiliate earns a share of that affiliate's commissions. The recruiter is the affiliate whose referral link the new affiliate used to reach the registration page. You can also set it on the affiliate's edit screen. Default: off.
Levels (including the selling affiliate): from 2 to 10. Default: 2.
Share per level (%): comma-separated, from level 2. "50, 25" means the recruiter gets 50 % of the seller's commission and the next one up 25 %.
Lifetime commissions: a registered customer referred once stays linked to the affiliate of their first credited sale. All their later orders earn a commission, even without a referral link. Default: off.
Tracking
Referral URL parameter: links look like ?ref=12 or ?ref=anna (vanity slug). Default: ref. Changing it breaks links already shared.
Cookie lifetime (days): how long after the click an order is still credited. Default: 30. Can be overridden per affiliate.
When a visitor clicks links of two affiliates:
Referral links: tracks ?ref= links. Default: on.
Affiliate coupons: an order with a coupon linked to an affiliate is credited to them. The coupon wins over a referral cookie. Default: on.
Direct link tracking: visitors coming from a website registered for an affiliate (on the affiliate's edit screen) are credited without a referral parameter. Default: off.
Page-cache compatible tracking: a tiny script records the click even when the page is served from a cache. Default: on.
Forget the referral after an order: only the first order after a click is credited. Default: off.
Count repeated clicks once within (minutes): repeated clicks from one visitor in this time are counted as one visit. Default: 30.
Keep visits for (days): unconverted visits older than this are deleted daily. 0 keeps them forever. Default: 90.
Client IP source: where the visitor's IP address comes from. Choose a proxy header only if the site is behind that proxy or CDN, otherwise visitors could fake their IP.
Payouts
You pay affiliates outside the store (PayPal, bank transfer and so on) and then mark the payout as paid in VF Affiliate > Payouts. Store credit creates a one-time coupon automatically. No payment API is contacted.
Methods affiliates can choose: PayPal, Bank transfer, Store credit (coupon) and Other / manual. Default: PayPal, Bank transfer and Store credit (coupon).
Minimum payout: the smallest amount an affiliate can request. Default: 50.
Maximum per payout: the largest amount of one payout. 0 means no limit (default).
New affiliates can request payouts after (days): a waiting period from the day the affiliate joined. Default: 0.
Fraud prevention
Block self-referrals: no commission when the order is placed by the affiliate's account or with their e-mail. Default: on.
Limit clicks per IP: turns on the click limit below. Default: off.
Max clicks per IP and hour: clicks above this number are not tracked. Default: 20.
Blocked referring domains: one per line. Sub-domains are included. Clicks from these sites are not tracked.
Block paid-ads traffic: clicks with ad click IDs (gclid, fbclid, msclkid, ttclid and others) or utm_medium=cpc are not tracked. Default: off.
Block bots and hidden-frame clicks: clicks from bots and hidden frames are not tracked. Default: off.
Warn about unusual conversion rates: logs (does not block) affiliates who convert more than 50 % of their clicks within 24 hours. Default: off.
Registration form
Extra questions: rows with Question, Type (Text, E-mail, URL, Long text, Select or Checkbox), Required and Options (select, comma-separated). The answers are saved in the affiliate's admin notes.
Require accepting the terms: adds a required "I agree to the Terms & Conditions" checkbox. Default: on.
Terms page: the page the checkbox links to.
CAPTCHA: protects the form. Used only when both keys are filled in. Default: off.
CAPTCHA service: Google reCAPTCHA v2 (default), Google reCAPTCHA v3 or Cloudflare Turnstile.
Site key: the site key from the CAPTCHA service.
Secret key: the secret key from the CAPTCHA service.
E-mails
From name: the sender name of the plugin e-mails. Default: your site name.
From e-mail: the sender address. Default: the site admin e-mail.
The e-mail texts come from the plugin folder template/email-*.php. To change one, copy it into your (child) theme as vfw-affiliate/emails/ plus the file name.
Each e-mail has its own switch, all on by default. To the store (sent to the site admin e-mail):
To affiliates:
Cron
Shows the daily maintenance task: Schedule, Last Run and Next Run. The task approves eligible commissions and removes expired visit records. If WP-Cron does not run on the site, the tab warns that the daily task is overdue.
Logging
Write a debug log: records commissions, payouts, status changes, e-mails and fraud events in a protected .php file. Default: off.
Log level: Everything (default), Warnings and errors or Errors only.
Delete log entries older than (days): default 30.
Latest log entries: shows the last log lines on the settings page.
Uninstall & Clear
Delete all data when the plugin is deleted: when on, affiliates, commissions, payouts, visits, settings and the plugin pages are removed when you delete the plugin. Deactivation never deletes data. Default: off.
Data Cleanup: buttons that delete data at once, after a confirmation:
License
The VibeFox license block (see License key).
Status
Shows the WordPress, WooCommerce and PHP versions against the minimum versions, and the Multilingual support card: the detected language plugin and the site languages.
Import / Export
Download Export File saves the settings as a JSON file. Import loads settings from a JSON file or pasted text. Passwords and API keys are not included in the export, so enter the CAPTCHA secret key again on the other site.
Product, category and coupon fields
Affiliate commission and Commission type on the product edit screen (General tab): a rate for this product that overrides the category, affiliate and default rates. Leave it empty to use them. 0 means no commission. A fixed product rate is per item.
Affiliate commission and Commission type on the product category screen: a rate for products of this category. Empty means the affiliate or default rate. A fixed category rate is per item.
Affiliate ID on the coupon edit screen: orders using this coupon are credited to this affiliate.
How it works
Joining
A visitor fills in the [vfw_a_register] form: Full Name, Email Address, Password, Website URL, How will you promote us?, your extra questions and the terms checkbox. A logged-in customer only answers the questions. With manual approval the visitor sees "Registration successful! Your application is pending review. We will notify you once approved." and the store gets an e-mail. An account with the same e-mail must log in first.
Tracking
The affiliate shares a link to any store page with ?ref= and their ID or personal link name. The visitor gets a signed cookie for the cookie lifetime. Edited or hand-made cookies are ignored. A click by the affiliate on their own link is not tracked. At checkout (classic checkout and Checkout block) the order remembers the affiliate in this order: affiliate coupon, then referral cookie, then lifetime link. Orders placed by the affiliate's own account or e-mail are not credited and are written to the fraud log.
Commissions
When the order becomes Processing or Completed, the commission is created as Pending, in the order currency. It does not matter who changes the status: the customer's payment, a payment webhook or a store manager. A percentage rate applies to the order lines; a fixed affiliate or default rate is paid once per order. A refund, cancellation or failed payment rejects unpaid commissions, and a partial refund (by items or by amount) recalculates them. If a cancelled order is paid again, automatically rejected commissions return to Pending. Paid commissions are never changed: an order note is added instead.
A pending commission becomes Approved after the refund period if the order is still paid, or when you approve it. It becomes Paid only through a payout.
Affiliate dashboard
The [vfw_a_dashboard] page has the tabs Overview (earnings, balance, clicks, referred orders, the 30-day chart, referral link, affiliate coupons and a link to invite sub-affiliates), Links (referral link, Link generator for any page of this store, Personal link name, Share buttons for Facebook, X / Twitter, WhatsApp, Telegram and e-mail, QR code with Download PNG), Commissions, Visits, Payouts, Creatives and Profile (display name, website, preferred payout method, PayPal e-mail, bank details). Pending, rejected, banned and inactive affiliates see a message about their status instead of the dashboard. Visitors who are not affiliates see Join the affiliate program.
Payouts
In the Payouts tab the affiliate enters an amount, chooses a method and clicks Request payout. The payout reserves whole approved commissions, so the request may be slightly lower than the amount entered. Only one request can be open at a time. PayPal and bank transfer need the matching details in the Profile tab first.
In VF Affiliate > Payouts you send the money outside the store, click Mark as paid, enter an optional Transaction reference (optional) and confirm with Confirm: payout sent. The commissions become Paid and the affiliate gets the Payout sent e-mail. For store credit, a one-time coupon for the payout amount is created for the affiliate's e-mail. Cancel (return to balance) returns the commissions to the balance. New payout creates a payout for one affiliate, and Create payouts for all due balances creates payouts for everyone who reached the minimum. Export CSV lists the payouts with PayPal e-mails and bank details for batch payments.
Admin screens
VF Affiliate > Dashboard: the Overview tab with the month figures (active affiliates, referred revenue, commissions earned, paid out, clicks), latest commissions, top affiliates and new affiliates, and the Reports tab (see Reports).
Affiliates: list with status filters (Pending, Active, Inactive, Rejected, Banned), search and the bulk actions Approve, Reject, Deactivate, Ban and Delete. Add affiliate turns an existing WordPress user into an affiliate. The affiliate page shows statistics, the referral link, coupons, commissions, visits, payouts, sub-affiliates, linked customers and fraud log. Affiliate coupon creates a coupon linked to the affiliate (Code, Customer discount (%), Create coupon). The edit form has Status (changing it sends the matching e-mail), Link name (vanity slug), Parent affiliate ID (multi-tier), Individual rate, Rate type, Cookie lifetime (days), Direct-link domains, payout details and admin notes. Deleting an affiliate keeps paid commissions and payouts in the history and unlinks their coupons.
Commissions: filters by status, type (Sale, Welcome bonus, Sub-affiliate (tier)), affiliate, order and date; Approve, Reject and Back to pending one by one or in bulk; Export CSV.
Payouts: payouts by status (Pending, Processing, Completed, Failed / cancelled) with the actions above.
Visits & fraud: the Visits log of clicks with conversion rate and the Fraud log, with filters and Export CSV.
Creatives: banners (Banner (image)) and text links (Text link) for affiliates, with Name, Description, Image, Target page (this store), Alt text, Category and Status. The affiliate's referral parameter is added to the target page automatically.
Order screen: the Affiliate box shows the referring affiliate and the commissions of the order. Before a commission exists, you can enter the Referring affiliate ID by hand.
Multilingual stores
The plugin works with qTranslate-XT, Polylang and WPML. The extra questions and the sender name can be entered per language. The affiliate's language is saved at registration and when they use the dashboard: e-mails to affiliates are sent in their language, e-mails to the store in the main site language. With Polylang or WPML translate the registration and dashboard pages (a page with the same shortcode, linked as a translation). Links and redirects lead to the translation, or to the main language page if there is none.
The plugin does not send money through PayPal, Stripe or bank APIs, has no automatic scheduled payouts, and has no subscription (recurring) or sign-up (lead) commissions. Commissions and fixed rates are used in the order currency, and totals are not converted between currencies.
Reports
VF Affiliate > Dashboard > Reports shows a period (This month, Last 30 days, This year or your dates with From and To), the last 12 months, top affiliates and Top products in referred orders. Export (CSV) downloads affiliates, commissions, payouts and visits. Commissions, payouts and visits are limited to the selected period, and the affiliate list is exported in full. In CSV files, values that look like spreadsheet formulas are made safe.
Shortcodes
[vfw_a_register]: the affiliate registration form.
[vfw_a_dashboard]: the affiliate dashboard.
[vfw_a_login]: a login form that leads to the dashboard after login, with Lost your password? and Become an affiliate links.
[vfw_a_creatives columns="3"]: a gallery of active creatives. A logged-in affiliate sees them with their referral link, Copy code and Copy link.
[vfw_a_leaderboard count="10" period="month"]: top affiliates for month, week (last 7 days) or all (all time). Names are shown as first name and the initial of the last name.
[vfw_a_link]: the affiliate's referral link and link generator. Guests see a login prompt.
REST API
The namespace vfw-affiliate/v1 is available to users who can manage WooCommerce, with a logged-in cookie and nonce or with WordPress Application Passwords. Endpoints: /affiliates, /commissions, /payouts, /visits, /creatives and /reports. Changes follow the same rules as the admin: a commission becomes Paid only through a payout, and a new payout reserves approved commissions.
Developers can use the actions and filters listed in docs.txt in the plugin folder, for example vfw_a_commission_amount, vfw_a_order_attribution and vfw_a_referral_url.
License key
VibeFox license key: bought on vibefox.net. One key works on one domain.
The plugin works only with an activated key. Without it the plugin is switched off: its features, shortcodes, blocks, admin pages, scheduled tasks and e-mails do not run, and its menu shows only Settings with the License tab. Your settings and data are kept and come back as soon as a key is activated. Right after you activate the plugin in Plugins, WordPress opens this tab.
Open VF Affiliate > Settings > License, paste the key into License key and click Activate. The plugin switches on at once (the page reloads). The block License — VibeFox Affiliate then shows the masked key, the status Active until with the date and the domain, the buttons Check now, Change key, Remove key and the link Manage licenses and domains in your account.
Messages under the field: The key looks incomplete — copy the whole key from your account. (nothing is sent), Key not found. Check that you copied the whole key from your account., This key belongs to another product. (use the key bought for VibeFox Affiliate) and Domain limit reached (free a slot for this domain in your account, then click Check now). After the site address changes, click Check now.
An expired license keeps the plugin working, but without updates and support. Remove key switches the plugin off on this site; the domain slot is freed only in your vibefox.net account. If the license server cannot be reached, the plugin keeps working on the last known status. When the plugin is deleted, the key and its status are always removed.
Troubleshooting
The plugin menu shows only Settings: the license key is not active. Open VF Affiliate > Settings > License and click Activate (or Check now if a key is already entered); the messages under the field are explained in License key.
No commission for a referred order: check that Enable the affiliate program is on, the affiliate is Active and the order is Processing or Completed. Open the order: the Affiliate box shows whether an affiliate was saved at checkout. If not, enter the Referring affiliate ID by hand. Orders by the affiliate's own account or e-mail are not credited (see Visits & fraud > Fraud log).
Clicks are not counted: check Referral links, the Referral URL parameter and the fraud rules (click limit, blocked domains, paid-ads traffic, bots). A click by the affiliate on their own link is not tracked. With a page cache keep Page-cache compatible tracking on.
All visitors have the same IP: the site is behind Cloudflare or a proxy. Choose the matching header in Client IP source.
Commissions are not approved automatically: open Settings > Cron. If it says the daily task is overdue, WP-Cron does not run on the site. Set up a server cron for WordPress, or approve commissions manually in VF Affiliate > Commissions.
The affiliate cannot request a payout: the messages explain why: "The minimum payout is …", "There is no approved balance to pay out.", "You already have a payout request in progress.", "Please enter your PayPal e-mail in the Profile tab first." or "Please enter your bank details in the Profile tab first.". Check also New affiliates can request payouts after (days).
"This payout has no commissions left (they were reversed). Cancel it instead.": the orders of the payout were refunded. Cancel the payout.
Registration shows "Please complete the CAPTCHA challenge." or "CAPTCHA is not configured correctly.": check CAPTCHA service, Site key and Secret key. They must belong to the same service and include your domain.
"An account with this email already exists. Please log in first.": the visitor already has an account. They log in and fill in the form again.
Links in e-mails lead to the wrong language (Polylang, WPML): translate the registration and dashboard pages and link them as translations.
Something else goes wrong: turn on Write a debug log and check Latest log entries in Settings > Logging.
Uninstall
Deactivating the plugin keeps all data and stops the daily task. To remove it, deactivate and delete it on the Plugins page. The license key and license status of this plugin are always removed. If Delete all data when the plugin is deleted was on, deleting also removes the plugin tables (affiliates, commissions, visits, payouts, creatives, customer links, fraud log), the settings, the plugin meta of users, products, categories and orders, the two plugin pages and the log files. Otherwise the data stays for a later re-install. Coupons created for affiliates stay as ordinary WooCommerce coupons. WordPress accounts and WooCommerce orders are not deleted.
PayPal, Google reCAPTCHA and Cloudflare Turnstile are trademarks of their respective owners. This plugin is not affiliated with or endorsed by them.
