FaceBookLikeModel

Overview

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.

Requirements

The following pre-requisites will be necessary to accomplish the goals of this article:

  • General understanding of template engines
  • Understanding HTML, CSS, JavaScript
  • Familiarity with template languages
  • Familiarity with ASP.NET MVC Razor

Getting Started

There are no tasks needed to get started with understanding this object. 

FaceBookLikeModel

The FaceBookLikeModel object will contain all of the details to render Facebook likes in your Hotcakes Commerce store.

Members

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.

Member Type Description
Colors FacebookColorScheme

Color for the box rendered by Facebook.  Possible values include:

  • 0 - Light
  • 1 - Dark
IncludeSendButton Bool Indicates whether there should be a send button included for comments or not.
Layout FacebookLayout

Configures how the standard Facebook sharing layout should be presented to customers.  Possible values include:

  • 0 - Buttons
  • 1 - Standard
  • 2 - Box
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.
Verb FacebookVerb

Configures whether to allow customers to Like or Recommend using this feature.  Possible values include:

  • 0 - Like
  • 1 - Recommend
Width Int Width of the sharing box.

 

Have more questions? Submit a request

Need More Help?

Do you need more assistance with this article? Please review your support options.