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.
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 PinterestViewModel object will contain all of the details to render Pinterest in your Hotcakes Commerce store.
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.
This indicates to the Pinterest API what color the widget should be. The default is red. Possible values include:
This indicates to the Pinterest API what language the pin widget should be using. The default is English. Possible values include:
This will determine the shape of the Pinterest widget that's rendered. The default is rectangular. Possible values include:
This tells the Pinterest API what size the pin should be. The default is small. Possible values include: