Unlike many digital stores this has to allow for more than one item in the cart. @ Epic Game Store
An order is composed of independent prints. A user can later cancel independent prints from the prints tab.
POTENTIAL PROBLEM: discounts. If there's a discount (ie. 3 prints for 50% discount, and a print is worth 1 euro , the total price would be 1.5 euros , 50% of 3 euros. If the user then cancels a single item in the order, then they'd still get the discount for the other two).
Solution 1: Don't allow cancelling single items on discounted orders.
Solution 2: Keep track of these discounts and act accordingly.
Solution 3: If an item from an order is cancelled or altered in any way, recalculate the price with the change.
Unlike many digital stores this has to allow for more than one item in the cart. @ Epic Game Store An order is composed of independent prints. A user can later cancel independent prints from the prints tab.
POTENTIAL PROBLEM: discounts. If there's a discount (ie. 3 prints for 50% discount, and a print is worth 1 euro , the total price would be 1.5 euros , 50% of 3 euros. If the user then cancels a single item in the order, then they'd still get the discount for the other two). Solution 1: Don't allow cancelling single items on discounted orders. Solution 2: Keep track of these discounts and act accordingly. Solution 3: If an item from an order is cancelled or altered in any way, recalculate the price with the change.