The AffiliateDashboardViewModel is pretty much what it sounds like. When you're using the affiliate program features, this is the model used when displaying the dashboard view to individual affiliates. This article will help you understand what's available to you in the view model.
The following pre-requisites will be necessary to accomplish the goals of this article:
- General understanding of template engines
- Familiarity with template languages
- Familiarity with ASP.NET MVC Razor
There are no tasks needed to get started with understanding this object.
The AffiliateDashboardViewModel object will contain all of the details for rendering a dashboard view to individual affiliates in your Hotcakes Commerce store.
The following table gives you details on the various members of the AffiliateDashboardViewModel object. The descriptions are based upon default functionality and the default Viewset included with Hotcakes.
Affiliate Information which needs to be displayed on dashboard
|Orders||AffiliateOrdersViewModel||Order information for the Affiliate which needs to be displayed on dashboard|
|Payments||AffiliatePaymentsViewModel||Payment information for the Affiliate which needs to be displayed on dashboard|
|Referrals||AffiliateReferralsViewModel||Referrals information for the Affiliate which needs to be displayed on dashboard|
|UrlBuilder||UrlBuilderViewModel||Used to help affiliates generate, view, and track URL's they use to refer traffic to the store.|