The [yith_wcaf_affiliate_dashboard] shortcode allows you to display the Affiliate dashboard on a custom page of your choice.
The dashboard is divided into different sections and for each of them there’s a specific shortcode available, so you can either display the entire dashboard with all tabs or the content of specific tabs as you wish.
Print specific sections of the affiliate dashboard
With a shortcode for each section, the admin will be able to print that specific affiliate dashboard section on any page of the site.
Link generator: [yith_wcaf_link_generator]
Each of these shortcodes can have custom settings for the pagination and the menu. You can use the following attributes to configure them:
pagination: (yes/no) enable/disable the pagination option for each section. It will show up only if the items are more than the value set in the following attribute per page.
per_page: a numeric value that shows the elements per page. Default value is 10.
current_page: page number shown in any section. Suppose that we have pagination for a list in the “Commissions” section, by specifying 2 as the parameter value, only page 2 will be shown in the section.
show_dashboard_links: (yes/no): this allows showing the menu to navigate among the various sections also.
The plugin is ready to use with the new Gutenberg editor. When you add a new post or page, you will be able to find our YITH shortcodes and widgets. With a simple click, they will be added to your page.
The plugin includes 3 blocks.
1. Affiliate Dashboard block
The block allows you to display the affiliate dashboard and from the attributes you can:
Choose the section to show: you can choose between dynamic, which will let your users select the section from the menu and navigate among the multiple sections, or one of the specific sections among commissions, visits, coupons, payments, link generator and settings.
Show navitation menu: this allows you to show the navigation menu on top so to let your user move among the many available sections.
2. Registration form block
This block will print the affiliate registration form. From the block attributes on the right you will be able to set the following:
Show login form: you can include also the login form or show just the affiliate registration form
Title to show above login form
Title to show above the register form
3. Link generator block
This block allows you to print the Link generator section.