Needs review
Project:
Ubercart Discounts (Alternative)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2009 at 21:12 UTC
Updated:
9 Jan 2010 at 16:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
ezra-g commentedInteresting feature. Patches welcome!
Comment #2
lonehorseend commentedHere you go! I also made changes to the how the discount is displayed in the cart. That part is optional and looked better on my website. Other than that, this patch looks at a customer's previous orders and totals them with the current order to determine if they qualify the discount.
One thing that needs to be addressed is the status. Right now, it is hard coded to accept only completed orders in order to calculate the customer's previous orders, but I think it should be able to be set by the admin.
Comment #3
ezra-g commentedMarking as NR.