GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - DevDiggers-Technologies/affiliates-for-woocommerce: Affiliates for WooCommerce: run a self-hosted affiliate and referral program with commission tracking, an affiliate dashboard and payouts.

BranchesTags
Open more actions menu

Latest commit

 

History

67 Commits
67 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
autoload
autoload
 
 
bin
bin
 
 
devdiggers-framework
devdiggers-framework
 
 
helper
helper
 
 
i18n
i18n
 
 
includes
includes
 
 
src
src
 
 
templates
templates
 
 
.distignore
.distignore
 
 
.gitignore
.gitignore
 
 
Gruntfile.js
Gruntfile.js
 
 
README.md
README.md
 
 
babel.config.js
babel.config.js
 
 
functions.php
functions.php
 
 
index.php
index.php
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
readme.txt
readme.txt
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

Affiliates for WooCommerce

Contributors: DevDiggers

Tags: affiliate, affiliates, affiliate program, affiliate marketing, referral program

WordPress

  • Requires at least: 6.5
  • Tested up to: 7.1

WooCommerce

  • Requires at least: 9.0.0
  • Tested up to: 11.2

Requires PHP: 7.4 Stable tag: 2.5.0 License: GPL v3.0

Description

Affiliates for WooCommerce turns your store into a self hosted affiliate program. People sign up as affiliates, share a referral link, and earn a commission when someone buys through it. You approve the affiliates, set the rate, and pay them when you are ready.

Everything runs inside WordPress. No external affiliate network takes a cut of each sale, and there is no monthly platform fee on top of what you already pay your affiliates.

Affiliates get their own dashboard inside the WooCommerce My Account page, so they can check earnings, build referral links, and enter payout details without emailing you.

Live Demo: Free demo | Pro demo

Watch the plugin overview

How referral tracking works

  1. An affiliate registers through your signup form and you approve them.
  2. They generate a referral link for any page or product on your store.
  3. A visitor clicks the link and a referral cookie is stored in their browser.
  4. If that visitor orders before the cookie expires, the commission is recorded against the affiliate.
  5. You review the commission list and record the payout.

Free version

Registration and signup

  • Affiliate dashboard page with login and registration forms created on activation
  • [ddwcaf_affiliate_registration_form_shortcode] renders the registration form anywhere
  • [ddwcaf_affiliate_dashboard_shortcode] renders the affiliate dashboard on any page
  • Both shortcode tags can be renamed under Configuration > Shortcodes
  • Show the login form beside the signup form, or the signup form alone
  • Add affiliate signup fields to the standard WooCommerce registration page
  • Restrict which WordPress user roles may become affiliates
  • Approve, reject, or ban applications from the admin affiliates list
  • Add a new affiliate from the admin with the Add New button

Referral tracking

  • Configurable referral cookie lifetime in days
  • Renameable referral URL parameter and cookie name
  • Click logging toggle, with destination URL and timestamp on every logged click
  • Referral link generator in the affiliate dashboard

Commissions

  • One global commission percentage for all affiliates
  • Net of tax setting to exclude tax from the commission base
  • Setting to exclude the discounted amount so coupons do not inflate payouts
  • Admin commission log with order reference, amount, affiliate, and status
  • Filter commissions by status, date, or affiliate

Payouts

  • Bank transfer and PayPal payout methods, each independently switchable
  • Affiliates save their own bank or PayPal details from their dashboard
  • Create payout records in the admin and mark them paid once sent
  • Filter payouts by status for batch processing

Affiliate dashboard

  • Appears as an Affiliates tab in WooCommerce My Account, or standalone via shortcode
  • Total earnings, paid earnings, unpaid earnings, and conversions
  • Commission list split by status
  • Payout history with current status
  • Visit log with destination URL and timestamp
  • Top products list
  • Referral link generator
  • Payout details form
  • Optional WordPress sidebar widgets

Admin reporting

  • Affiliates list with status control and per affiliate earnings summary
  • Single affiliate screen with full profile and commission history
  • Dashboard with earnings, sales, visits, conversion rate and payouts, each compared with the previous period
  • Commission log across all affiliates with filters and a count on each status tab
  • Visit log with referral source URLs
  • Top products report

Dashboard styling

  • Brand primary colour for the affiliate dashboard
  • Background, border, text, and value colours for summary cards
  • Table header background and text colours
  • Show or hide summary card icons and set icon size

AI assistants (MCP)

Ask Claude, ChatGPT, Cursor, VS Code or any MCP client about your affiliate program in plain words: "How did the affiliate program do last month?", "Who are my top affiliates?", "Who is waiting for approval?", "How much do I owe affiliates?"

  • Tools for a program overview (the Dashboard figures against the period before), affiliates and their applications, one affiliate in detail, referrals and commissions, payouts, payouts due, top affiliates, top products, referral visits and a settings summary
  • Monthly affiliate program review and Review affiliate applications prompts
  • Optional: let the assistant approve, reject or ban an affiliate and approve or cancel a commission, the same way as the admin lists, logged under WooCommerce > Status > Logs
  • Same access as the Affiliates screens: store managers only. Payment details and visitor IP addresses are never shared
  • Managed in DevDiggers Plugins > AI & MCP: one MCP server for every DevDiggers plugin, an on / off switch per plugin and per write tool (write tools start off), a Try panel and an activity log
  • Needs WordPress 6.9+ and the MCP Adapter (WooCommerce 10.3+ bundles it)

