public FindProduct GetFindProduct(Mediachase.Commerce.IMarket market)
        {
            var language    = (Language == null ? string.Empty : Language.Name);
            var findProduct = new FindProduct(this, language);

            findProduct.Description = Description;
            findProduct.Overview    = Overview;
            EPiServer.Commerce.SpecializedProperties.Price defaultPrice = this.GetDefaultPrice();
            findProduct.DefaultPrice       = this.GetDisplayPrice(market);
            findProduct.DefaultPriceAmount = this.GetDefaultPriceAmount(market);

            PriceAndMarket discountPrice = this.GetDiscountPrice(market);

            findProduct.DiscountedPriceAmount = GetPriceWithCheck(discountPrice);
            findProduct.DiscountedPrice       = GetDisplayPriceWithCheck(discountPrice);

            PriceAndMarket customerClubPrice = this.GetCustomerClubPrice(market);

            findProduct.CustomerClubPriceAmount = GetPriceWithCheck(customerClubPrice);
            findProduct.CustomerClubPrice       = GetDisplayPriceWithCheck(customerClubPrice);

            findProduct.Brand          = Facet_Brand;
            findProduct.Resolution     = Resolution;
            findProduct.LensMount      = LensMount;
            findProduct.CameraFormat   = CameraFormat;
            findProduct.FileFormat     = FileFormat;
            findProduct.Connectivity   = Connectivity;
            findProduct.Battery        = Battery;
            findProduct.MemoryCardType = MemoryCardType;
            findProduct.Weight         = Weight;


            return(findProduct);
        }
        public ProductListViewModel Populate(Mediachase.Commerce.IMarket currentMarket)
        {
            ProductListViewModel productListViewModel = new ProductListViewModel(this, currentMarket, CustomerContext.Current.CurrentContact)
            {
                BrandName = Facet_Brand
            };

            return(productListViewModel);
        }
Exemple #3
0
        public FindProduct GetFindProduct(Mediachase.Commerce.IMarket market)
        {
            var language    = (Language == null ? string.Empty : Language.Name);
            var findProduct = new FindProduct(this, language);

            findProduct.Description = Description;
            findProduct.Overview    = Overview;

            findProduct.SetPriceData(this, market);

            findProduct.Brand          = Facet_Brand;
            findProduct.Resolution     = Resolution;
            findProduct.LensMount      = LensMount;
            findProduct.CameraFormat   = CameraFormat;
            findProduct.FileFormat     = FileFormat;
            findProduct.Connectivity   = Connectivity;
            findProduct.Battery        = Battery;
            findProduct.MemoryCardType = MemoryCardType;
            findProduct.Weight         = Weight;


            return(findProduct);
        }