Hey guys,
I have a project with live integratiom, the prices are fetched from an external system . I developed a scheduled task that generates a custom XML with all the active products. I noticed that some of the products don't have prices in my export, but they do on the website. In order to get the prices, I do this
priceContext = new PriceContext(currency, country);
priceService = new PriceService();
var activeProducts = Services.Products.GetAllProductsWithoutVariants(false, LANGUAGE_ID, false)
.Where(i => i.Active);
foreach (var p in activeProducts)
{
var price = p.GetPrice(priceContext).Price;
}
The question is: does this method return the right price from Live integration ?