Single use per customer

ambereyes - May 23, 2008 - 23:09
Project:Ubercart Discount Coupons
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Can I use this module to create a single use per customer coupon?

I want to offer a coupon for a free one month trial subscription. I am using the subscription module plus role assignment. I would use the PayPal Buttons module because it includes a trial subscription option via PayPal, but my client wants to accept good ole fashion checks as well.

Can I use the coupon module for this?

thanks,
Katrina

--
www.ambereyes.net

#1

pingers - June 5, 2008 - 01:12

I'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.

#2

pingers - June 5, 2008 - 05:39
Status:active» needs review

Can 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.

AttachmentSize
uc_coupon-262137-2.patch 7.87 KB

#3

pingers - June 5, 2008 - 05:39

double post - remove.

#4

ambereyes - June 5, 2008 - 23:13

Great! I will test this as soon as I can.

Katrina
--
www.ambereyes.net

#5

a_c_m - May 13, 2009 - 16:31
Version:5.x-1.5» 5.x-1.8

is this getting rolled into the latest version ?

#6

longwave - May 13, 2009 - 16:39
Version:5.x-1.8» 5.x-1.x-dev
Category:support request» feature request
Status:needs review» fixed

Patch updated and committed to DRUPAL-5.

#7

a_c_m - May 13, 2009 - 17:09

rapid !

#8

System Message - May 27, 2009 - 17:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.