Add BuyXGetOneFreeDiscount

This commit is contained in:
David Underwood
2026-07-21 12:23:46 -04:00
parent 882c18b5e6
commit 554ce58cbf
6 changed files with 70 additions and 15 deletions
+1 -1
View File
@@ -17,6 +17,6 @@ class ProductInCheckout
end
def total
@product.price * quantity
(@product.price * quantity) - @product.discount.discount_for_quantity(@quantity)
end
end