PinterestViewModel

Overview

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

PinterestViewModel

The PinterestViewModel object will contain all of the details to render Pinterest in your Hotcakes Commerce store.

Members

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

Member Type Description
Color PinterestColor

This indicates to the Pinterest API what color the widget should be.  The default is red.  Possible values include:

  • 0 - Red
  • 1 - Gray
  • 2 - White
Language PinterestLanguage

This indicates to the Pinterest API what language the pin widget should be using. The default is English.  Possible values include:

  • 0 - English
  • 1 - Japanese
Shape PinterestShape

This will determine the shape of the Pinterest widget that's rendered.  The default is rectangular.  Possible values include:

  • 0 - Rectangular
  • 1 - Circular
Size PinterestSize

This tells the Pinterest API what size the pin should be.  The default is small.  Possible values include:

  • 0 - Small
  • 3 - Large

 

Have more questions? Submit a request

Need More Help?

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