How can we help?

Search the documentation or ask the AI agent anything about the plugin.

Shortcodes

Updated


Dashboard Page

This shortcode will display the main affiliate dashboard page.

[couponaffiliates]

Registration Form

This shortcode will display the affiliate registration form on a custom page.

[couponaffiliates-register]

Template Coupons

If you have multiple template coupons enabled, by default the registration form will show a dropdown of all the template options. You can however display a registration form for a specific template coupon by adding the “template” attribute to the shortcode with the “coupon code” (not the name) like so:

[couponaffiliates-register template="affiliatetemplatecoupon"]

Make sure this is added as a template in the registration settings too.


Referrer

This shortcode will display the referrer that is linked to the current visitor/customer (in plain text).

[couponaffiliates-referrer]

If you want to add text before it, then use the parameter “text” like so:

[couponaffiliates-referrer text="Referrer code:"]

You can also format this to be used in a URL by using the “type” parameter and setting it to “url” like so:

 [couponaffiliates-referrer text="Referrer code:" type="url"]

My Coupons

This shortcode will show the coupon(s) that are assigned to the current logged in user (in plain text).

[couponaffiliates-my-coupons]

If the user is assigned to multiple coupons, they will be separated by a comma.


My Referral URLS

This shortcode will show the referral URLs for the coupons that are assigned to the current logged in user (in plain text). If they are only assigned to 1 coupon, it simply shows the 1 default referral link for their coupon, and nothing else.

[couponaffiliates-referral-urls]

MLA Shortcodes

Show the MLA dashboard:

[couponaffiliates-mla]

Show the MLA subaffiliates network tree:

[couponaffiliates-mla-subaffiliates]

Show the MLA payouts section:

[couponaffiliates-mla-payouts]

Creatives

Show the creatives section in a custom location:

[couponaffiliates-creatives]

Payouts

Show the payouts section in a custom location:

[couponaffiliates-payouts]

Store Credit

Show the users current store credit (built-in system):

[couponaffiliates_credit]

User Coupon List

Shows the logged-in user’s assigned coupons (or login and registration when logged out). Alias: [couponusage-user].

[couponaffiliates-user]

My Referral URL (alias)

[couponaffiliates-referral-url] is an alias of [couponaffiliates-referral-urls].


QR Codes

Shows a QR code for each of the logged-in affiliate’s coupons. See QR Code Generator for Referral URLs.

[affiliate_qrcode]

Store Credit Message

Shows the store-credit discount message. See Store Credit Payouts.

[couponaffiliates_store_credit]

Performance Bonuses

Shows performance bonuses for the logged-in affiliate. Optional coupon_code attribute. Alias: [wcusage_bonuses]. See Performance Bonuses.

[couponaffiliates_bonuses coupon_code="SAVE10"]

Product Rates

Shows the product rates table. Optional coupon attribute. See Product Rates Table.

[couponaffiliates-rates coupon="SAVE10"]

Leaderboard

Shows an affiliate leaderboard. See Affiliate Leaderboards for the generator and attributes such as ajax.

[couponaffiliates-leaderboard]

Registration widget

The registration shortcode also accepts type="widget" when used in the floating widget.

[couponaffiliates-register type="widget"]

Aliases

[couponusage] is an alias of [couponaffiliates]. [couponusage-mla] is an alias of [couponaffiliates-mla].

Was this article helpful?