How can I display the coupon information in the order confirmation email? Ubercart sends an email to the customer based on a programmable email template to confirm the order. These email template can reference Ubercart [tokens] to display information about the order.

Currently, if a coupon is used on an order, the total price will be calculated properly in the email, but there is no information about the redemption of a coupon. How can I also display information about the redemption of the coupon in the email?

Comments

longwave’s picture

Title: Display coupon information in order confirmation email? » Add tokens for coupons used in orders (for order confirmation email)
Component: User interface » Code
Category: support » feature
Priority: Major » Normal

There is token support for purchased coupons, but not for used coupons yet. Changing to a feature request.

webservant316’s picture

thanks. for letting me know.
I watch this post and future release notes for this feature.

best wishes.

Sam Straub’s picture

Regarding post #1, how can [coupon-code] be used in the order confirmation email for someone who purchased a coupon? I realize I can use the 'Notify customer when a single coupon is purchased' predicate and the action will send an email with the coupon code in it, however, I'd like to use it with a custom order confirmation template. Further I'd like to send it to an email address that is not the purchaser of the coupon as in the case of giving a gift. Any help is greatly appreciated.

longwave’s picture

Status: Active » Fixed

[order-coupon-code] has been added as a new token in the development branch.

[coupon-code] cannot be used in the order email itself as the required information is not available, and the coupon may not even have been created yet (if coupon creation is triggered on Completed or even Payment received, the order email may be sent before the status change). Ubercart handles file downloads in a similar way, they are not available at invoice time.

Sam Straub’s picture

Thanks longwave and great work on this module. It's top notch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.