When I use the template view module in rapido and get back the product I use the Ecom:Product.Discount.Price and Ecom:Product.Price for the Price and the Discounted price.
I created an APi and use ProductService().GetProductById() method to get the product.
I then loop thorugh the combination of variants using product.VariantCombinations.
On each of the variants I can once again use variantCombination.GetProduct() to get the product for that variant ( variantProduct).
However, if I use variantProduct.Price or variantProduct.Discount.Price I'm not getting the same results as the template view model.
I've tried GetDiscountMatrix too.
There is something I'm getting wrong here and not winning.
How can I use the ProductService to get the correct pricing information for each variant combination?