Hi Dynamicweb,
After upgrading to Dynamicweb.Ecommerce.1.5.34 the property "Prices" in "Product" is readonly and a method in "ProductProviderBase" is not working anymore in this project: Dynamicweb.Ecommerce.LiveIntegration (2.0.1.BETA 2).
The method is:
public virtual void FillProductPrices(Product product, ProductInfo productInfo) { var prices = (IList<ProductPrice>)productInfo["Prices"]; foreach (var price in prices.OrderBy(p => p.Quantity.GetValueOrDefault())) { product.Prices.Add(new Price { Id = price.Id, Amount = price.Amount.GetValueOrDefault(), Quantity = price.Quantity.GetValueOrDefault(), ProductId = price.ProductId, VariantId = price.ProductVariantId, LanguageId = Common.Context.LanguageID, UserCustomerNumber = price.UserCustomerNumber, IsInformative = false, CurrencyCode = Common.Context.Currency.Code }); } }
Can you please look into this?
Best regards, Anders