The [yith_wcaf_affiliate_dashboard] shortcode allows inserting a dedicated dashboard for the affiliate on the page.
The dashboard is divided into different sections: commissions, clicks, and payments.
There are three shortcode parameters that are related to the sections for which the elements pagination is provided:
- pagination: (yes/no) enable/disable the pagination within the dashboard section
- per_page: elements shown per page
current_page: page number shown in any section.
Supposed that we have pagination for an elements list in the “Commissions” section, by specifying 2 as a parameter value, only page 2 will be shown in the section.
The yith_wcaf_registration_form shortcode inserts the registration form on the page that the user can use to register as a new affiliate to the shop.
If a registered user views the page, only the “Become an affiliate” button will be shown. Thanks to this button, the user’s profile will be added to the affiliate ones.
On the contrary, the whole registration form will be shown.
The shortcode parameters are:
- show_name_field: (yes/no) show or hide the “name” field of the form
- show_surname_field: (yes/no) show or hide the “surname” field of the form
The [yith_wcaf_link_generator] shortcode inserts a form on the page that allows the user to get an affiliation link in a dynamic way according to the specified URL.