Closed (fixed)
Project:
Ubercart Discount Coupons
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 May 2008 at 23:09 UTC
Updated:
27 May 2009 at 17:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
pingers commentedI'm after the same feature and am thinking about doing it.
Looks like there's a user field in the uc_coupons_orders table that could be used as an extra part of the db_query.
Then you need another option when creating the coupon... maxusesperuser.
Then in the save, save the uid.
In the validate add user = $user->uid in the sql select... db_num_rows() (if the option is >0).
Hmm.... doesn't sound too hard. Time permitting.
Comment #2
pingers commentedCan now choose max uses per user.
Run update.php after patching uc_coupon.install
Also fixed the count not working for me by checking strings against order_status rather than integer
Hope this helps.
Comment #3
pingers commenteddouble post - remove.
Comment #4
ambereyes commentedGreat! I will test this as soon as I can.
Katrina
--
www.ambereyes.net
Comment #5
a_c_m commentedis this getting rolled into the latest version ?
Comment #6
longwavePatch updated and committed to DRUPAL-5.
Comment #7
a_c_m commentedrapid !