Display Discount in Email Notification

by @large - Member - 07:25PM, Jul 02, 2008

Hi my client is running their first sale with a discount code and I’ve realized that their order confirmation and email notification are not set up to include the discounted amount, so the automatic receipt’s math doesn’t add up.

Does anyone know the variable for the discount amount? It’s not referenced in the email variables.

Thanks!

shopcora

Member

08:04PM, Jul 02, 2008

My order confirmation email template has this in it at the end (which I think was in there by default but not sure)

{% if discounts %}Discounts : {{ discounts_savings | money_with_currency }}{% endif %}
Subtotal  : {{ subtotal_price | money_with_currency  }}
Tax       : {{ tax_price | money_with_currency  }}
Shipping  : {{ shipping_price | money_with_currency }}
Total     : {{ total_price | money_with_currency }}

It works in all the tests I’ve run. Now if you wanted to write the name of the actual discount itself (ie ‘TESTCODE20’) I’m not sure if you can or can’t do that….maybe someone with more liquid skills can help you out on that.

---

Cora Boutique – trendy and fashionable women’s clothing
www.shopcora.com

@large

Member

08:08PM, Jul 02, 2008

Thanks! That’s what I was looking for. It’s been a while since I’ve seen the default notification.

Much Obliged!

You must login to post a comment!

Don't have an account yet? Sign up for one.