awesomemotive / easy-digital-downloads

Sell digital downloads through WordPress
https://easydigitaldownloads.com
GNU General Public License v2.0
863 stars 474 forks source link

Discount details not shown in `[download_cart]` even though the prices displayed are discounted #9731

Closed henrywright closed 1 month ago

henrywright commented 1 month ago

When a discount code is applied at checkout by a customer, [download_cart] doesn't include the details of the discount. However, the shortcode does display the prices with the discount applied. This may cause confusion for the customer. See the following example where the tax rate is 20% and the discount is 10%:

Item name: Download Foo Item price: £198 Subtotal: £198 Tax: £35.64 Total: £213.84

As you can see the discount of £19.80 is correctly applied but there is no mention of a discount being applied to the cart. Without details of the discount the number just don't add up. Adding the discount details would make the numbers add up:

Item name: Download Foo Item price: £198 Subtotal: £198 Discount: £19.80 Tax: £35.64 Total: £213.84

henrywright commented 1 month ago

An alternative to adding discount information to the cart is completely remove "Tax" and "Total" from the cart. That is how Amazon does it. Instead of displaying "Tax" and "Total" details in the cart, they display them during checkout only.

If you shop on Amazon, their cart looks like this:

henrywright commented 1 month ago

Amir kindly replied by email and suggested I close this issue.