The GooglePlusOneViewModel is used on the product details view when the social sharing features are enabled, to help render the Google+ 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
  • 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. 


The GooglePlusOneModel object will contain all of the details to render Google+ in your Hotcakes Commerce store.


The following table gives you details on the various members of the GooglePlusOneViewModel object.  The descriptions are based on default functionality and the default Viewset included with Hotcakes.

Member Type Description
CountPosition GooglePlusOneCountPosition

This indicates to the Google+ API where to position the counter.  Possible values include:

  • 0 - None
  • 1 - Bubble
  • 2 - Inline
PageUrl String This will be populated with the URL for the current page.
Size GooglePlusOneSize

This will determine the size of the Google+ widget that's rendered.  Possible values include:

  • 0 - Small
  • 1 - Medium
  • 2 - Standard
  • 3 - Large


Have more questions? Submit a request

Need More Help?

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