Technical

  • Declared compatible with WooCommerce High Performance Order Storage (HPOS)
  • Translation ready, .pot file included (WPML, Polylang, Loco Translate)
  • Object oriented codebase with hooks and filters
  • MCP abilities live in includes/integrations/mcp-integration.php under the affiliates/ namespace. Add, change or remove one with the ddwcaf_mcp_abilities filter
  • Admin screens adapt to small displays with drawer based navigation

Free demo

Pro version

The free version covers a single global commission rate and manual payouts. Pro adds per product rates, automated payouts, and marketing material for affiliates.

  • Commission rates per product, per category, or per user role
  • Tiered rates that rise automatically as an affiliate reaches higher lifetime earnings
  • Per affiliate commission rate overriding the global rate
  • Exclude specific products or categories from earning commission
  • Holding period so commissions become payable only after the refund window closes
  • Coupon based referrals: assign WooCommerce coupons to affiliates, with assignment emails and a dashboard coupons tab
  • Affiliate requested payouts and scheduled monthly automatic payouts
  • Minimum payout balance threshold
  • Step by step payout wizard for large batches
  • WooCommerce Wallet as a payout method
  • PayPal Payouts API sending: commission goes straight to the PayPal email on the affiliate profile
  • Stripe Connect payouts: affiliates connect a Stripe Express account once from their dashboard and transfers are sent to it
  • Sandbox and live environments per gateway, with a connection test before real money moves
  • Per payout retry limit, audit log, and an email alert when a transfer fails
  • Stripe secret key can be defined in wp-config.php instead of stored in the database
  • Lifetime commissions: a referred customer stays bound to the affiliate who won them, unlimited or for a window of days
  • Commission on WooCommerce Subscriptions renewals
  • Public affiliate leaderboard via [ddwcaf_affiliate_leaderboard_shortcode], in card, list, or podium layout
  • Leaderboard controls for entry count, top three highlighting, earnings, order counts, avatars, and name anonymisation
  • Creatives: banners and text links affiliates copy from their dashboard
  • One click sharing to 10+ networks, Pinterest ready uploads, default share titles and messages
  • Custom registration fields (text, select, radio, checkbox, textarea)
  • Control which profile fields affiliates may edit, and require terms acceptance at signup
  • Self referral checks on the buyer's email, IP address, browser and billing details, with doubtful commissions held as Flagged for Review
  • New customers only, no commission on free orders, a minimum order total, and blocked emails, domains and IP addresses
  • A Fraud report listing the affiliates and orders the checks caught
  • Visit debounce time, and control over whether a newer referral link overwrites an existing cookie
  • Clear the referral cookie after purchase
  • CAPTCHA on the signup form via the WooCommerce Advanced CAPTCHA plugin by DevDiggers, sold separately
  • Automated emails for registration, approval, and commission updates
  • Reports page: referral sales, commission, orders, visits and conversion rate for any date range, compared with the previous period or last year
  • Top affiliates, products, traffic sources, landing pages and payout methods, each with CSV export, plus a busiest times heatmap
  • Custom URL endpoints and titles for each dashboard section and the My Account tab

Pro demo | Free vs Pro comparison

Installation

  1. Upload the affiliates-for-woocommerce folder to /wp-content/plugins/.
  2. Activate the plugin from the Plugins menu.
  3. Open DevDiggers Plugins > Affiliates > Configuration > General and turn on the affiliate system.
  4. Set your commission percentage under Configuration > Commissions.
  5. Set the referral cookie lifetime under Configuration > Referrals.

WooCommerce must be installed and active.

Build from source

The JavaScript and CSS in assets/ are compiled with webpack and Babel from src/, which is excluded from the distributed zip.

npm install
npm run build

Support

Documentation | Support forum | Contact DevDiggers

Changelog

= 2.5.0 =

  • Added AI assistants (MCP): ask Claude, ChatGPT, Cursor, VS Code or any MCP client about your affiliate program, affiliates and applications, referrals and commissions, payouts and payouts due, top affiliates and products, and referral visits. Optional tools let the assistant approve, reject or ban an affiliate and approve or cancel a commission; they stay off until you allow them.
  • Added the DevDiggers Plugins > AI & MCP page: connect Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code or any MCP client by signing in and clicking Allow in WordPress, with nothing to copy. Switch each plugin and each write tool on or off, test tools in the Try panel and review every call in the activity log.
  • Updated the bundled DevDiggers framework to 1.3.0. The title bar with the Save button now stays visible on desktop while you scroll an edit screen, and admin charts and pickers no longer break when another theme or plugin replaces the shared select2 script.
  • Security: creating payouts now checks the user's permission and validates the affiliate IDs.
  • Security: the Top Products report only accepts known columns as its sort order.

