Git Product home page Git Product logo

affiliates-rankings's Introduction

Affiliates Rankings

Affiliates Rankings is a ranking system for promoting affiliates based on their performance.
Each rank is represented by a group and with Rates we can offer different commissions per group.
Each time an affiliate achieves the performance condition of the higher Rank, is automatically promoted to that next Rank.
The higher the rank, the better is the commission reward for the affiliate.

The plugin is compatible with Affiliates Pro and Affiliates Enterprise plugins by itthinx.com.

Requirements

Usage

Install and activate the plugin.
By default after activation, 6 new ranking groups will be added:
Rank 1, Rank 2, Rank 3, Rank 4, Rank 5, Rank 6
and 6 ranking conditions:
10, 20, 30, 40, 50, 60

Each time an affiliate registers throught the affiliates registration form, he will be added automatically to Rank 1.
In order to be promoted to the next rank, Rank 2, the affiliate must have referred at least 20 referrals and so on....

API

You can change the group names and promotion conditions by using the following filters:

Example

If you want to use 4 groups named Class 1, Class 2, Class 3, Class 4
with conditions 5, 10, 15, 20 respectively,
you should add the following snippets in the functions.php file of your active theme.

add_filter( 'affiliates_ranking_groups_names', 'example_affiliates_ranking_groups_names' );
function example_affiliates_ranking_groups_names( $names ) {
	$names = array( 'Class 1', 'Class 2', 'Class 3', 'Class 4' );
	return $names;
}
add_filter( 'affiliates_ranking_conditions', 'example_affiliates_ranking_conditions' );
function example_affiliates_ranking_conditions( $conditions ) {
	$conditions = array( 5, 10, 15, 20 );
	return $conditions;
}

affiliates-rankings's People

Contributors

geotsiokos avatar

Stargazers

itthinx avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.