Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#1 | 2306855--tokens.patch | 1.01 KB | kbasarab |
Comments
Comment #1
kbasarab CreditAttribution: kbasarab commentedLooks 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.
Comment #2
DamienMcKennaFWIW I changed the "Default line item title format" setting to "Coupon: [uc_coupon:code]" and it now shows e.g. "Coupon: SPECIALCOUPON".