I need to create an implementation of Ubercart into an existing Drupal website similar to Groupon (http://www.groupon.com) where advertisers can sell "offers" that users can buy and have the coupon then emailed to them. Originally I was thinking of having the user gain access to a node that "is" the coupon and allowing them to print off that node -- this now seems foolish because it will probably create more work. I would have to give and remove a role for every coupon, or use some similar logic that restricts access until time of purchase.
I now think the best approach is:
- Create a product type called "coupon"
- Create a custom email receipt template for Ubercart that is only used for this product type (is this feature already available somewhere?)
• This custom receipt would include the coupon title, description, expiration, logo if needed, etc., as well as a unique code that is relevant to that coupon only (this will all come from CCK so I don't think I need help here)
Does anyone have suggestions of things I may not be considering or possible roadblocks? The biggest issue I can think of is the authenticity of the coupons themselves. I don't know how Groupon is able to tell businesses to trust that the coupons that people print off and bring in are legitimate. Certainly I could buy 1 item @ groupon.com and use that same template to create copies of other offers they sell. Perhaps the solution is a long custom coupon code that is only valid for each coupon, and to have the offers/coupons expire so quickly that no one would be able to duplicate them realistically.