Hi community,
i'm having an issue with ecomprices returned from ERP after upgrade og DW version and LI. Below custom code snippet from a Swift productprice template works on LI versions 7.2.5 -> 7.2.12. After an upgrade of DW version to 9.17.7 and LI upgrade to 7.4.9 then the below code does not return any prices. I've tested with LI version 7.4.0 -> 7.4.9. Prices doesn't get returned because GetProductInfo returns NULL.
Is it a bug on LI version 7.4.x or do I need to get the ecomprices differently on new versions of LI?
var prod = Dynamicweb.Ecommerce.Services.Products.GetProductById(product.Id, product.VariantId, product.LanguageId);
var settings = Dynamicweb.Ecommerce.DynamicwebLiveIntegration.Configuration.SettingsManager.GetSettingsByShop(Pageview.Area.EcomShopId);
var user = Pageview.User;
var info = Dynamicweb.Ecommerce.DynamicwebLiveIntegration.Products.ProductManager.GetProductInfo(prod, settings, user); //Returns NULL
var prices = Dynamicweb.Ecommerce.DynamicwebLiveIntegration.Products.ProductManager.GetPrices(info);