= 2.4.0 =

  • Improved the Dashboard so its figures match the Pro Reports page. Refunded commission no longer counts as earnings, and each card now shows the previous period's figure.
  • Improved the Dashboard conversion rate and average commission cards, which now compare with the previous period too.
  • Improved Dashboard speed. It runs a few queries instead of fifty and keeps its figures until a commission, payout or visit changes.
  • Fixed the store revenue line on the Dashboard chart dipping below zero on days with a refund.
  • Added counts to the status tabs on the Commissions, Payouts and Visits lists.
  • Added a clear empty state to every admin list, with its own message when a search or filter matches nothing.
  • Added database indexes on visit, commission and payout dates and affiliates, so lists and the Dashboard stay fast on large stores. They are added automatically on update.
  • Improved money formatting on the affiliate charts in admin, which now follow the store's currency position and separators.
  • Updated the status badge colours to match the other DevDiggers plugins.
  • Fixed the Commissions, Visits and Payouts date filters leaving out the last day of the range.
  • Fixed the Automatic Withdrawal payout reference showing as a raw key in the Payouts list.
  • Fixed JavaScript errors on the Affiliates admin screens that stopped WordPress audio and video players from loading.
  • Fixed typos in list headings and empty list messages.
  • Added Pro previews of the Fraud report and the Fraud Prevention settings, and refreshed the Reports preview to show the new Pro Reports page.
  • Moved the fraud prevention Pro preview from the Referrals tab to its own Fraud Prevention tab.
  • Updated the bundled DevDiggers framework to 1.2.0.
  • Tested with WordPress 7.1 and WooCommerce 11.2.

= 2.3.0 =

  • Upgraded to DevDiggers Framework 1.1.0: admin screens now open instantly without a full page reload, with skeleton placeholders while a screen loads.
  • Improved list screens: the title action buttons, search box, bulk actions and pagination now follow one consistent layout.
  • Fixed minor PHP warnings and JavaScript errors seen after in-place navigation.
  • Bug fixes and stability improvements.

= 2.2.0 =

  • Added Pro previews across the configuration screens so you can see what the Pro version does before deciding: lifetime commissions, subscription renewal commissions, referral fraud prevention, the affiliate leaderboard, automatic payouts, PayPal Payouts and Stripe Connect.
  • Added Stripe Connect to the withdrawal methods list, and noted on the PayPal row that automatic payouts are a Pro feature.
  • Moved the affiliate leaderboard settings to the General tab. The Shortcodes tab now only holds the leaderboard shortcode itself, alongside the other shortcodes.
  • Made the default "How will you promote our site?" options translatable, along with the confirmation shown when removing a row in the admin.
  • Tested with WordPress 7.1 and WooCommerce 11.0.1.

= 2.1.3 =

  • Fixed a fatal error that could occur when another DevDiggers plugin was active at the same time.
  • Fixed the Documentation link on the Plugins screen, which pointed at a page that no longer existed.
  • Tested with WordPress 7.1 and WooCommerce 11.0.1.
  • Rewrote the plugin documentation so the free and Pro feature lists match what each version actually does.

= 2.1.2 =

  • Fixed a fatal error on the plugin dashboard.

= 2.1.1 =

  • Updated the framework for better speed and stability.

= 2.1.0 =

  • Added a setup wizard for first time configuration.
  • Updated the framework for better speed and stability.
  • General performance improvements and code cleanup.

= 2.0.4 =

  • Fixed the licence issue introduced in the previous release.

= 2.0.3 =

  • Fixed a compatibility issue with some themes.

= 2.0.2 =

  • Fixed a conflict with other DevDiggers plugins.

= 2.0.1 =

  • Fixed a compatibility issue with Affiliates for WooCommerce Pro below v2.0.0.
  • Added compatibility with the latest WordPress and WooCommerce releases.

= 2.0.0 =

  • Added DevDiggers Framework integration for a single admin experience across DevDiggers plugins.
  • Redesigned the affiliate dashboard with a responsive layout.
  • Rebuilt the admin dashboard for smaller screens.
  • Added drawer based mobile navigation for admin settings.
  • Refactored the backend to an object oriented structure.
  • Added a new SVG icon set for the affiliate dashboard.

= 1.1.1 =

  • Added compatibility with the latest WordPress and WooCommerce releases.
  • Fixed security issues.

= 1.1.0 =

  • Added WooCommerce HPOS compatibility.
  • Added compatibility with the latest WordPress and WooCommerce releases.
  • Fixed security issues.

= 1.0.1 =

  • Added compatibility with the latest WordPress and WooCommerce releases.
  • Fixed security issues.

= 1.0.0 =

  • Initial release.

About

Affiliates for WooCommerce: run a self-hosted affiliate and referral program with commission tracking, an affiliate dashboard and payouts.

wordpress.org/plugins/affiliates-for-woocommerce/

Topics

affiliateaffiliate-dashboardaffiliate-marketingaffiliate-programcommissionecommercephpreferral-programreferral-trackingwoocommercewoocommerce-extensionwoocommerce-pluginwordpresswordpress-plugin

Resources

Readme

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

3 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.