I'd like to have my users purchase a gift certificate, and be able to send it directly to the intended recipient by email, rather than receiving it themselves and forwarding the code. This doesn't seem to be possible with the current uc_coupon_purchase.

I've tried adding an attribute for "recipient email" to my gift certificate product, hoping to use Rules to send a gift coupon email if that field has been filled out. But the way uc_coupon_purchase works, the Rule that sends the email can't access the sold product... which is where the "recipient email" attribute would be anyway.

It occurs to me that this is probably a common use case. Buying a gift certificate is only ever for someone else... so sending the certificate to the purchaser is a little weird as a default.

Is there a normal way that everyone else is doing this, which I'm just missing? Or is this something we have to address in code?

Comments

wodenx’s picture

Category: support » feature

No - there has been discussion of implementing gift-certificate functionality for uc_coupons, but nothing has been done yet.

Seems like the easiest way would be to use an attribute as you suggest, and then pass that to the rules action. When I have time, I will look into it, but a patch is always welcome.

hockey2112’s picture

Issue summary: View changes

Any luck getting something like this to work?