Umbraco Commerce - Discounts that are greater than...
# help-with-umbraco
j
Hi all, I've encountered an issue in-which if the discount is greater than the total then a negative value is returned. For instance, I have a total of £4.99 and apply a £5 discount then the total becomes -0.01 rather than 0. I'm unsure if this intended behavior and I'm aware of the discount rules that can be put in-place to ensure minimum values to fullfill the discount (which was my inital suggestion) However, in my use case it's been requested that if the discount is greater than the total it becomes 0. I attempted a way of doing this using a PriceAdjuster something like: args.Calculation.TotalPrice = OrderTotalPrice.ZeroValue(args.Order.CurrencyId); But by doing so I lose context of any adjustments applied and the order comes through incorrectly. What is the best way of going about this or am I missing an OOB solution completely! Many thanks, Jonny