I haven't written any tests for this and the manual testing I've done has been limited but I figured I'd go ahead and ask for a review anyway.
The code is checked into https://getpaid.googlecode.com/svn/getpaid.discount/branches/DiscountCode. My changes were pretty minimal, I added a new marker interface that functions almost identically to the existing two (Discount and BuyXGetYFree). This interface allows you to specify a code, the name of the promotion and the price after the discount is applied. There is no overidden portlet for this interface. I did create a new viewlet that appears in the cart. It allows the user to enter in a discount code. When they do I check to see if any item in the cart is marked with the new interface and has not already been discounted. For each I discount the item and add an annotation to it. The annotation is used to prevent double discounting, and to show the user what has been discounted. That is the last change, it is to the existing viewlet. Now in addition to looking for the previous marker interfaces, it looks for cart items that have the discount code annotation, and displays that discount summary to the user. Thanks. -Rob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~---
