The BundledProductViewModel is used when rendering products that are bundled together. 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 BundledProductViewModel object will contain all of the details of a single bundled product for use in your Hotcakes Commerce store.
The following table gives you details on the various members of the BundledProductViewModel object. The descriptions are based upon default functionality and the default Viewset included with Hotcakes.
This object holds the product details to be shown to end user such as the number of products in bundle.
|ImageUrls||ProductImageUrls||Image URL's for the bundled product which can be shown on product detail page.|
|Item||Product||A bundled product also treated as one single product so this object holds all the information entered when creating the bundled product.|
|ProductLink||String||URL of the product as its configured by administrator when creating product. Here we can find the specific user friendly URL for this product.|
|SwatchDisplay||String||Contains the HTML string which is shown to the end user.|