Add BuyXGetOneFreeDiscount
This commit is contained in:
@@ -17,6 +17,6 @@ class ProductInCheckout
|
||||
end
|
||||
|
||||
def total
|
||||
@product.price * quantity
|
||||
(@product.price * quantity) - @product.discount.discount_for_quantity(@quantity)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user