Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

ProductOverviewModel.cs

using Nop.Core.Domain.Catalog;
using Nop.Web.Framework.Models;
using Nop.Web.Models.Media;

namespace Nop.Web.Models.Catalog;

public partial record ProductOverviewModel : BaseNopEntityModel
{
    public ProductOverviewModel()
    {
        ProductPrice = new ProductPriceModel();
        PictureModels = new List();
        ProductSpecificationModel = new ProductSpecificationModel();
        ReviewOverviewModel = new ProductReviewOverviewModel();
    }

    public string Name { get; set; }
    public string ShortDescription { get; set; }
    public string FullDescription { get; set; }
    public string SeName { get; set; }

    public string Sku { get; set; }

    public ProductType ProductType { get; set; }

    public bool MarkAsNew { get; set; }

    //price
    public ProductPriceModel ProductPrice { get; set; }
    //pictures
    public IList PictureModels { get; set; }
    //specification attributes
    public ProductSpecificationModel ProductSpecificationModel { get; set; }
    //price
    public ProductReviewOverviewModel ReviewOverviewModel { get; set; }

    #region Nested Classes

    public partial record ProductPriceModel : BaseNopModel
    {
        public string OldPrice { get; set; }
        public decimal? OldPriceValue { get; set; }
        public string Price { get; set; }
        public decimal? PriceValue { get; set; }
        /// 
        /// PAngV baseprice (used in Germany)
        /// 
        public string BasePricePAngV { get; set; }
        public decimal? BasePricePAngVValue { get; set; }

        public bool DisableBuyButton { get; set; }
        public bool DisableWishlistButton { get; set; }
        public bool DisableAddToCompareListButton { get; set; }

        public bool AvailableForPreOrder { get; set; }
        public DateTime? PreOrderAvailabilityStartDateTimeUtc { get; set; }

        public bool IsRental { get; set; }

        public bool ForceRedirectionAfterAddingToCart { get; set; }

        /// 
        /// A value indicating whether we should display tax/shipping info (used in Germany)
        /// 
        public bool DisplayTaxShippingInfo { get; set; }
    }

    #endregion
}