feat: added product variants
This commit is contained in:
@@ -82,7 +82,7 @@ def cart(request, *args, **kwargs):
|
||||
tax_total = Decimal('0.00')
|
||||
|
||||
for item in items:
|
||||
price = ProductPrice.objects.filter(product=item.product, current=True).first()
|
||||
price = item.price
|
||||
base_total += price.price * item.quantity
|
||||
tax_total += round(price.price * Decimal(price.tax.value / 100) * item.quantity, 2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user