Updated for EDD 1.9+

The snippet below will add a download’s price and quantity to the purchase confirmation email. If quantities are not enabled, the quantity will simply not show. When the purchase confirmation email is received, each line will look something like this:

Download Title – $50.00 (quantity: 5)

Paste the following function into your child theme’s functions.php or custom plugin:

3 comments

  1. Hi Andrew,
    Thanks for the code snippet! Exactly what I needed.
    Is it easily possible to add a quantity box right next to the purchase button on a product page?

    Robert

    1. No problem Robert. I haven’t seen it done before, but it may be something I can look into for a future tutorial if it’s indeed possible.

Comments are closed.