When I use Conditional Actions there is a rule "Customer purchases a coupon" with tokens "Coupon replacement patterns" [coupon-name] and [coupon-code]

I use uc_ca_sms module (drupal.org/project/uc_ca_sms) for send user notifications by SMS. But i can't insert in it tokens provided by Discount Coupon Purchase module [coupon-name] and [coupon-code]. What I should do to get this parameters in token list?

CommentFileSizeAuthor
#2 coupon-tokens.patch1.06 KBSeanA

Comments

SuperSlon’s picture

Category: support » feature
SeanA’s picture

Project: Ubercart Discount Coupons » Ubercart Conditional actions SMS integration
Version: 6.x-1.x-dev » 6.x-1.0
Component: uc_coupon_purchase » Code
StatusFileSize
new1.06 KB

Moving: this is actually a uc_ca_sms issue. Attached is a patch that makes coupon tokens available to SMS actions.

SeanA’s picture

Status: Active » Needs review
SuperSlon’s picture

Status: Needs review » Needs work

I used your patch, but get a error. See below:

* warning: Missing argument 3 for uc_ca_sms_action_sms() in /home/u3339/domains/allskidka.ru/sites/all/modules/ubercart/contrib/uc_ca_sms/uc_ca_sms.module on line 39.

It's a function: function uc_ca_sms_action_sms($order, $settings, $coupon) {

Any ideas?

SeanA’s picture

I'm not sure, it should be working. Did you apply the patch properly? Has anyone else tested this? At some point the module maintainer will come along and consider this feature.

shushu’s picture

I am following this issue, but I am not certain it should get into the module.
I don't want to make uc_ca_sms depended on uc_coupon...
Anyway I will try to get into it in the coming days.

Regards,
Shushu