Class CartViewModel
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
CartViewModel represents the rendering context used when a cart is rendered. It is available on the PageViewModel so you can render a minicart in frontend.
- Inheritance
-
Cart
View Model
- Inherited Members
Constructors
CartViewModel()
Initializes a new instance of the Cart
Properties
CartOrderlines
Gets or sets the current cart orderlines.
Property Value
- IList<Cart
Orderline >View Model The current cart.
ID
Gets or sets the identifier.
Property Value
- string
The identifier.
IsEmpty
Gets or sets the whether the cart is empty.
Property Value
- bool
Cart is empty.
OrderlinesCount
Gets or sets the number of orderlines in the cart.
Property Value
- int
The number of orderlines.
PaymentFee
Gets or sets the price viewmodel for payment fee.
Property Value
- Price
View Model The price viewmodel for payment fee.
PaymentMethod
Gets or sets the payment method.
Property Value
- string
The payment method.
ProductsCount
Gets or sets the number of products in the cart.
Property Value
- int
The number of products.
ShippingFee
Gets or sets the price viewmodel for shipping fee.
Property Value
- Price
View Model The price viewmodel for shipping fee.
ShippingMethod
Gets or sets the shipping method.
Property Value
- string
The shipping method.
TotalDiscount
Gets or sets the price viewmodel for total discount.
Property Value
- Price
View Model The price viewmodel for total discount.
TotalPrice
Gets or sets the price viewmodel for total price.
Property Value
- Price
View Model The price viewmodel for total price.
TotalPriceWithoutDiscounts
Gets or sets the price viewmodel for total price without discounts.
Property Value
- Price
View Model The price viewmodel for total price without discounts.
TotalPriceWithoutDiscountsFeesAndTaxes
Gets the total price without discounts, fees and taxes.
Property Value
TotalPriceWithoutFees
Gets or sets the price viewmodel for total price without fees.
Property Value
- Price
View Model The price viewmodel for total price without fees.
TotalPriceWithoutOrderDiscountsAndFeesAndTaxes
Gets the total price without order discounts, fees and taxes. This is the subtotal of all products with discounts, but without any order discounts, fees and taxes.
Property Value
TotalProductsCount
Gets or sets the total count of products in the cart.
Property Value
- double
The total count of products.