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

m.stenta’s picture

Title: Generate coupon for followup » Unique coupon tokens
Project: Ubercart Followup » Ubercart Discount Coupons

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

wodenx’s picture

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

Neo13’s picture

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

Neo13’s picture

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