Class CartViewModel
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
CartViewModel represents the rendering context used when a cart is rendered.
public class CartViewModel : ViewModelBase
- Inheritance
-
CartViewModel
- Inherited Members
Constructors
CartViewModel()
Initializes a new instance of the CartViewModel class.
public CartViewModel()
- See Also
Properties
CartOrderlines
Gets or sets the current cart orderlines.
public IList<CartOrderlineViewModel> CartOrderlines { get; set; }
Property Value
- IList<CartOrderlineViewModel>
- The current cart.
- See Also
ID
Gets or sets the identifier.
public string ID { get; set; }
Property Value
- string
- The identifier.
- See Also
IsEmpty
Gets or sets the whether the cart is empty.
public bool IsEmpty { get; set; }
Property Value
- bool
- Cart is empty.
- See Also
OrderlinesCount
Gets or sets the number of orderlines in the cart.
public int OrderlinesCount { get; set; }
Property Value
- int
- The number of orderlines.
- See Also
PaymentFee
Gets or sets the price viewmodel for payment fee.
public PriceViewModel PaymentFee { get; set; }
Property Value
- PriceViewModel
- The price viewmodel for payment fee.
- See Also
PaymentMethod
Gets or sets the payment method.
public string PaymentMethod { get; set; }
Property Value
- string
- The payment method.
- See Also
ProductsCount
Gets or sets the number of products in the cart.
public int ProductsCount { get; set; }
Property Value
- int
- The number of products.
- See Also
ShippingFee
Gets or sets the price viewmodel for shipping fee.
public PriceViewModel ShippingFee { get; set; }
Property Value
- PriceViewModel
- The price viewmodel for shipping fee.
- See Also
ShippingMethod
Gets or sets the shipping method.
public string ShippingMethod { get; set; }
Property Value
- string
- The shipping method.
- See Also
TotalDiscount
public PriceViewModel TotalDiscount { get; set; }
Property Value
- See Also
TotalPrice
public PriceViewModel TotalPrice { get; set; }
Property Value
- See Also
TotalPriceWithoutDiscounts
public PriceViewModel TotalPriceWithoutDiscounts { get; set; }
Property Value
- See Also
TotalPriceWithoutDiscountsFeesAndTaxes
Gets the total price without discounts, fees and taxes.
public PriceViewModel TotalPriceWithoutDiscountsFeesAndTaxes { get; set; }
Property Value
- See Also
TotalPriceWithoutFees
public PriceViewModel TotalPriceWithoutFees { get; set; }
Property Value
- See Also
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.
public PriceViewModel TotalPriceWithoutOrderDiscountsAndFeesAndTaxes { get; set; }
Property Value
- See Also
TotalProductsCount
Gets or sets the total count of products in the cart.
public double TotalProductsCount { get; set; }
Property Value
- double
- The total count of products.
- See Also