Keap

[memb_affiliate_running_totals]

Summary
This shortcode displays the summary statistics for your affiliate record. You can show the running balance, amount earned, clawbacks, and payments.

Description

This shortcode displays the summary statistics for your affiliate record. You can show the running balance, amount earned, clawbacks, and payments.

Shortcode Examples

Example showing all four data types:

Amount Earned: [memb_affiliate_running_totals fields=AmountEarned]
Clawbacks: [memb_affiliate_running_totals fields=Clawbacks]
Running Balance: [memb_affiliate_running_totals fields=RunningBalance]
Payments: [memb_affiliate_running_totals fields=Payments]

This is how it would render for a logged in affiliate:


In the example above, the affiliate has made 2 referrals and sales. One for $75.00 and another for $1.50. The referee for the $75.00 order filed a chargeback so the commission was clawed back (taken away). The affiliate was paid their $1.50 for the other successful sale.

Amount Earned: Shows the amount earned from all sales including ones where chargebacks and clawbacks have been applied

Clawbacks: Shows the amount lost due to clawbacks

Running Balance: Shows the Amount Earned minus payments and clawbacks

Payments: Shows the amount that has been paid out to the affiliate

Shortcode Parameters

affiliate_idThe ID of the affiliate to pull the running totals from. Defaults to the currently logged in user’s affiliate record. (Optional)
afterText to insert before the output. (Optional)
beforeText to insert after the output. (Optional)
defaultValue to display by default if no value is available. (Optional)
fieldsA comma-separated list of running balance fields to display. Fields are RunningBalance, Clawbacks, AmountEarned, Payments. Defaults to RunningBalance. (Optional)
htmlattrThe HTML Attribute to insert the output into for use in a tag. (Optional)
FormatThe formatting code to use for the currency output. Defaults to USD (Optional)
separatorThe separator text to use between multiple fields. Defaults to none. (Optional)
txtfmtA comma separated list of text processing functions to be used to post process the contact fields. (?) (Optional)

FAQ

If the shortcode is missing or displaying incorrect data, make sure you have enabled Synchronize Affiliate Records under Memberium => Settings => Performance.

Shortcode Attributes

ConditionalNo
NestableNo
Accepts formattingNo
CapturableYes