Active
Project:
Ubercart Discount Coupons
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 May 2012 at 08:00 UTC
Updated:
3 Jun 2012 at 11:55 UTC
Hi,
I would like to send followups with unique generated coupon code for each followup. I think this can be done with UC Coupon. Would it be possible to integrate this in UC Followup?
Thanks!
Comments
Comment #1
m.stentaI'm sure it would be possible, but I'm not sure that the code for it would be in UC Followup. It would probably need to be something in UC Coupon.
UC Followup provides a textarea with Token replacement for the emails it sends out. Perhaps if the Coupon module could provide Tokens that could automatically generate unique coupon codes, then you could "insert" these coupon links into your emails with whatever text/image you want. And, you could do the same thing in many different places... not just in UC Followup emails... anything that accepts Tokens.
It looks like there has been some work on tokens in UC Coupon already: #985126: Add tokens for coupons used in orders (for order confirmation email)
Changing the project of this ticket to "Ubercart Discount Coupons".
Comment #2
wodenx commentedThis is an interesting idea - and could be implemented in a separate module calling back to uc_coupon_purchase_create() to generate the coupons. You'd want to put some thought into what exactly triggered the new coupon creation -- not sure you'd want to create a new code every time the token was parsed.
Comment #3
Neo13 commentedI would like to generate new coupon code every time a follow up is sent. But it needs to be more universal for different uses (newsletter) so I am not really sure what would be the best trigger.
Comment #4
Neo13 commentedI was just wondering if it would be possible to generate some bulk coupons and this token would everytime pick one random unused coupon? This coupon should be then marked as used so two users wont get the same coupon (important when coupon can be used only one time).