The WishListItem is used by the Wish List view. 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 WishListItem object will contain all of the details of a single instance of a product in your Hotcakes Commerce store.
The following table gives you details on the various members of the WishListItem object. The descriptions are based on default functionality and the default Viewset included with Hotcakes.
|CustomerId||String||Defines the user account that the wish list item belongs to.|
|Id||Long||The unique ID or primary key of the wish list item.|
|LastUpdatedUtc||DateTime||The last updated date is used for auditing purposes to know when the wish list item was last updated.|
|ProductId||String||The unique ID of the product that this wish list item refers to.|
|ProductShortDescription||String||Displays any selected choices made by the customer when saving the product to the wish list.|
|Quantity||Integer||The amount of products that this wish list item is saving.|
|SelectionData||OptionSelections||When applicable, the choices or options for the saved product.|
|StoreId||Long||This is the ID of the Hotcakes store. Typically, this is 1, except in multi-tenant environments.|