Table of Contents

Class FavoriteProductViewModel

Namespace
Dynamicweb.Ecommerce.Frontend
Assembly
Dynamicweb.Ecommerce.dll

FavoriteProductViewModel represents the rendering context used when a favorite product is rendered.

The model has the most vital information about the product itself, the Id and variant id. Other than that there is a user note on that favorite product, quantity, sort order on the favorite list and a produc reference url

public class FavoriteProductViewModel : FillableViewModelBase
Inheritance
FavoriteProductViewModel
Inherited Members

Properties

Id

Gets or sets the favorite product identifier.

public int Id { get; set; }

Property Value

int

The identifier e.g 9.

Note

Gets or sets the note.

public string Note { get; set; }

Property Value

string

The note made on the favorite product by the user i.e "buy later!".

ProductId

Gets or sets the product identifier.

public string ProductId { get; set; }

Property Value

string

The product identifier e.g PROD101 or 10001.

ProductReferenceUrl

Gets or sets the product reference URL.

public string ProductReferenceUrl { get; set; }

Property Value

string

The product reference URL in terms of where the product resides i.e a mountain bike with reference url "Website base uri"/bikes/mountain-bikes.

ProductVariantId

Gets or sets the product variant identifier.

public string ProductVariantId { get; set; }

Property Value

string

The product variant identifier is a combination of one or more variant identifier e.g VO1

Quantity

Gets or sets the quantity.

public int Quantity { get; set; }

Property Value

int

The quantity i.e. 2.

SortOrder

Gets or sets the sort order.

public int? SortOrder { get; set; }

Property Value

int?

The sort order represented as an integer i.e 3.

To top