Page 1 of 1

Override default recalculate behaviour

Posted: Mon Sep 29, 2008 1:04 pm
by catatonic67
We've been asked to change the calculation for volume discounts. Although the default calculation makes more sense, the client wants to apply the volume discount to all items in the cart, even if only one cart item is eligible. It would seem that the calculation is made, at least in part, by recalculate method from the Basket class. Obviously, it would be a good deal of work to re-implement a custom Basket class and I would like to avoid it (recalculate is not virtual). Is anyone aware of an easier method of achieving the same result? Ideas are welcome and appreciated.

Cheers

Re: Override default recalculate behaviour

Posted: Mon Sep 29, 2008 5:23 pm
by jmestep
You should be able to do that by selecting Discount Scope of global when you set the discount up.