The FaceBookLikeModel is used on the product details view, when the social sharing features are enabled to help render the Facebook sharing correctly. 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 FaceBookLikeModel object will contain all of the details to render Facebook likes in your Hotcakes Commerce store.
The following table gives you details on the various members of the FaceBookLikeModel object. The descriptions are based upon default functionality and the default Viewset included with Hotcakes.
Color for the box rendered by Facebook. Possible values include:
|IncludeSendButton||Bool||Indicates whether there should be a send button included for comments or not.|
Configures how the standard Facebook sharing layout should be presented to customers. Possible values include:
|PageUrl||String||URL of the page that the customer is currently viewing.|
|ShowFaces||Bool||Specifies if the avatars for people will be shown for those who have commented or recommended the product.|
Configures whether to allow customers to Like or Recommend using this feature. Possible values include:
|Width||Int||Width of the sharing box.|