FruitBank/Presentation/Nop.Web/Models/ShoppingCart/MiniShoppingCartModel.cs

49 lines
1.3 KiB
C#
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Nop.Web.Framework.Models;
using Nop.Web.Models.Media;
namespace Nop.Web.Models.ShoppingCart;
public partial record MiniShoppingCartModel : BaseNopModel
{
public MiniShoppingCartModel()
{
Items = new List<ShoppingCartItemModel>();
}
public IList<ShoppingCartItemModel> Items { get; set; }
public int TotalProducts { get; set; }
public string SubTotal { get; set; }
public decimal SubTotalValue { get; set; }
public bool DisplayShoppingCartButton { get; set; }
public bool DisplayCheckoutButton { get; set; }
public bool CurrentCustomerIsGuest { get; set; }
public bool AnonymousCheckoutAllowed { get; set; }
public bool ShowProductImages { get; set; }
#region Nested Classes
public partial record ShoppingCartItemModel : BaseNopEntityModel
{
public ShoppingCartItemModel()
{
Picture = new PictureModel();
}
public int ProductId { get; set; }
public string ProductName { get; set; }
public string ProductSeName { get; set; }
public int Quantity { get; set; }
public string UnitPrice { get; set; }
public decimal UnitPriceValue { get; set; }
public string AttributeInfo { get; set; }
public PictureModel Picture { get; set; }
}
#endregion
}