But how then am I supposed to display prices that have quantity based discounts.
In the real world, we are selling something for
1+ = 50 SEK (from "COM_SKU")
5+ = 45 SEK (from "COM_VolumeDiscount")
10+ = 40 SEK (from "COM_VolumeDiscount")
Now I am really confused. It
should be a totally different price. It seems to me that the VolumeDiscountInfo class is made for this use case?
/Magnus
Ps. When writing this and looking at the database table COM_VolumeDiscount I notice that the field names of this table translates perfectly to the property names of the VolumeDiscountInfo. This seem to be answering my original question.
InfoDataSet<VolumeDiscountInfo> discounts =
VolumeDiscountInfoProvider.GetVolumeDiscounts(skuID);
foreach (VolumeDiscountInfo discount in discounts)
{
// Handle percentage versus static discount here
Debug.Print(discount.VolumeDiscountValue.ToString());
}