Hi,

I added the token [order:coupon-code] into my rules order confirmation email, and put through several orders that used a coupon to discount the price, but the email does not show the coupon, it is blank.

Am I do something incorrectly?

How can I display the coupon used in an order inside the rules confirmation email?

I have tried 7.x-2.1-alpha7 and 7.x-3.x-dev no luck with either.

Thanks

CommentFileSizeAuthor
#1 2306855--tokens.patch1.01 KBkbasarab
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kbasarab’s picture

Version: 7.x-3.x-dev » 7.x-2.1-alpha7
Status: Active » Needs review
FileSize
1.01 KB

Looks like this is an issue with the discount codes and where they are. I ran into this also using rules and the tokens and came up with the attached patch. I rolled it against alpha7 so changing version to that.

DamienMcKenna’s picture

FWIW I changed the "Default line item title format" setting to "Coupon: [uc_coupon:code]" and it now shows e.g. "Coupon: SPECIALCOUPON".