David Winterbottom
32dcca2971
Add ability to track the post-order action message
пре 13 година
David Winterbottom
cde35cdf9d
Fix issue with shipping discount not being recorded correctly
пре 13 година
David Winterbottom
7130f7c98c
OrderDiscount instance now created correctly for shipping offers
пре 13 година
David Winterbottom
27b1980bdd
Alter the way shipping discounts are handled
They aren't treated specially any more. They become part of the
'applications' collection rather than being attached to the basket.
пре 13 година
David Winterbottom
7a49678fd3
Add support for showing a custom message on basket page
пре 13 година
David Winterbottom
f9c6c052a2
Rework offer benefits to return result object
This paves the way for custom benefits to return successful applications
that don't lead to a discount.
пре 13 година
David Winterbottom
1573989b53
Add a status field to offers
This makes it more efficient to load offers now that we can't simply use
the date filters to exlucde unavailable offers.
The is_active field has been reworked to depend on the
get_max_applications method.
The save method of ConditionalOffer now auto-sets status.
Fixes #403
пре 13 година
David Winterbottom
e5d78436e2
Split offer tests into unit/integration folders
This might be futile.
пре 13 година