Easy-digital-downloads: add item price to {download_list} email tag

Created on 7 Nov 2015  路  7Comments  路  Source: easydigitaldownloads/easy-digital-downloads

Any reason why the {download_list} email tag doesn't support product prices/totals? I know the there are email tags for the overall transaction totals but it's not itemized.

The purchase confirmation has itemized information and it's just a confirmation page. I think the email receipt should be just as detailed if not more.

type-feature workflow-has-pr workflow-needs-testing

Most helpful comment

@sunnyratilal I think it could work. Perhaps Item Name - Price (discounted $x.xx).

Only issue I foresee is not being able to have the same output when the discount is a negative fee, like with Discounts Pro. Not sure I agree with having an inconsistent experience here.

All 7 comments

Reaching here, but for percentage discounts, it would also be sweet if each item's discount total was included since they carry a weight of the discount. That doesn't apply to flat discounts, of course.

Only reason I know of is simply it's old and hasn't received any real love in a while.

Initially, I was thinking Item Name - Price as the format but what would make the most sense when displaying the discounted amount as well? @SDavisMedia Do you envisage the item price and the discounted total of that item being placed adjacent to each other?

@sunnyratilal I think it could work. Perhaps Item Name - Price (discounted $x.xx).

Only issue I foresee is not being able to have the same output when the discount is a negative fee, like with Discounts Pro. Not sure I agree with having an inconsistent experience here.

Sample Purchase Receipt email template just to see a full picture of how this enhancement is useful:

Sample Purchase Receipt

<strong>Purchased downloads:</strong>
{download_list}

<strong>Subtotal:</strong>
{subtotal}

<strong>Tax:</strong>
{tax}

<strong>Total price:</strong>
{price}

screenshot 2018-03-09 12 12 09

@SDavisMedia yeah this get's a little funky when Discounts Pro is used:
screen shot 2018-03-12 at 1 21 30 pm

I don't see a good way around that except for adding a 'fees' section like we do on the Purchase Confirmation.

This just looks a little odd, and while for negative fees (discounts Pro) I don't think a customer is going to have a problem with a price that's lower, I think with a positive fee, that could look concerning since the totals don't match, even though they were applied just not visible.

After talking with @SDavisMedia a bit, the concern of negate/positive fees does present a concern.

We're actually going to punt for now, and possibly introduce this as a 'new' email tag with something like download_list_with_prices which handles all the logic around negative/positive fees and allows people to switch to this new format, or continue to use the old one.

Was this page helpful?
0 / 5 - 0 ratings