Products carry discount tags; each tag maps to a fixed price, a percentage off or an amount off. Charge every product its best price and total the cart.
Products carry discount tags; each tag maps to a fixed price, a percentage off or an amount off. Charge every product its best price and total the cart.
Opens with the full question.