Hi folks,
I'm familiar with the utility function Adjusted_Price, which takes a product price as input, and return a price that's been adjusted for any applicable price-group discounts. But I think this only works on the old "legacy" price groups, not for the newer ones that use discount modules. Is there a function that works like Adjusted_Price, but includes all the discounts?
After hunting around in the LSK, I found some code in runtime.mv that involves a series of steps, starting with DiscountState_CreateFromBasket(), and ending with DiscountState_Predict_Product_Discounts(). Do I need to copy that, or is there an easier way?
If it helps, I don't need to handle every possible type of discount, such as BOGO's that depend on what else is in the basket at the time. I just need to be able to find out the price for a single product, before it goes into the basket, using any price groups that apply to that particular product for the customer who's shopping. If the other types of discounts have to be included, that's OK too.
Thanks --
I'm familiar with the utility function Adjusted_Price, which takes a product price as input, and return a price that's been adjusted for any applicable price-group discounts. But I think this only works on the old "legacy" price groups, not for the newer ones that use discount modules. Is there a function that works like Adjusted_Price, but includes all the discounts?
After hunting around in the LSK, I found some code in runtime.mv that involves a series of steps, starting with DiscountState_CreateFromBasket(), and ending with DiscountState_Predict_Product_Discounts(). Do I need to copy that, or is there an easier way?
If it helps, I don't need to handle every possible type of discount, such as BOGO's that depend on what else is in the basket at the time. I just need to be able to find out the price for a single product, before it goes into the basket, using any price groups that apply to that particular product for the customer who's shopping. If the other types of discounts have to be included, that's OK too.
Thanks --
Comment