While testing product discounts on a 9.16.6 site we discovered an issue with Discount calculations.
Wew set up a very basic 20% Discount and applied it to a Product Group. When adding items from that group at multiple quantities to the cart the discounts initially display fine, but as soon as the order is placed the discounts still display correctly but are only applied once, not extended to the quantity of the item that was ordered.
Example:
- An item costs $10 but has a 20% discount applied to its Product Group.
- Add 10 of the item to the cart. Product shows 10x$10 = $100, Discount shows 10x($2) = ($20), Order Total shows $80
- Proceed through checkout, everything appears correct. Line items, subtotal, and totals show correctly.
- Complete order: Product is 10x$10 = $100, Discount shows 10x($2) = ($20), Order Total shows $98
- The discount is only being applied one time, not ten, even though the line items show it applied ten times.