Needs review
Project:
Ubercart Discount Coupons
Version:
7.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2012 at 23:33 UTC
Updated:
11 Mar 2013 at 14:07 UTC
Jump to comment: Most recent file
Comments
Comment #1
wodenx commentedThere's currently no way to set a maximum value for a % based coupon. This could be implemeted one (or both) of 2 ways
- allow specifying a maximum discount which would come into play if any type of coupon resulted in a combination of discounts that was greater
- allow a "max order total" condition, which would invalidate a coupon if the order total were greater
Will gladly entertain patches for this functionality.
Comment #2
djg_tram commentedI need that functionality as well and I'm adding it right now. But, considering that I have a non-dev version on a production site that I need to modify, I won't be able to provide a full patch, just a set of source files where I mark every modification. Would somebody still accept it as a contribution? :-)
Comment #3
tmsimont commentedif you post you're code i'd probably do a patch for it
Comment #4
djg_tram commentedNow I realized it also contained some other suggestions that make it possible to use externally generated bulk codes. I can no longer remember whether I sent that in already or only wanted to. :-) Anyway, I throw it in now, together with the extra module.
Look for //DJG comments.
Thanks.
Comment #5
tmsimont commentedthanks djg -- I tried to create a patch against 7.x-3.x and it's unfortunately pretty far behind that branch.
Thanks to your comments though, I was able to find which bits you added and got a patch made for 7.x-3.x
I'm doing it for 3.x because typically new features get applied to the latest dev branch.
I also added an update function so your new field gets added.
For now, I left out the uc_bulk stuff. I think you should open a new feature request issue for that and re-submit your code. For the maintainer's sake, it would be best to patch 1 feature at a time.
Please note -- this is just a port of djm's code to a patch (with an added update function) that I have not personally tested... I probably won't get a chance to test it for a few days.